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 Jun 11, 2014@DerPavlov
Updated some of the documentation for ya
@FlOppythp
Try to use a more respectful tone please. The cleaning and such can be turned off through the config file. Though I have to agree, it would be best to have advanced features (heat management, cleaning) turned off by default
-
View User Profile
-
Send Message
Posted Jun 11, 2014@robotnikthingy Autoaiming can be activated via right click with a clock. To actually aim you have to hold shift, else the cannon will not turn. To deactivate the aiming move click the cannon again, or run again :)
@FlOppythp Trust me, I don't add bugs to cannon on purpose. If you send me the config file I will see if I can find the problem.
-
View User Profile
-
Send Message
Posted Jun 9, 2014Found another bug: shift & right/left clicking the cannon does not make it enter auto-aim mode
-
View User Profile
-
Send Message
Posted Jun 9, 2014@FlOppythp If your projectile is exploding I can't silence it since the sound is created by bukkit. Pressure plate stuff will come with the next 'hotfix'.
I can only make a withelist of blocks for the penetration of the projectile. The explosion is default minecraft stuff and will break the same blocks as tnt does. But I believe a blacklist would be easier to handle. Do you want that global or different for each projectile?
EDIT: You can add/remove blocks for the superbreaker mode in the main config.
-
View User Profile
-
Send Message
Posted Jun 7, 2014@FlOppythp Fixed. Give me some time to release it.
A wall sign works of course only on the side of the cannon. But you can use chests instead by changing the id in the design.
@endlessnumber Sry for the confusion, I meant the Cannons 2.2 version which was already under approval, at that moment. However it took some time for the official release. If you need a different version let me know, because I can only release one version here.
@AlmoGSurizon You have at placeBlock: a number. Remove the 11 and it should work. However if you have the 2.2 version I recommend you to make a new projectile file, because I change much stuff.
Don't forget to add the projectile as allowed projectile for your cannons.
-
View User Profile
-
Send Message
Posted Jun 6, 2014I tried adding a new projectile and its not working can you please help me?
-
View User Profile
-
Send Message
Posted Jun 5, 2014@MoseMister
Yes, I am asking about the cannon update :)
-
View User Profile
-
Send Message
Posted Jun 5, 2014@endlessnumber
I thought I stated that cannons will be supported with ships when cannons gets updated.
Also (this has been on the lateats changes for about 2 days) a new version of ships is coming out that works with older craftbukkits
-
View User Profile
-
Send Message
Posted Jun 5, 2014@DerPavlov
I am sorry, let me clarify.
The latest version of Cannons (v2.1 R3) does work with CB 1.7.2, but does not work with CB 1.7.9.
Ships 3.2.x does work with CB 1.7.2 and 1.7.9, but does not support Cannons. Ships 4.x does support cannons but does not work with 1.7.2. So I am asking for a Cannons release/fix for 1.7.9, does this make sense ? :)
-
View User Profile
-
Send Message
Posted Jun 4, 2014@endlessnumber Have you tried the 1.6.4 for bukkit 1.7.2? That one should be working. Else I can release a version for 1.7.2.
@robotnikthingy Found the bug for the exploding cannons. For me the dispenser is working. However there is bug when you load a dispenser with worldedit. Bukkit will set a default direction for the placed dispenser.
@FlOppythp Hm, everyone is planing my spare time :).
EDIT: I found the problem with the pressure plate.
But now I have the problem that you can shift+right click a button to fire a cannon, because you don't get a redstone event. Not autoreload for buttons at the moment. How should I implement autoreloading for buttons?
-
View User Profile
-
Send Message
Posted Jun 4, 2014When will an update for 1.7.9 be released? I am eager to use the latest version of Ships with Cannons support, however that does not work on 1.7.2.
-
View User Profile
-
Send Message
Posted Jun 4, 2014found a bug:
-Cannons wont work if the schematic contains a dispenser
-Cannons will still explode and overheat even when heatmanagement is set to disabled in the config
-
View User Profile
-
Send Message
Posted Jun 3, 2014@DerPavlov
However, longer barrels can provide better penetration and velocity, just like they do in real life
edit: also, I think i found a bug; Cannons wont work if the schematic has a dispenser or dropper in it
-
View User Profile
-
Send Message
Posted Jun 2, 2014@robotnikthingy I know that making new cannon designs can be complicated. But making super long cannons to get better accuracy does not make sense. I would rather implement a kind of update system where you provide a material/money to the cannons to upgrade it to a better one.
@FlOppythp I made something when you set the explosionPower to -1. Will be in the upcoming version.
-
View User Profile
-
Send Message
Posted Jun 2, 2014I have an idea that might solve the problem with cannon lengths. Many people want to be able to add length, subract length from the barrels of their cannon, or generally just have cannons of different sizes. I was thinking, under the constructionBlocks setting in the cannon design YML, you can have the following settings
and this would allow a cannon to have varying legnths. for example, if it were set to
any time a user added black wool to the cannon (and assuming it was added to where the stone was in the cannon schematic), it would increase its length. And this could then be connected to a multiplier based on how much wool is added to the cannon that affects accuracy, etc
-
View User Profile
-
Send Message
Posted Jun 2, 2014@DerPavlov
Alright, thank you!
-
View User Profile
-
Send Message
Posted Jun 2, 2014@FlOppythp
I see, thank you.
-
View User Profile
-
Send Message
Posted May 29, 2014@ThePhobez Hm, good point. There is still the wrong description. But have to make a new schematic of your cannon. I usually use worldedit to load and save schematics. Ask if this tutorial is not detailed enough:
http://dev.bukkit.org/bukkit-plugins/cannons/pages/installation-and-configuration/cannons-2-0-and-up/creating/
-
View User Profile
-
Send Message
Posted May 28, 2014"Build the barrel with 3 wool blocks (can be changed in the config)..."
Which settings actually? I can't seem to find it. Thank you for this great plug-in by the way!
-
View User Profile
-
Send Message
Posted May 26, 2014@FlOppythp Can you send me a picture of your redstone wiring and pressure plate arrangement, because I can't reproduce the problem.
If redstone connected to the pressure plate does not change its state, it is a minecraft problem. However if the redstone is activated and the cannon is not firing - then I have to fix this.
Note there is a delay of 1s (fuseBurnTime) between activation with redstone and firing of the cannon.
To deactivate a message set the message test to " ". So the message contains only one space character.