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 14, 2012@laclongquan No problem. I have also deleted many plugin if the are not working on the first try :) To make a nuke choose a material you want to use and add it to the 'allowed projectiles' list so you can load it. Copy a property entry and name it the same way like the list entry. Than increase the 'explosion power'.
-
View User Profile
-
Send Message
Posted Jun 14, 2012No, no, no, my apologies, DerPavlov. After update, it works very well. Keep up the good work! It'd be cool if there was a secret "nuke" type ammo! Also, how to fire the gun using redstone?
-
View User Profile
-
Send Message
Posted Jun 14, 2012@laclongquan That your decision if you don't want to use a plugin. I am also not very happy with the stability and a few bugs made it into the release. So sorry about that. I am really very happy if I can help you guys if a problem occurs. But you must help me and give me feedback. But please be so kind and post me the error messages. This helps me really. I have to guess your log is filled with 'Wrong language'. It was not so a good idea to use special characters. That happens if you have no linux system to test it :)
-
View User Profile
-
Send Message
Posted Jun 14, 2012Sorry about not replying right away, DerPavlov. I might update my Cannons. The problem was, one, my console got completely filled with errors and it sometimes even caused it the crash. Two, if it didn't crash, creation of cannons was NOT POSSIBLE. In the end, I chose to simply send the Plugin straight to my recycle bin... BTW, I didn't edit the config. EDIT: I updated the plugin and it works.
-
View User Profile
-
Send Message
Posted Jun 14, 2012@bigloloraf There can be many reason for this. Maybe you use a protection plugin which prevents explosion. Towny, faction, ... will cancel all explosion events in protected areas and there will be no explosion. If you don't know which plugin is interfering or you are sure that there is a bug, please send my a .zip of your server and I am going to test it. Please delete the world to keep the file small.
@Virusbomb If you use the latest version this should work. Maybe if something is canceling the explosion event this will also prevent you from teleporting. But if you see an impact this will probably be a programming thing. You can also send me your server files if you want.
-
View User Profile
-
Send Message
Posted Jun 14, 2012Awesome plugin but i can't get the ender pearl to teleport me. Anyone else have this problem?
-
View User Profile
-
Send Message
Posted Jun 14, 2012The shell doesn't explode...
-
View User Profile
-
Send Message
Posted Jun 13, 2012@B1ade92 Movecraft API is coming in v2.0 so the cannons can be fired in moving aircrafts. This will be the biggest part of the next version.
Also a more realistic behavior is planed. So cannons move 1 block back and move forward before you can fire. Maybe I will also disable aiming when the cannon is not in firing position. The cannon will scramble the angles after firing and there will be a loading from the front feature. But this will be all configurable in the config. So you can turn it off and on.
Buying cannons is also very interesting so a economy implementation will come also. But for this I have to save cannon locations and at the moment I have no idea how to implement it :)
-
View User Profile
-
Send Message
Posted Jun 13, 2012Awesomeeee! and future updates?
-
View User Profile
-
Send Message
Posted Jun 13, 2012@B1ade92 You remind me to make a video about that. But you can add items to the config. There is a list with items ('allowed projectiles') which can be loaded in the cannon and below you have the properties of these. You have to use the same name for list entry and property. The name of the item you can find here:
http://dev.bukkit.org/server-mods/block-cannons-v1-1/pages/installation-and-configuration/configuration/
For a autofire cannon place a chest next to the block with the torch and a redstone torch underneath the barrel. Load the cannon with gunpowder and a projectile. Don't forget to take cover :)
https://dl.dropbox.com/u/16404245/2012-05-17_19.46.26.png
-
View User Profile
-
Send Message
Posted Jun 13, 2012This is like legitly the most fun i have ever had with a mod. can i look donate for you to add more effects or add more items to insert as ammo? such as arrows? and possibly make an automatic firing cannon? all of this would be sick. Thanks!
-
View User Profile
-
Send Message
Posted Jun 12, 2012@Katorone So guys if you have problems with the .yml or timefused TNT you can use this. I will release it soon
https://dl.dropbox.com/u/16404245/Cannons.jar
-
View User Profile
-
Send Message
Posted Jun 12, 2012There's a small error on the console when players are firing TNT with the cannon.
The cannons are built inside a worldguard region, block damage is turned off in the cannons config.
-
View User Profile
-
Send Message
Posted Jun 11, 2012@Katorone Ok, no problem. I am going to update the version so the .yml should work.
-
View User Profile
-
Send Message
Posted Jun 11, 2012@DerPavlov : I've tried both the custom files, and only the second one (https://dl.dropbox.com/u/16404245/CustomLanguage.yml) is working. The other language files gives the same errors as displayed earlier. I would have tested this earlier, but I was unable to get in-game, the commands didn't work from the console so I couldn't test it through there.
-
View User Profile
-
Send Message
Posted Jun 11, 2012@Katorone If you have time please try load with the custom languages files i have provided in the previous post. I don't know why it does not load the .yml.
-
View User Profile
-
Send Message
Posted Jun 11, 2012Oh, my bad... Apparently the default value for language is 'custom'. I didn't think about changing it to English. Restarted the server and all is well now. :-D Thanks !
-
View User Profile
-
Send Message
Posted Jun 10, 2012Ok, guys so many at once :) . Please try to set 'language: english' in the config. I hope this fixes the problem with the config. If this works there is a problem with the config and I don't know why it works for me.
Now lets gets CustomLanguage working. Try to switch back to custom, load the config below and reload the server
https://dl.dropbox.com/u/16404245/Cannons%20Sprachdateien/English/CustomLanguage.yml
If not, try this one
https://dl.dropbox.com/u/16404245/CustomLanguage.yml
I think there is a problem with the ° character I use.
-
View User Profile
-
Send Message
Posted Jun 10, 2012When using cannons on the latest bukkit build, I'm getting this error: http://dev.bukkit.org/paste/5545/
CustomLanguage.yml is empty. Even when I fill it with the example here and /cannons reload, the errors keep appearing and CustomLanguage.yml is again empty.
-
View User Profile
-
Send Message
Posted Jun 10, 2012See this error, in server log:
[SEVERE] Cannot load configuration from stream org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 718 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202) at at.pavlov.Cannons.UserMessages.reloadcustomLanguage(UserMessages.java:403) at at.pavlov.Cannons.UserMessages.loadCustom(UserMessages.java:292) at at.pavlov.Cannons.UserMessages.loadLanguage(UserMessages.java:71)
I've deleted CustomLanguage.yml file, and restarted the server it just creates a zero byte size empty file, and suggestions?
Many thanks.