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 May 31, 2013Does anybody know how to "unlock" the cannons? I placed some but then it wont let anybody else fire them. I cant seem find it in the perms. ('m probably just not looking at it hard enough)
-
View User Profile
-
Send Message
Posted May 31, 2013@tenchimasakisama
Thanks! a simple cannon appears to have worked. I guess my schematic must have been wrong.
@DerPavlov
Thanks for the help and making the mod!
-
View User Profile
-
Send Message
Posted May 31, 2013@robotnikthingy Seems that bukkit is running out memory. Thats very bad. Try to stop and restart your server. If the error persists there is a memory leak somewhere.
-
View User Profile
-
Send Message
Posted May 31, 2013@DerPavlov
I think my config is correct http://dev.bukkit.org/paste/7854/
edit: also i noticed this error on server startup, though cannons still work despite the error http://dev.bukkit.org/paste/7855/
-
View User Profile
-
Send Message
Posted May 31, 2013@hodlum The new version is still under review, therefore not released by curse. Because the classic.schematic is damaged you have to delete it manually. If you have no luck with worldedit, try this one.
https://dl.dropboxusercontent.com/u/16404245/Cannons/classic.schematic
https://dl.dropboxusercontent.com/u/16404245/Cannons/iron.schematic
But the problem seems to be fixed already. I think you have no permission for your cannon. So please look into the classic.yml which permissions are required to build, fire, load, or whatever.
@tenchimasakisama Thats an expensive cannon :) For spout it might be possible to create custom cannon blocks, that can be crafted. I thought also about implementing vault, so you have to pay for your cannon. But I don't like the idea.
@robotnikthingy The classic.schematic is damaged, so please use this one. Or wait until the new version is reviewed.
https://dl.dropboxusercontent.com/u/16404245/Cannons/classic.schematic
Edit: Is Autofire enabled in the config? Is the chest loaded with projectile and gunpowder? Everything else looks fine
-
View User Profile
-
Send Message
Posted May 31, 2013I downloaded the latest version uploaded, and it still seems like the classic.schematic is corrupt, it cannot be loaded in either worldedit or MCedit
Also, i dont think redstone autoloading works, unless im doing it wrong. i pull the lever and the cannon fires, but it does not automatically reload
heres pictures of how the cannon is set up http://i1001.photobucket.com/albums/af138/loljeffisanaltaccoun/2013-05-31_030603.png http://i1001.photobucket.com/albums/af138/loljeffisanaltaccoun/2013-05-31_030355.png
-
View User Profile
-
Send Message
Posted May 30, 2013@hodlum
Hey Hodlum,
If it's a cannon that you copy and saved yourself, you will need to break a block and replace it after you've placed the schematic into /cannons/designs. If that is not working, try building a very simple (3x1x1 wool+torch+buttons) cannon design to see if maybe the design is somehow too complicated.
-
View User Profile
-
Send Message
Posted May 30, 2013@tenchimasakisama
@tenchimasakisama,
I have copied the schematics to the cannons/designs directory. After doing so the [SEVERE] messages no longer appear on server load. However, when I try to build the cannon, nothing happens. I have tried the 'click on the fuse' thing and no message registers.
From the nature of the server logs I assume the plug-in has loaded but the schematic is not registering as a cannon.
-
View User Profile
-
Send Message
Posted May 30, 2013@hodlum
hodlum,
You've copied the schematic into the cannons/designs/ directory?
-
View User Profile
-
Send Message
Posted May 30, 2013@DerPavlov
Hey DerPavlov!
I wanted to make cannons on my server somewhat more expensive to make, so I opted for an anvil and couple iron blocks as well as some obsidian. http://imgur.com/a/RjiV2#0
-
View User Profile
-
Send Message
Posted May 30, 2013Thanks DerPavlov and tenchimasakisama for helping with this.
@DerPavlov:
I've tried downloading the new copy you have uploaded but I'm getting the same error. Can I confirm which version of worldedit I should be using? I'm currently on 5.5.6.
@tenchimasakisama:
I've tried remaking the schematic exactly as the 'creating custom cannons' page showed and I'm still not having any luck. I've loaded the schematic again to make sure it looks correct and it does appear to do that. Am I missing a step?
-
View User Profile
-
Send Message
Posted May 30, 2013Hi, guys. Sry for the problem with the classic.schematic. I have uploaded a new version, where it is (hopefully) fixed. I fixed also the typo in cannons.player.build.
Since cannons ships with only one design I need your inspiration for more cannons (or mortars, or other weapons of mass destruction). Send me your best designs and I will host them on bukkit or implement them in the cannons.jar.
-
View User Profile
-
Send Message
Posted May 30, 2013@tenchimasakisama
Thanks! This fix does work for the schematic file, but now the problem is permissions. Is the permission cannon.player.build supposed to read cannons.player.build? This seems to be the only problem that could be causing it.
-
View User Profile
-
Send Message
Posted May 30, 2013I've figured out the creeper heal problem. For those of you who have upgraded cannons, also upgrade creeperheal. Then go to creeperheal config and enable healing of custom explosions.
Thanks guys
-
View User Profile
-
Send Message
Posted May 30, 2013@hodlum
Hey Hodlum,
When I first started using 2.0, I had the same issue. I then threw out their custom.schematics file (under cannons in the cannons plugin config directory) and created my own schematic with worldedit. I made the cannon how I wanted to look (facing west) on the server, selected it (make sure not to select the ground under it), used //copy and //schem save classic.schematic Then I moved the schematic to the cannon designs directory and reloaded cannons with /cannons reload. I was able to create my own cannons after that.
tl;dr
1. With worldedit plugin included, create a cannon (facing west) however you want it to look
2. Select the only the cannon using worldedit
3. Use //copy with selection
4. Use //schem save classic.schematic to save the schematic
5. Go to your ~/worldedit/schamtics/ folder and move the classic.schematic file to ~/cannons/designs, replacing the one that already exists
6. On your server or with admin access, use /cannons reload to reload the plugin
You should be able to create cannons following these steps.
-
View User Profile
-
Send Message
Posted May 30, 2013Hi, Love your work.
I am having the same problem as Ajaxan with version 2.0 and CB-1.5.2.
specifically, Cannon mod appears to load everything except for [SEVERE] [Cannons] Schematic null true [SEVERE] [Cannons] Error while loading shematic plugins/Cannons/designs/classic.schematic :java.lang.NullPointerException File True
I have tried making a fresh install of Craftbukkit with just Worldedit and Cannons but the problem still happens. Hope you guys can look into this.
-
View User Profile
-
Send Message
Posted May 30, 2013@Siera66
Hey. Good to see you here.
Soon on the weekend we might start the work on it. First im going to implent custom cannon balls.It will give nice stuffs.:D
-
View User Profile
-
Send Message
Posted May 29, 2013Hey Devs. I'm loving the new upgrade! One thing that I'm having issue with is now that I'm using v2.0, it seems that creeper heal is no longer mending the damage done by cannons. Am I missing some kind of hook documentation?
Thanks
-
View User Profile
-
Send Message
Posted May 29, 2013Is there something that has to be changed in the config to make cannons active/work? I added the .jar file and I can tell the plugin is running. I can type in the commands for help with cannons and they all work. Cannons themselves cannot be built by players or admins. I realize they may just not be "turned on" right away, I just haven't been able to find out how to activate them.
I looked back at my logs and I got this error on start-up. 22:46:34 [SEVERE] [Cannons] Schematic null true 22:46:34 [SEVERE] [Cannons] Error while loading shematic plugins/Cannons/designs/classic.schematic :java.lang.NullPointerException File true
Is this a problem I can fix?
-
View User Profile
-
Send Message
Posted May 29, 2013@Siera66 Dretrax is working on it. But you can use also every type of custom block to build your cannon or as projectile.