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 Oct 14, 2013Updating any time soon?
-
View User Profile
-
Send Message
Posted Oct 10, 2013@JaffaMiner You have to make your own cannon design.
http://dev.bukkit.org/bukkit-plugins/cannons/pages/installation-and-configuration/cannons-2-0-and-up/creating/
-
View User Profile
-
Send Message
Posted Oct 9, 2013@DerParlov Hi, is there any way to configure the amount of blocks a cannon can be (default 3) without making a schematic? This was possible with earlier versions, and it would be very convenient to just change one number in the latest version. -Thanks!
-
View User Profile
-
Send Message
Posted Sep 30, 2013@DerPavlov I put repeaters on my cannon schematic and it works perfectly now!!! awesome Thank you very much!
Ps : awesome update on your plugin, i love the ability of chest to load the cannon !!! Thanks man, as soon as my server will make profit i will think to donate ;)
-
View User Profile
-
Send Message
Posted Sep 30, 2013@mineshaft87 It seems it can't load the cannons from the database, because a sign block is missing or something. Try to delete the database. I think that might fix the error. However I have to check this part for bugs.
@yong11 Can you send me your pluginfolder? I will test it on my server
@DARNIC92 With one of the last updates I changed the the default design a little bit. Now redstone repeaters replace the redstone wire to indicate redstone ports. So try to build a cannon without redstone wires or with repeater to check if this is the problem.
-
View User Profile
-
Send Message
Posted Sep 28, 2013Hi, i need your help. I can't create my custom cannons and i don't know why. I did the same cannon than in the demo, but i added one black block : look at the pictures : http://www.hostingpics.net/viewer.php?id=55441220130929035026.png
http://img15.hostingpics.net/pics/21797320130929035002.png

I changed the yml file name and the designname inside the yml file according to the name of my schematic. I've done correctly the shematic taking care to select the whole sand and high of the cannon. I'm op and have every permissions, but when i create the cannon (even after restarts), nothing happens, i don't have the message "you created a cannon" and can't load it. For information my classic cannons are working ...
Any idea please? i really need this :(
-
View User Profile
-
Send Message
Posted Sep 28, 2013@DerPavlov
I am still having the problem... I isolated the plugin... all I had was Worldedit, PermissionsEx, and Cannons. When OPed, can't build the cannon, and when deoped, still can't build the cannon. Same error: You don't have permission to build the cannon. Though, I can say /cannons, and all the info with it is shown. It looks like it is just the building part...
-
View User Profile
-
Send Message
Posted Sep 28, 2013Can someone tell me whats up with this? All i did in the config is allow players to aim 70% left and right.
15:28:30 [SEVERE] [Cannons] [Cannons v2.0-R4] could not be enabled! 15:28:30 [SEVERE] [Cannons] [Cannons v2.0-R4] exception: 15:28:30 [SEVERE] java.lang.NullPointerException 15:28:30 [SEVERE] at org.bukkit.Location.getBlock(Location.java:82) 15:28:30 [SEVERE] at at.pavlov.cannons.cannon.Cannon.isCannonSign(Cannon.j ava:485) 15:28:30 [SEVERE] at at.pavlov.cannons.cannon.Cannon.updateCannonSigns(Can non.java:794) 15:28:30 [SEVERE] at at.pavlov.cannons.CannonManager.createCannon(CannonMa nager.java:167) 15:28:30 [SEVERE] at at.pavlov.cannons.Cannons.createCannon(Cannons.java:3 86) 15:28:30 [SEVERE] at at.pavlov.cannons.dao.PersistenceDatabase.loadCannons (PersistenceDatabase.java:74) 15:28:30 [SEVERE] at at.pavlov.cannons.Cannons.onEnable(Cannons.java:139) 15:28:30 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug in.java:217) 15:28:30 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin( JavaPluginLoader.java:457) 15:28:30 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si mplePluginManager.java:381) 15:28:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin (CraftServer.java:282) 15:28:30 [SEVERE] at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlug ins(CraftServer.java:264) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.l(Minecr aftServer.java:315) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.f(Minecr aftServer.java:292) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.a(Minecr aftServer.java:252) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.DedicatedServer.init(Ded icatedServer.java:152) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.MinecraftServer.run(Mine craftServer.java:393) 15:28:30 [SEVERE] at net.minecraft.server.v1_6_R3.ThreadServerApplication. run(SourceFile:583)
-
View User Profile
-
Send Message
Posted Sep 27, 2013@DerPavlov
Yeah i know how to aim the cannon but it seems when you place blocks around it (to try make it look cooler) it screws up the aim) not a big problem though just got to make sure it has space.
-
View User Profile
-
Send Message
Posted Sep 25, 2013@yong11 It seems that a differentplugin blocks the cannon events. The only plugin I know which uses them is TownyPlus.
-
View User Profile
-
Send Message
Posted Sep 23, 2013Hey DerPavlov, thanks for replying to my comment earlier. I have another problem unfortunately with permissions. I cannot get anybody to be able to build a cannon, even ops cannot build a cannon. I am using permissionsEx, and have tried to give the players the following: cannons.*, cannons.player.*, and cannons.build. I've also tried reinstalling it, isolating the plugin, and reseting my config with no results. The error in the console is: [INFO] [Cannons] missing permission while creating a cannon: Permissionerrorbuild
-I don't know how to fix this... Please help me :P-
View User Profile
-
Send Message
Posted Sep 21, 2013@mineshaft87 You can use right click and shift+right click to invert the rotation.
@deathstrike1313 Is there any error while starting. Try the /cannons command if something happens. And send me a picture of your cannon if possible.
@hastur42 Firing the cannons with autofiring should reload the cannon before firing. So you active the redstone it will fire once. The next time it will reload from the chest (check if there is gunpowder and a projectile) and fire.
@deathmaul51 I tested creeperheal a long time ago and it should work with cannons. Enable the 'custom' explosions feature in the creeperheal config for every world. If it does not work, please contact me again.
For different projectiles simple copy the one which ships with cannons and modify the loading item of the projectile. Make sure to add also the projectile file name to the allowed projectiles of the cannon.
http://dev.bukkit.org/bukkit-plugins/cannons/pages/installation-and-configuration/cannons-2-0-and-up/projectile/
-
View User Profile
-
Send Message
Posted Sep 17, 2013I was wondering if this plugin was going to be usable with CreeperHeal again.
I know it was compatible in the past but it doesn't seem to be compatible any longer. This makes me very sad. :( I was hoping to see it used still with the server that I am running but without it being able to work along side CreeperHeal I don't think I will be able to use it like I did in the past.
Fantastic plugin by the way. I am very happy to use it and love the ability you have with it. It really makes a full scale Galleon come to life when you see cannons fire off the sides. Amazing job.
Thanks,
Deathmaul51
Edit: I was also wondering if what we needed to do in order to use different projectiles other then Cobblestone. If I missed something please forgive me. I do not have a lot of time to work on things as IRL is busy with 2 full time jobs and a full time relationship. :(
-
View User Profile
-
Send Message
Posted Sep 17, 2013Great plugin! My players have been requesting this one for a while and I finally got around to adding it. It works perfectly, except for one feature that I cannot for the life of me get to work. I cannot get the cannon to load gunpowder and cobble from the chest!
I am using the default cannon. I've added the cannons.players.* perms. I checked the other yml files to ensure that autoreloadRedstone: true is in the classic.yml. The followed the cannon example layout in the dropbox pic above with the chest on the side and redstone torch underneath.
The cannons/designs/classic.yml does have autoreloadRedstone: true. The related perms are: build: cannons.player.build load: cannons.player.load fire: cannons.player.fire adjust: cannons.player.adjust autoaim: cannons.player.autoaim targetTracking: cannons.player.tracking redstone: cannons.player.redstone autoreload: cannons.player.autoreload
The redstone WILL fire the cannon when triggered if I manually load the cannon... it just will not pull the contents from the chest and auto re-load the cannon itself. I've tried several variations on the location of the redstone torch and the contents of the chest with no luck.
Anyone else run into this or have a recommendation on what I am overlooking??
-
View User Profile
-
Send Message
Posted Sep 17, 2013@DerPavlov
Thank you! Everything works perfectly. I apologize for what had to divert to you explained everything in detail.
-
View User Profile
-
Send Message
Posted Sep 16, 2013Help! I have the cannons plugin loaded. And i have the commands for it (/cannons reload, /cannons build, /cannons fire, /cannons adjust. but i cant make cannons. Im op by the way. And i dont get any messages when i build the cannon (3 black wool in a line with 2 buttons and a torch on one end. Cant load or fire since the plugin doesent recognize that i even made the cannon.
-
View User Profile
-
Send Message
Posted Sep 16, 2013Great plugin! One problem is sometimes if i am clicking on the left side of the cannon it aims it right? Not sure if its because we copied and pasted and also rotated the cannons when making the map or not? Also i can't seem to load anything but gunpowder and people are talking about different types of ammo you can use? Thanks, this plugin is my favorite!!
-
View User Profile
-
Send Message
Posted Sep 16, 2013@yong11 There is a debug option in the config. Set it to false and it should stop doing that.
@hooptiecoupe Its nice to hear that you like the plugin. If you want to write some tutorials, you are welcome. I am a little bit busy at the moment.
@easydream I checked my worldguard 5.7.5 and 'other-explosion' flags prevents explosions from cannons. However the penetration is not working probably, so please test this version:
https://dl.dropboxusercontent.com/u/16404245/Beta/Cannons.jar
-
View User Profile
-
Send Message
Posted Sep 14, 2013I tested blowing up my own spawn with it, from a distance outside of the protections where people can build. And it can blow up my spawn..? I have safezone claims [yes exposions disabled] and worldguard regions with all the explosion flags denying
-
View User Profile
-
Send Message
Posted Sep 13, 2013@DerPavlov
the flag of the other-explosion does not exist in the plugin worldguard, but in config.yml in the plugin worldguard there's a feature, but it prohibits explosions all over the world! Describe in detail how to protect the region or add this function in the config plugin as it was in the old versions. Thanks for the help.