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 Dec 16, 2012Hey an idea for ya just came up in a conversation with a buddy.
What if you had settings and schematics set up in a database format such as SQLite or MySQL (MySQL could be nice because people like me could make you a happy little webapp for config to go with =D). Have the plugin check the SQL database for its information on startup, then if you had an admin say wanting to put in a new cannon design with specific ammunition settings he can do it while people are playing. Once done a reload command would query the DB and of course update to the new changes!
This would also open up the possibilities of having dynamic information on peoples websites such as schematics and ammo types with what the ammo does and its damage values etc. I know personally I would set up an admin tool on our site (most likely as a wordpress plugin and standalone just so I could make life easy on our admins), and on our info page which we put dynamic info we can add schematics and cannon info! (admins see things such as plugins with their versions, users on, what map ppl are on, server latency etc through our NightQuery plugin would be nice to give them some more tools for control....[Side note I need to update NightQuery and put it on bukkitdev, still works since 1.3 beta lol so havent had motive until now])
Anyways, we were chatting round here and had some ideas for more dynamic information to websites from MC servers, and your plugin was on the list of things that would be just downright awesome to be able to things like this with!
Cheers Ambe
-
View User Profile
-
Send Message
Posted Dec 14, 2012Downdate to 1.4.5R0.2
https://dl.dropbox.com/u/16404245/test/Cannons.jar
-
View User Profile
-
Send Message
Posted Dec 14, 2012@ambedrake I am going to make this tonight. But if you have more suggestions, you are welcome :D
-
View User Profile
-
Send Message
Posted Dec 14, 2012lol I know that feeling! An r0.2 build would be awesome, though I would suggest having a link to both the 0.2 and 0.3 builds as some are indeed using the new dev version and it would get your plugin a head start on being noticed more!
-
View User Profile
-
Send Message
Posted Dec 14, 2012@ambedrake Sry my fault I used the version craftbukkit-1.4.5-R0.3-20121201.201145-15. This development builds confuse me. I can also down date this version so it works again for R0.2.
-
View User Profile
-
Send Message
Posted Dec 14, 2012We are running on 1.4.5-r0.2 build # 2488 (the beta build that's posted on bukkit.org) if that's of any use.
As for the craftbook updating its signs I have not dug into his code because it was an added bonus we discovered during glitch testing. I am not sure it is supposed to act that way purposely but we spent about 4-5 hours messing with it and only from a block update or a right click did it act that way. Hope that is of some help, I will see what I can dig up from his code (which is rather extensive so may take some time >.<) when I get home this coming Saturday and see if I can find anything on the way its handling it.
On the note of the rewrite having the ability to define multiple cannon types would be nice, you could have mortars with a certain set of properties (such as distance shot, angles, ammunition types and how they interact etc).
As an added note we are more then willing to Guinea pig any beta builds of this plugin on our server provided its for the right release. (As there is so much controversy over the R0.3 commits we have been very wary about using it until a final decision is released on how they want to handle NMS/OBC plugins so that we can move forward on what plugins we wish to implement that will stay updated with it.)
Thanks for the speedy reply, Ambe
-
View User Profile
-
Send Message
Posted Dec 14, 2012@ambedrake There was a change for directions for bukkit in 1.4.5R0.2. So, if you run an older server version, please use the appropriate cannons version.
About movecraft, I have really talked a much to the developer, but he is kind of busy at the moment. I don't know how long he is going to need to finish the API of Movecraft. The only fix to get cannons working with movecraft, is using signs to store information. Signs may look a litte bit funny on a cannon, but if it works I can try it. Is there any other information hidden in the blocks to use. E.g. the unique id of the block stays the same. You mentioned this update check? How does it work?
I am also planning to rewrite the cannon detection algorithm. Basically you can build own cannons in any shape and define the properties via a config file. For example a wooden cannon can store less gunpowder than the iron one. It should be as flexible as possible. So if you want a mortar or a barrel with 2x2, you can get it.
-
View User Profile
-
Send Message
Posted Dec 13, 2012Interesting, testing out your plugin and love the idea. I seem to have a similar issue with a 90 degree firing (wich since 1-9-3 was released after your bugfix one in the comments I thought the fix would cross over). The difference is my cannons are firing 90 deg to the right.
Anyhow I am testing this to see about adding it for our users who have been wanting a cannon plugin for awhile. Also would be awsome to have these work on movecraft airships if at all possible.
Some ideas on the movecraft thought now that im on it. Using of buttons, wall mounted signs, doors etc can cause duping glitches. Maybe using a pressure plate in front of the cannons base could help with this if you decide to impliment movecraft support. Also on that note maybe using a sign on the barrel to load the cannon, this can on the fly define a cannon that has been moved by things such as worldedit or movecraft. (signs can cause an update check, and reload coord information, We found this out when testing out custom IC's from craftbook and learning updating the sign from a right click or redstone made the plugin realize there was an IC there).
Just my two cents, problems and some idea's. Keep up the good work mate!
Ambedrake
-
View User Profile
-
Send Message
Posted Dec 13, 2012@SqueeGeeism Which version do you use? I have implemented a new TNT-Event handling for impact events in 1.9.3. Basically if you can blow stuff up with tnt, you can do it with cannons too. You can turn this off in the config with 'force tnt event: false'. But I think I have forgotten to cancel the player damage event, my fault. Don't know why the latest version is still under review, but you should be able to download it. It might be that essentials still cancels all explosion events. But I am not an essentials expert.
http://dev.bukkit.org/server-mods/block-cannons-v1-1/files/16-cannons-v1-9-3/
-
View User Profile
-
Send Message
Posted Dec 13, 2012I hope someone can help me out with this, The cannons can fire and damage people and mobs but not cause damage to the landscape. The plugins I have are essentials, Groupmanger, lockette, and player heads. Hope you can help me out
-
View User Profile
-
Send Message
Posted Dec 11, 2012thanks everything is fixed now
-
View User Profile
-
Send Message
Posted Dec 10, 2012@soakk I solved the factions problem. Cannons should work now with all protection plugins. If you have no explosion at all, please report immediately. I can't connect to the minecraft server so I am unable to test this version. But it should work (I have only removed the faction API).
https://dl.dropbox.com/u/16404245/test/Cannons.jar
-
View User Profile
-
Send Message
Posted Dec 10, 2012im getting this error with the jar u previously posted
-
View User Profile
-
Send Message
Posted Dec 3, 2012@ShakirPlayZ That's strange. Is this for all cannons or only for those facing in a certain direction (EAST, WEST,...). I don't see a plugin which is problematic, but I will make further investigations. Can you send me your server with your plugins as .zip file? No world or something, only the plugins.
EDIT: This bug is confirmed for the latest development build. But I don't know if this is a bug or a new feature :D . So please use the latest Beta R0.2.
EDIT2: For all these poor admin whose cannons does not shoot straight
https://dl.dropbox.com/u/16404245/test/Cannons.jar
-
View User Profile
-
Send Message
Posted Dec 3, 2012I used your Version (https://dl.dropbox.com/u/16404245/Cannons%201.9/Cannons.jar) but the Problem is not solved. Its still shootin to the left.
Maybe a Plugin list? Here you go Hope this helps:
-
View User Profile
-
Send Message
Posted Dec 2, 2012@ShakirPlayZ Can you check if it behave different for version below? Made some small bugfixes and added a permission for projectiles. The 90 degree bug was not found. Maybe a version mismatch.
https://dl.dropbox.com/u/16404245/Cannons%201.9/Cannons.jar
Now the player has a node for every projectile. Deny and allow all projectiles with:
cannons.projectile.all
or give certain projectiles with (Note you have to deny 'all', else the player has all projectiles):
- -cannons.projectile.all
- cannons.projectile.cobblestone
-
View User Profile
-
Send Message
Posted Dec 2, 2012Im using your Plugin with my craftbukkit 1.4.5 Building is fine, but if i shoot the cannon the projectile will always fly to the left. Changing the angle isnt working. I changed the angle to 90 degrees to the left but it wont shoot straight.
Any hints?
-
View User Profile
-
Send Message
Posted Dec 2, 2012Will be the plugin updated to CB 1.4.5? I found a bug on this version - cannons didn't shoot straight, they shoot 90 degrees left.
-
View User Profile
-
Send Message
Posted Nov 26, 2012@MichaelMurphree I can't prevent people form building cannons, because they consists of ordinary blocks. The only way I know is to use materials players can't obtain without a command e.g. sponge, bedrock. So give sponge a nice looking texture and nobody can build them. Be aware they can salvage your existing cannons :)
-
View User Profile
-
Send Message
Posted Nov 26, 2012I don't mind them using them, i just don't want them to build them. We are making castle war type areas where we are allowing these. EDIT: Couldn't I just use the limits to keep them from building? so that staff can build and players can operate?