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
Can we put in custom spout blocks as ammunition projectiles? And could a suggest a feature where you can configure the projectile that flies out of the cannon, rather than a snowball, maybe a block of TNT or something? It would solve the snowball disappearing after 60 blocks I think.
@DerPavlov: No sense in going overboard. Simply having the ability to add a cost to destroying obsidian would be preferable. I have players that complain about Obsidian and being able to shoot diamonds/diamond blocks at obsidian walls to break them would be a relatively balanced way to bypass that particular protection.
Might be interesting to make a freezing shot one that replaces water blocks in the explosion radius with ice which can then be shot through with standard ammunition. (blowing up ice doesn't make it turn back into water) Keep up the exceptional work, good sir!
@CS_Hague There is a option in the config file which controls the penetration abilitiy of your cannonballs. I think obsidian has as default 3 block penetration. That means if the projectile hits the wall it will explode 3 blocks behind. If it explodes in water it will do only playerdamage, no blockdamage. It does not check if obsidian or anything else is penetrated (But can be implemented if this is what you are looking for).
For the next version a 'super break' ability is planned. This would allow you to destroy obsidian walls. A option to destroy water sources on impact is also on my (long) list :)
I noticed shells don't penetrate obsidian. Could you add an option for certain ammunition types to penetrate obsidian? I manage a faction-based pvp server and being able to damage enemies inside fortified bases would be ideal. Currently there are no durability plugins that operate properly like that so a viable alternative is what I'm looking for.
Something simple like:
penetrates_obsidian: true/false
@JoshzPruitt It checks for old obsolete entries and deletes them. In the next version this message will be removed.
Whats this "[Cannons] clean up" message I keep getting exactly every 5 minutes?
@JoshzPruitt Sry, it is diffcult to implement because it would be global for all explosions. It would be better to have a small plugin which replaces protected blocks.
Could there be a config added that only allows cannons to break certain blocks? For example, If I had an NPC town I wanted to flatten, I would like to break all the man-made blocks (planks, cobble, stairs, fences, ect.) without breaking any grass or smooth-stone.
how do i set the gun to autoload and activate rapidfire? I put the redstone torch under the barrel but nothing happens
Edit: I watched the vid and I made it work
@Pandamatak
The cannon is saved until it is destroyed. When you load a cannon with a projectile you are marked as operator and the amount of cannons you can operate can be limited (LimitA/B). If you fire or destroy the cannon this flag will disappear.
To trigger a cannon with redstone you must place a redstone torch underneath the barrel. You can place also more than one. If you turn 'redstone autoload' you have to load the cannon after each shot. I hope I have answered your questions.
Just curious, once a cannon is created and loaded, does it stay like that forever?
I'd also like to propose a feature (which may already be implemented) which allows you to run redstone up to the cannon (up to the button on the torch end) which can trigger the cannon. I saw the redstone autoload which supposedly makes it rapid-fire. If I just turn that off, will it work with redstone (but people would still have to load it)
@webname
Every 5min the plugin searchs for invalid or old entries and deletes them, but there should be no error. But I can remove this message :)
@Thokas
I have tested it but I cant reproduce the issue. I need more information to fix this.
Just updated to 1.5 on my server. When I load gunpowder, then try to load a some cobble, it tells me there is no Sulphur in the cannon and resets the amount in the cannon. Rolling back to 1.4 fixed this for me.
Anyway of turning of the 5min console message "[canons] cleaning up" rather see errors/warnings on my console :)
thanks
@Rensik
I will have a look to it. Can you describe how the problem can reproduced? Which server version do you use? Do you have a server where you can show me this? I cant reproduce the error.
Edit: When you use cannonball: true and canister shot: true the gun will fire a cannonball but it will not explode. I tried to create with this a kind of trainings ammunition.
Canister Shots are buggy in the beta build of Cannons 1.4. They worked at first loading of the plugin, but they've since stopped after reloading/restarting the server.
@danielboyz
Nice idea. I am keen to see what settings you like.
I made a thread for adding your cannonballs! http://forums.bukkit.org/threads/cannons-plugin-cannonballs.65223/
@DerPavlov
hmm might be a the timefuse, lemme check with other blocks EDIT: ITS TEH TIME FUSE XD.....well yeh tested with cobble, it hit the wall, and tnt, blown on mid air, just tested with 2 accounts with 2 clients