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 Jul 6, 2016REALLY GOOD PLUGIN! cannons - what every server needs XD
-
View User Profile
-
Send Message
Posted Jul 6, 2016@JaffaMC Cannons can not add new lines to the config, because it would delete all the comments in the file. Therefore, you have two options:
https://github.com/DerPavlov/Cannons/blob/master/src/main/resources/config.yml
-
View User Profile
-
Send Message
Posted Jul 5, 2016@DerPavlov
Can you clarify what you mean by the config? That option doesn't exist in the existing Cannons config, so I tried adding "relayExplosionEvent: True" just somewhere in there and it didn't work. Thanks!
-
View User Profile
-
Send Message
Posted Jun 27, 2016@GodsDead I tried to implement the minecraft '/summon' command. It works just for 1 world, and I have no clue if this can be fixed. Otherwise you can spawn everything. Maybe I have a good idea in the next few days.
EDIT: '/summon' did not work, so I had to implement my own code for the minecraft data code style. The good thing is, my first try seems to work with area_of_effect_clouds for float, int values, and colors. The bad thing, potion, particles effects are still missing.
EDIT: Tipped Arrow, Spectral Arrows and Area of Effect Cloud implemented. Next step would be equipment for Entities. Therefore my question, do want to spawn zombies with enchanted armor? Spawning normal armor would be fairly easy with a slight variation from the minecraft code style, implementing the minecraft code might be a little bit more complicated. I will try and see how it works.
-
View User Profile
-
Send Message
Posted Jun 20, 2016Request: Lingering potions on impact.
-
View User Profile
-
Send Message
Posted Jun 19, 2016@robotnikthingy Good point. Somehow I forgot to make the interface, since the code already exists. The cannon distinguished between three types: Players (can be whitelisted), Mob, Cannons (whitelist the owner). I think will add an command, but I can also add an item if you want.
-
View User Profile
-
Send Message
Posted Jun 18, 2016Is it possible to add an option to sentry cannons so that they only fire at mobs? I placed some around my spawn to try and make it look cool, but they they fired at the players lol
Probably best way to do it is to allow players to toggle it by clicking on the cannon while holding a certain item
-
View User Profile
-
Send Message
Posted May 27, 2016@JaffaMC Try setting 'relayExplosionEvent: True' in the cannons config. Spigot added a new event which is not supported by all plugins. With this you just relay it to the old event. Report back if this did not work.
-
View User Profile
-
Send Message
Posted May 24, 2016Hey, Recently the plugin has been having issues; cannons won't damage block within any zone, no matter if it has other-explosion allowed or not. I have 1.7 versions of Cannons and WorldGuard. Any advice would be appreciated. Thanks!
-
View User Profile
-
Send Message
Posted May 22, 2016hello, I am really enjoying this plugin but an issue with Forseth's feudal plugin and this cannons plugin has come up. The issue is that claimed land is not supposed to be able to get destroyed, the cannons plugin works around it and for this, it has been removed. I truly enjoy the experience this plugin gives, but if its possible, both the owner, many other people, and I were wondering if you could make it so the cannons plugin is compatible with Forseth's feudal plugin by not being able to destroy claimed land.
A message sent by forseth11: http://feudal.coremod.com/Main_Page
-
View User Profile
-
Send Message
Posted May 21, 2016@TheZerok666 1.9 did change a lot of things and I am too busy at the moment to test every feature. But fixing the Fireballs should be no problem.
@robotnikthingy At the moment I recommend editing or deleting the "Cannons.db". If the problem persists contact me again.
-
View User Profile
-
Send Message
Posted May 21, 2016Hi, im getting an error that says '[Error] ?c[Cannons] Cannon has no owner. Contact the plugin developer'
and im guessing that because of it, when I fire my cannons it makes the firing sound, but doesnt fire a projectile
http://dev.bukkit.org/bukkit-plugins/cannons/tickets/68-error-c-cannons-cannon-has-no-owner-contact-the-plugin/
-
View User Profile
-
Send Message
Posted May 19, 2016Hello there! I just updated this piece of awesomeness (no sarcasm, this plugin is awesome) to 1.9 and noticed a problem: using FIREBALL (ghast fireball) or DRAGON_FIREBALL as the cannonball entity either makes an explosion right at the tip of the cannon (ghast fireball) or fires normally, but creates a dragon breath AoE on impact (dragon fireball, obviously).
It seems to me that the plugin does not cancel the natural effects these entities have, like if it'd actually summon a real ghast fireball, it'd impact the button at the end of the cannon and blow the whole thing up.
Would be nice to see this fixed :P
-
View User Profile
-
Send Message
Posted May 15, 2016@TioSans That is very difficult for me to implement, since I would need to hook into every protection plugin - and then bypass it. There was a similar request for Factions. I think they implemented something in Factions.
-
View User Profile
-
Send Message
Posted May 13, 2016I really like this plugin, but I was wondering if you could add one thing:
you can add an option to cannonballs to ignore the protection of towny?
I would like some cannonballs can do damage to enemy cities that have connected users.
-
View User Profile
-
Send Message
Posted May 9, 2016@RustyDagger I takes money when you build a cannon, since it forgets cannons of not online players on server restart, I would disable it for now.
Add the message BUILD_COSTS, DISMANTLING_REFUND, DESTRUCTION_REFUND (not working at the moment) to show the prices. You pay when the cannon is created. So you could add the price tag to 'Cannon.Created' message.
-
View User Profile
-
Send Message
Posted May 8, 2016@DerPavlov
There are not even any messages in the Language files for Money taken or Money given. only Not enough money.
The plugin DOES NOT tell players when it takes their money. I have tested this. To see for your self you can join my server.
mc.elementalnations.com then join the factions server /server factions.
In spawn you will find a cannons Guide Teleporter that will show you my cannon designs with any luck you will catch me online and i can just spawn one in. and some Ammo.
-
View User Profile
-
Send Message
Posted May 3, 2016@ariodsenuke Cannons was never intended to run with mods, so it was lucky that it worked at all. However, I will have a look.
@RustyDagger The plugin should not withdraw money without notifying the player (not tested). However, the plugin deletes currently cannons of players which are not online on server start. I already fixed that and will release it as soon as possible.
When I remember correctly the doesexplosiondamage=false applies for the explosion only. The penetration event is unaffected. But you are correct it, should affect both.
-
View User Profile
-
Send Message
Posted May 3, 2016Been running quite fine on my server as of late. However I have some feedback and requests that would be nice.
1. my players have complained that there is no chat message when Money is taken from them when Building a cannon. The responsibility Lies with Cannons to notify players as there is no way the econ plugin can add support for every plugin. Might be an idea to let them know when they receive money too from destruction or breakage ( refund money )
2. an admin command to spawn Ammo would be Very useful for when testing.
with superbreaker enabled on a projectile and doesexplosiondamage set to false ( should not break blocks ) when the projectile penatrates It still explodes and breaks obsidian 1 block on every side of the impact creating a 3 high Hole in the wall. I was hoping to only have the penatration make a 1 block hole in the wall but I cant seem to turn off the explosion or stop it breaking other blocks around the impact.
-
View User Profile
-
Send Message
Posted May 2, 2016This is not an issue with mods. Its an issue with the plugin being incompatible with MORE than one mod. First railcraft and now forestry.