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

-
View User Profile
-
Send Message
Posted Nov 20, 2014@GodsDead I tested the latest version Griefprevention v9.0 and I was unable to destroy block above sea level. Maybe he fixed the problem
There is an API call which gives you the impact location, but I recommend to use the bukkit events for a protection plugin (like Griefprevention does). Since bukkit events work with all plugins and not just one. Allowing one sort of damage while blocking all other is a different case :).
API:
http://dev.bukkit.org/bukkit-plugins/cannons/pages/developers-guide-de-de/
https://github.com/DerPavlov/Cannons/tree/master/src/main/java/at/pavlov/cannons/event
-
View User Profile
-
Send Message
Posted Nov 20, 2014Ahoy! There is a new developer in charge of GriefPrevention, he seems to have rewritten the plugin from scratch, and now claims can be destroyed by cannons, Ive once asked you the method that causes explosion damage to the impact area, but I cant find it! Is there a Java API call, function or term I can tell him to make sure third party plugin damage is not happening, he seems to keep skipping answering my question regarding this. Thank you.
-
View User Profile
-
Send Message
Posted Nov 11, 2014@LordEragore To disable this soot for the cannon set sootPerGunpowder:0 and startingSoot:0 in you cannon design. How often the projectile needs to be pushed can be set in the cannon design via projectilePushing.
Here is my confusing tutorial :)
http://dev.bukkit.org/bukkit-plugins/cannons/pages/tutorial/
-
View User Profile
-
Send Message
Posted Nov 11, 2014@DerPavlov Thank you, it turned out I was using an outdated version and everything is working fine now! :D Although is there w way to turn off cleaning the cannon?
-
View User Profile
-
Send Message
Posted Nov 10, 2014@LordEragore If you make a new design you have to tell the plugin which direction the cannon is facing. Do this by changing the defaultHorizontalFacing.
Do you have placed wall sign on your cannon, like in the default design? A wall sign will work as a sign and chest docking. Without it will not search for chests.
-
View User Profile
-
Send Message
Posted Nov 8, 2014(Possible Bug or Player Error) I created a custom cannon using your instructions, it is 6 blocks long. When it fires it shoots in the right spot but the projectile goes in the opposite direction. Help?
Edit: Also when redstonereload is enabled it wont reload the the ammunition and projectile.
-
View User Profile
-
Send Message
Posted Oct 20, 2014THE BEST CANNON PLUGIN EVER. RECOMMENDED ON ANY SERVER THIS IS AMAZING
-
View User Profile
-
Send Message
Posted Sep 29, 2014@FlOppythp I think movecraft does not support the Cannons API at the moment. The only way is placing signs on your cannon to find the cannon again if it has been moved.
As long you don't touch the cannon, there is no load. However finding the cannon again, may take a while (<<10ms).
@GodsDead Ok, I have to admit I am no database expert at all. How I thought it should work is, loading all cannons on start up and saving them from time to time. I would really like to understand that.
Maybe it is because it tries to save each cannon one by one in the database. Do you have additional information here?
-
View User Profile
-
Send Message
Posted Sep 29, 2014Major mysql optimization needed; My server has been crashing from loosing connection to our separate mysql server a lot, this is an error with the way GriefPrevention handles its mysql connection killing the server, Doing some research to why there is such high load coming from my server it turned out Cannons has the most open mysql connections, it has 25 upon a fresh boot with 1 player online!
-
View User Profile
-
Send Message
Posted Sep 26, 2014@DanSpedey First, UUID support of what? Second, for new features it will depend on the future of bukkit.
-
View User Profile
-
Send Message
Posted Sep 22, 2014Anychance of UUID support?
-
View User Profile
-
Send Message
Posted Sep 22, 2014@DerPavlov
I was able to get them to work. I think there was just a problem while saving the schematic since when I made a new schematic, it worked perfectly. Thank you :)
-
View User Profile
-
Send Message
Posted Sep 20, 2014@ursak Hitting the water stuff was implement by JIJIJI, because it is useful for his ships.
@Scarpa18 The superbreaker ability in the projectile will destroy obsidian if you work without obsidian destroyer. It will break all the blocks on its 'penetration path'. I didn't test obsidian destroyer for a while, but it should work.
@inxiya Can you send me your files? I will verify them.
-
View User Profile
-
Send Message
Posted Sep 19, 2014Is there anything wrong with the tutorial? I have been trying to create a cannon but I can't seem to get it to detect the cannon when I build it. So I made a "cannon2.yml" and a "cannon2.schematic" with all the necessary parts in the tutorial. When I build the cannon in the actual game, nothing happens. Can anyone share a clearer tutorial of how to create a custom cannon from the classic.yml?
-
View User Profile
-
Send Message
Posted Sep 15, 2014@DerPavlov
thanks , but how can i deny the destroy of a obsidian? I want only the projectil Diamond can destroy obsidian (I have Obsidian Destroyer).
So , explotions normal can destroy the obsidian with 3 explotions and Diamonds (cannon) 1 explotion
sorry bad english :C
-
View User Profile
-
Send Message
Posted Sep 14, 2014@DerPavlov
Now that I figured out it needed specifik color it wasn't hard to figure out the rest. If I would like the cannon to work with each color all I really need to do is copy the files for the classic cannon, make sure to give the files new names and and change the config for each to use one of the other colors. Right? (and changing the names in the config as well)
Was really enough just to read the config for classic to figure that out and if I just put some time to checking the config more before I prob wouldn't have had to ask.
Sand is ignored if I figured this right so that it can be used when cutting out the cannon for the schematic?
I miss all the different ammo thought. Loved the old ones. Guess I'll figure out how to copy them over to the new way.
All is well and you sure have an awesome plugin here.
I did notice one thing thought. I tested the plugin with a friend. We just made a small boat each in one a different end of a lake and used the mortar to try to hit each other. I hit him, destroying his mortar and it said "cannon destroyed" or something like that.
The problem I ran into is that everytime we stoped and then started the server it gave errors in the console because of some prob with a cannon. Removed the .db file and restarted the server and it was fine again. But just letting you know.
I love, love, love the sound when you hit the water btw....
-
View User Profile
-
Send Message
Posted Sep 14, 2014@Scarpa18 Goto \plugins\CreeperHeal\world_name\config.yml and set 'custom: true'. After the impact it will take 60s for the terrain to regenerate, but you can also perform the command '\ch heal' if you have the permissions.
-
View User Profile
-
Send Message
Posted Sep 14, 2014@DerPavlov
How can i set? I have installed CreeperHeal but i don't know how :S
-
View User Profile
-
Send Message
Posted Sep 14, 2014@ursak It not so easy for me, because one wants to have it easy to use and on the other side everything should be configurable. To make a cannon in a different color you have to edit the .schematic with worldedit. If you have a new cannon design you can replace the old one or make a second entry. However each .schematic will need a .yml file with the same name.
http://dev.bukkit.org/bukkit-plugins/cannons/pages/creating-custom-cannons/
@Scarpa18 I would recommend CreeperHeal if you want to restore your terrain after some while. Set 'custom explosion' for your world to repair cannon damage.
-
View User Profile
-
Send Message
Posted Sep 13, 2014@DerPavlov
Hi , how can i heal the explotions of the Cannons?? There isn't a "custom explosion" in the config. HELP please