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 Feb 19, 2013@robotnikthingy That was not that motivation I had in mind, but it works too.
Your problem sounds like 'autoaim'. So basically it cycles through entities next to the cannon and fires. The first approximation would be 'line of sight'. It is easy to implement, but if the projectiles is slow it will not work. Additionally I can correct the z-angle with the distance - this is kind of experimental at the moment.
If you want to change the angle of a gun, you have to select it somehow. So you need the location of the gun (not very practical in a command), the name of the cannon, or the name of a group of cannons. For you the last would be the best, I think. So you select all cannons in the castle, aim at a spot or a entity, and wait for the impact.
-
View User Profile
-
Send Message
Posted Feb 19, 2013@DerPavlov
Hmmm, well i think i just sent you a little 'motivation' through paypal :)
Also it would be nice to have different 'classes' or 'types' of cannons
Like cannons made of black wool could fire certain projectiles and maybe have better accuracy, while one made from grey wool would have more range and be able to fire certain projectiles, have different angles, max barrel length, ect.
Also what i meant for cannons to be aimed by commands, i wanted them to basically be like NPC's because im planning an event on my server where everyone is going to attack an NPC controlled fort, but with no players to man the cannons there is no way to aim them
-
View User Profile
-
Send Message
Posted Feb 18, 2013@robotnikthingy At the moment the cannon can only be turned by clicking it. No commands, no autoaiming. What you mention sound like an interface to other plugins, so other plugins can change the properties of a cannon. This is on my list, but I have to admit I have no time at the moment.
If you tell me what you have planned, maybe we can find an easy solution for this. Also a basic autoaim can be done in a few hours. I only need much motivation to start programming :D
-
View User Profile
-
Send Message
Posted Feb 17, 2013@DerPavlov
Ah ok. Though would it be possible to change a cannons angle using commands then?
-
View User Profile
-
Send Message
Posted Feb 17, 2013oh ok thanks. and that sounds amazing! If i get any ideas ill post it here for you!
-
View User Profile
-
Send Message
Posted Feb 17, 2013@willkiller1234 A redstone torch will not work with cannons. You need a normal torch on top. For redstone firing you need torch underneath the barrel. I think this is your problem if I understood you correctly.
It is planed to make custom cannon designs possible in the future, but I hadn't had time to implement it. Basically you build a cannon and mark all block. The plugin makes a .yml file for this cannon an you can edit the properties, like usable projectiles, maximum gunpowder and all the stuff. So a wood cannon may fire only 10m while a diamond barrel can fire all over the map. I have to get this teleport working. At the moment the snowball stops midair after 150 blocks :D
-
View User Profile
-
Send Message
Posted Feb 17, 2013Ok thanks. I have the whole plugin installed and the commands work but when i try to build a cannon with he buttons and red stone torch and black wool it just doesn't turn into a cannon. I have the lastest build and 1.4.7R1.0 for craftbukkit.
There are no errors in the console on startup or during the building of the cannon either.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@DerPavlov
Wúúúúúúú :D
Good to see that you have accepted my idea :D Finally you accepted Spout! :D
Long wait mate :D
-
View User Profile
-
Send Message
Posted Feb 16, 2013@willkiller1234 No it is player based. You give the player the permission to use a cannon. Best you write a small plugin that sets permissions if the player joins or leaves a faction.
-
View User Profile
-
Send Message
Posted Feb 16, 2013Is this hooked up with factions? Like can you have a faction only cannon?
-
View User Profile
-
Send Message
Posted Feb 16, 2013@robotnikthingy Cannons can be fired by redstone. Wire the button on the back with redstone or place a redstone torch underneath the barrel. In 1.9.4 the angle is also saved in the database. In combination with the redstone autoreload (chest with ammo on the last block of the cannon) you can set up a cannon that fires if triggered and reloads. So firing at the same spot is no problem, but there is no autoaim or something (have thought about that, but had not had enough time to implement it).
I also know that cannons is really bad documented, so if anyone is interested in writing a small tutorial, contact me.
-
View User Profile
-
Send Message
Posted Feb 15, 2013Hello
I was wondering if it would be possible to make it so you aim the cannons using redstone or commands (or command blocks). That way it would be possible to make automatically aiming cannons, or to have cannons aim at a certain spot in adventure maps and stuff.
-
View User Profile
-
Send Message
Posted Feb 15, 2013@komunx3 Ok, than open your config.
-
View User Profile
-
Send Message
Posted Feb 15, 2013oh jear, cobblestone runs :), but i need leather ^^
-
View User Profile
-
Send Message
Posted Feb 15, 2013@komunx3 But gunpowder and cobblestone is working? I have never tested Leather - but it should work if you add it as projectile in the config. You have to add it twice, as projectile in the list, so you can load it, and as projectile properties.
-
View User Profile
-
Send Message
Posted Feb 15, 2013So i test with the last recommered and development build on bukkit. I see always in the log. but no error.
But my players cant, and me too fill the cannon with materials as Leather or so on
-
View User Profile
-
Send Message
Posted Feb 15, 2013@DerpyZ I made a small link in the description. Is there any audio in you version?
@komunx3 Ok, thats odd. You should get at least an error at startup or a message in game. Do you use the R1.0 or the development build of bukkit? You can send me also your plugin folder, then I am going to test it.
-
View User Profile
-
Send Message
Posted Feb 15, 2013I use your beta version. I use the newest Bukkit version no error when a user want to load, comes nothing in chat and in console
-
View User Profile
-
Send Message
Posted Feb 14, 2013I made a plugin showcase. I know it isn't very good, but I'll make a better version later.http:www.youtube.com/watch?v=biAmH3ltG4I
-
View User Profile
-
Send Message
Posted Feb 14, 2013@komunx3 Give me more info