Artillery
Description
Artillery is a PvP mini game inspired by Scorched Earth. The plugin lets players fire explosive shells up to thousands of blocks away. Shells are unguided and unpowered, so they follow a ballistic trajectory. In other words, the actual impact point is determined by the azimuth (horizontal angle), vertical angle and velocity of the shell fired.
When a shell lands next to a player, the distance between the impact and the player position will be shown, so the shooter can correct the trajectory and pinpoint the target in a few attempts. The target, who can hear or see the explosions, can choose to run away, hide or fire back.
Shooting and tracking players
The fire mechanism involves:
- standing on a launch platform
- looking at a position in the sky
- left clicking with a TNT block.
The viewing angle of the player will determine the horizontal and vertical angles. Power/velocity is determined by the size of the launch platform. The TNT block will represent the shell, so it is consumed when fired.
How to build a launch platform
A launch platform is a horizontal, cross-shaped structure made with one obsidian block and gold blocks. The size of the launch platform is the length of the golden arms. The greater the size, the higher the velocity of the shell. A launch platform of size 6 (requires 24 gold blocks) will fire shells about 3,000 blocks away (using vertical angle of about 45 degrees).
The launch platform must not be completely underground. specifically, the center obsidian block must be exposed to the sky.
Explosions
A shell will only create a real explosion if there is a nearby player, which is in fact keeping the chunk loaded. Firing to random, ungenerated or unloaded areas of the world will not create explosions but will simulate the trajectory and display the impact position.
An explosion caused by an artillery shell is about 50% more powerful than a single TNT.
Commands
There is only one command: /artillery which prints the version of the plugin.
Permissions
- artillery.admincmd - Lets you use the Artillery plugin admin command (ops only by default)
- artillery.fire - Lets you fire artillery (TNT) shells (true by default)
- artillery.undetectable - Will not report your position when fired upon (false by default)
Configuration
You may change the following settings in config.yml:
gravity: 10.0 minimum-firing-angle: 20.0 max-detection-range: 200.0 velocity-per-block: 30.0 launch-platform-base-block: OBSIDIAN launch-platform-arm-block: GOLD_BLOCK maximum-arm-length: 6 minimum-arm-length: 1 cooldown: 1000
Hi, First, I really like your plugin. It works very good and is quite useful! However, the plugin calculates the impact location, but not the flight path. Thus, walls and obstacles are disregarded, which is not an advantage e.g. when shelling cities. Maybe it might be possible to get the function of the trajectory and iterate through each position, then impact on the first block that is not air? I guess that would require a bit of re-coding though. Seeing the actual path then would also be good, possibly making use of the new particles? Also, the different shell types you mentioned would be a great addition, such as incendiary or gas ones.
I hope to hear from you soon :)
@ChronoShaman
Hey. You mean enable player damage but disable block damage? There is no such feature in the plugin (explosions are fun). I might add new types of shells in the future which cause different effects.
I love scorched earth!!! I have an RPG server I would like to use this on. Is there a way to disable explosion block damage?
ChonoShaman ClashOfMagic.org
@Spartan071
Thanks for trying the plugin. I will definitely look into adding a configurable TNT yield. Seeing the actual trajectory is a bit tricky because the entire thing is simulated. I was thinking about using maps for this, but if you have a better idea please share.
I use this plugin in combination with the Ships plugin, so we can have flyable airship combat. However, after using this plugin, there was really only 2 issues that I had; first, you don't seem to have an entity travelling the calculated path of the tnt, making aiming rather hard in air as you cannot see the actual arc that the tnt is travelling along; Second, there isnt a setting in the confic to change the power of the tnt's blast, right now, it can disable most of the small-medium sized airships on my server, I would like to have more lengthy duels and such. Overall, this plugin is pretty cool, and very useful, but annoying to use in an airship battle when the ships are constantly moving and you can't see your projectile. If you could add this in a later update, this plugin would get 5 stars in my book-of-ranking-awesome-things.
This plugin looks like it could be really useful when combined with either Ships or Movecraft, making the consruction of really elaborate, really expensive, really masive, and really slow tnt cannons a thing of the past.
@jeffro1001
If you use a permission plugin like PEX, you can grant the artillery.fire permission to everyone on the "scorched earth" world.
this looks like it could be a lot of fun.
Can you specify what worlds it is active in?
I would love to create a 'scorched earth' world where people could play this, but at the same time, prevent them from using it in the normal world.
If it is multi-verse compatible, and I'm able to limit it to only one world, I'll definitely try it out.