Cannons
What can it do?
Cannons is a highly configurable plugin which allows you to fire block build cannons. It is possible to aim and load different amounts of gunpowder to hit targets at different ranges. The power of redstone makes it possible to set the gun to auto load and activate the rapid fire mode. Choose your projectile from a broad spectrum of cannonballs and smash the enemy.
With Cannons 2.0 you are also able to design your own cannons using .schematic files and give each cannon their own settings, as well as different types of projectiles.
Features
- Build a cannon out blocks
- Design your own cannon and save it as .schematic
- Design and fire different projectiles to smash your enemy
- Use redstone to fire guns from distance
- Rapid fire with auto-load possible
- Destroyed blocks can be restored with CreeperHeal (if 'custom' option is true)
- Cannons will stay load and aligned due to the database
- Movement plugins (e.g. Movecraft) are supported if a cannon has a sign to store a tag
- API for ships plugins (e.g. iSails) to use cannons on ships without signs.
Videos
by ServerMiner
by wickedbrother
Out-dated showcase 1
Out-dated showcase 2
Recommended plugins
- ObsidianDestroyer
- WorldGuard (flag protection: '/region flag NAME other-explosion deny')
- CreeperHeal (set 'custom explosion' for your world to repair cannon damage)
Installation
- Install WorldEdit first (don't forget this)
- Copy the cannons.jar into your Bukkit's "plugins" directory, then run the server.
Dependencies
This plugin requires:
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
Information for Cannons 2.x
Tutorial:
Additional information:
Cannon Designs
- Share your designs with other people: Cannon Designs
Known Bugs
- The cannon ball (snowball) becomes invisible after 60 blocks but hits the target.
- Voxelsniper will delete Buttons/Torches when you load the gun (be careful when you click the barrel)
Need Help?
Credits
- Raser4000
- DreTax
- JlJlJl
- and many more
@robotnikthingy I fixed the problem and uploaded it. Once it is approved bukkit you can download it.
I found a video I once made while testing. If you are asking yourself, how fast a cannon in minecraft can fire. Here is the answer:
Rapid fire AA
@DerPavlov
did a test with a cannon in front of a closed box of creepers. It seems the cannons fires at them even though it has no sight of them.
picture here http://i.imgur.com/NBE4n8d.png
@robotnikthingy Let me know what you find. I will try to implement a more precise test, when I have time a the weekend.
@DerPavlov
huh, thats odd then, because the cannons on my server will fire at mobs inside of buildings or behind wall's
I will have to do further testing
@robotnikthingy At the moment it just checks the line of sight, if the cannon can "see" the monster. If the sight is blocked, the cannon will not fire. I am not sure if checking the cannonball trace is possible.
Also, is it possible to make it so that sentry cannons don't fire at mobs/players which are behind blocks?
@Flashera In the latest version of movecarft it should also work without signs. At movecraft startup should be "Cannon hook..." written somewhere. So give it a try. Let me know if it is not working.
When you use Worldguard you can set the flag 'other-explosion' for a region to allow or deny it. I have no experience with Towny but there should be a similar command. I would try first Worldguard only and test if it is working.Later you can add Towny and do the same thing again.
@Flashera
I can answer the movecraft part. Basically, if you put a sign on the side of the cannon, it uses that to keep track of the cannon while its being moved on a movecraft craft. As long as your cannon has that sign on it, it will work fine with movecraft.
I'm having an issue, when testing Cannons on a flat world, it says the impact is in a protected area when there is no protections. I currently have Towny and Worldguard if that helps.
Also, how would I go about allowing cannons on Movecraft ships. (Meaning, when the ship moves, the cannon does as well?)
@robotnikthingy At the moment Cannons is relying on the projectile entity of minecraft. One thing one can try, is replacing the snowball with a fireball and add more particle effects on the way. But I have very limited time at the moment, so I don't know when I can implement something like this.
I thought of another suggestion which might make cannons interesting. Maybe add an option for the cannon to fire particles instead of a projectile. This could be used to make some unconventional designs, like laser cannons which fire a straight beam of particles. Possibly use the ParticleAPI to make development easier
@whitewolf578 Cannons does not handle protection of blocks, nor could it detect if this is a ship or not. I would either try to set a high limit for protection (if you are above you take damage), or select sea regions where you can take damage.
Otherwise, you have to contact the movecraft developer. With his help it might be possible to restrict damage in general, but enable it for ships. It should be possible to remove ship blocks from the list of protected blocks, which then can be destroyed by cannon shells. Keep in mind you will have no protection on ships at all (maybe if you lock them).
Hey is there any way for me to be able to have only movecraft boats to take damage from the cannons and all other blocks ignored?
@DerPavlov
It worked! Thank you very much.
@Traliduz Try setting 'relayExplosionEvent: True' in the config.yml. This will relay the new bukkit/spigot event for explosions to the old one (which is worldguard using). I am not sure if worldguard is working at this at the moment. Let me know if the solved the problem.
https://github.com/DerPavlov/Cannons/blob/master/src/main/resources/config.yml
Hey! I have TNT & other-explosions on "deny" on WorldGuard but cannons still destroy my spawn. Am I doing something wrong? I know my WorldGuard is setup right because players can't destroy/build in spawn by hand.
@monkeypie3 It is 1.10 compatible. Please report back if something is not working.
Can you update to 1.10 please! I need to use this for my server
@JaffaMC That is correct. I just wrote you a pm, since the questions seems to be more complex than expected.
@DerPavlov
I added the line and set it to true, and it still didn't work. This is a snapshot of my config (check if I did it right) https://gyazo.com/289b06d2404c4e6d5528c0057f03cbb9