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 Nov 25, 2012@Raegenhere Can I make you happy, if I say I have already thought about this. I am working closing together with the team of kaleydra.de and they have suggest the same texture pack trick. I have one more question about this task. Is it possible to make also the muzzle of the cannon with the texture pack. So there is a circle visible on one or two sides of the block. This would allow me to get rid of the buttons.
The database is going to come with Cannons 2.0. But give me some time to do this, I am kind of busy at the moment.
-
View User Profile
-
Send Message
Posted Nov 25, 2012PPS: tomorrow I'll start working on a fix to the cannonballs disappearing after 60 blocks problem. Pretty sure it's a bukkit limitation and can be changed without requiering changes on the client. I'll let you know
-
View User Profile
-
Send Message
Posted Nov 25, 2012sorry I didn't answer, kinda forgot i posted here :P
To me it doesn't matter which kind of database, though I think mysql is commonly used in bukkit mods. Apart from convenient things like keeping cannons loaded after server restarts etc., I wanted it for the following reason (we discussed it a few months back):
I'd like cannons to be expensive on my server, but I don't want something abstract like purchasing permission to operate cannons. I imagine a one-time payment for each cannon, encouraging players to take care of their cannons.
My original idea was an "activation cost", something like loading a diamond into the cannon after building it in order to make it functional. Thats were you told me a database would be needed for.
But I had an idea today... which would also help MichaelMurphree's:
If "cannon material" would support datavalues, one could for example set it to 42:1, which is basically an iron block, but that can't be obtained by regular means.
It would be up to the server owner how he enables players to get those, there are lots of ways. I for one would use a custom crafting recipe that forges a "cannon barrel block" out of an iron block plus some payment, say emerald.
With the new item name NBT tag one can even name them (like you can do with the anvil). If the cannon block is mined, it just drops a regular iron block, but there are of course plugins that change this if the server owner wants that.
There is also a small advantage for people who don't care about all the above: one could set "cannon material" setting to black wool. No more pink wool phallus cannons shooting cobweb all over the server (pretty sure this happens on quite a few servers) :D
You'd make me very happy if you could make this happen :)
PS: For players with optifine or mcpatcher, one can very easily modify any texture pack to use a color overlay for blocks with that specific id+datavalue. Dark grey iron block looks a lot better than black wool. Works on any texture pack
-
View User Profile
-
Send Message
Posted Nov 22, 2012@MichaelMurphree Prevent player from building cannons? No. But you can prevent the player from using it.
cannons.player.load
cannons.player.adjust
cannons.player.fire
-
View User Profile
-
Send Message
Posted Nov 21, 2012Maybe I over looked this, but how do I keep my players from building these?
-
View User Profile
-
Send Message
Posted Nov 21, 2012<<reply 1079618="">>
i dont know how to right an plugin sry
-
View User Profile
-
Send Message
Posted Nov 21, 2012@chopstick121 I think the lockette plugin is explosion proof. Best you write a plugin that place all items on the ground and deletes the chest. Keep in mind that the chest is not deleted in the lockette database.
-
View User Profile
-
Send Message
Posted Nov 20, 2012<<reply 1078447="">>
im looking for an plugin that can destroy lockette (without cheat)
-
View User Profile
-
Send Message
Posted Nov 20, 2012@chopstick121 lockette should prevent this. But I have not tested.
-
View User Profile
-
Send Message
Posted Nov 20, 2012can it use for destroying lockette? (locked chest)
-
View User Profile
-
Send Message
Posted Nov 15, 2012@Luxius96 Thats an interessing question. Generally this is a problem of the protection plugin, because they don't handle the explosion event properly. I am working on a fix, but I have not much time at the moment. I think the next big update will be at christmas. Sry guys.
-
View User Profile
-
Send Message
Posted Nov 14, 2012Why the cannons can destroy my safezone and warzone? :(
-
View User Profile
-
Send Message
Posted Nov 14, 2012@DerPavlov
Thank you
-
View User Profile
-
Send Message
Posted Nov 7, 2012@Luxius96 You need a projectile with superbreaker: true. Check the config for more infos. Default projectile with superbreaker would be diamond or diamond_block (use this one carefully)
-
View User Profile
-
Send Message
Posted Nov 7, 2012How can i destroy water and obsidian with cannons?
-
View User Profile
-
Send Message
Posted Nov 3, 2012@Ajaxan Not tested. But if there are problems, contact me.
-
View User Profile
-
Send Message
Posted Nov 3, 2012will cannons work with 1.4?
-
View User Profile
-
Send Message
Posted Oct 29, 2012@dretax I have implemented an DB for the other project, so I am pretty sure I can do that for Cannons too. I am kind of busy at the moment, but there I am going to implement it sooner or later.
I am planning to make a eBeans implementation for SQLite and MySQL to autosave the cannon locations. Additionally a economy interface so building a cannons costs money. I am not sure how I am going to implement this. Maybe if you build a cannon, the plugin asks you if you want to buy the right to operate it. If you accept, this cannon is yours and you have become poorer. There is also the possibility to make the cannons public or private. So please let me know what you think about this.
And then I can finally wire my shotgun cannons to my door, if try to sneak in, try to dodge 20 snowballs.
Also a thing on my list is this crappy explosion handling of protection plugins. So I am going to force all explosions as TNT event. Don't know if this is possible :)
-
View User Profile
-
Send Message
Posted Oct 29, 2012<<reply 1031397>>
I'm sure that he is talking about mysql :/ Maybe:D Anyway good to see you up my old friend :)
-
View User Profile
-
Send Message
Posted Oct 27, 2012@Raegenhere No, sorry. At the moment I am working on another project. I which database are you interested in (MySQL, SQLite,...) ?