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
In reply to Tjehu:
In reply to Forge_User_60954350:
In reply to Tjehu:
Setting it to zero for every design works for me. I tried a few other settings, but everything worked as indented. Maybe you can describe the problem in more detail.
For the ramrod set "startingSoot: 0" and "sootPerGunpowder: 0.0".
In reply to DerPavlov:
This plugin has become too complicated for its own good.
In reply to bravonolin:
Feel free to take my code and remove unimportant features. At the moment I don't have a lot of time because I am busy with other projects.
Just 4 questions I have:
1) are lit tnt projectiles?
2) is it just blocks that work to make cannons? or can I have a smaller gun that's made out of wall blocks or something?
3) is it possible to make a cannon with multiple barrels?
4) do projectiles ricochet? like if the projectile hits a sloped block (like stairs) would could the projectile bounce
In reply to Forge_User_60954350:
It is late, but maybe it helps.
1) You can only set projectiles as cannon ball.
But you can spawn tnt on impact of the projectile with "spawnOnExplosion"
2) You can build any design you want. A small tutorial can be found here:
https://dev.bukkit.org/projects/cannons/pages/creating-custom-cannons
3) Sadly no. I always wanted to link cannons, but I don't have time.
4) There was a test implementation for bouncing cannons balls on horizontal obsidian, but the impact angle detection was never implement. Stairs would be a nightmare ^^
some stuff id like(good plugin no matter)
cannons with magazine to stop firing after they get destroyed/blown up(same thing really)
the flak shell you told me to do(incredeble btw) id like a thicker ball for the explosion(feels weak because it's small(yes,even the large ball)
some sort of option maby to "pair cannons",so you only have to aim one and every other one paired to the one being aimed will target at the same thing(some range limits too)
custom muzzle explosion sizes(more gunpowder = bigger? idk)
and if it isn't a thing just yet,i want cannons to move 1 block back after they have fired(for that sick cannon feeling that tanks or other heavy stuff have)
with all due respect(love[no gay] and happiness)
- iareBirdie
In reply to Forge_User_98078409:
Thanks for sharing your ideas. The magazine firing is definitely a bug, I didn't think about that. Muzzle explosions are a little bit hard to scale because minecraft just provides two sizes. I am mostly using the large one. I will look into it.
v2.4.6, even on flatfile when shutting down the server, cannons hangs the server on "[Cannons] Cannons plugin shutting down 2." For minutes at a time.
In reply to GodsDead:
In reply to DerPavlov:
How to exclude myself, and other admins, from being targeted by all Sentry Cannons, default? :P
In reply to MasterMithrandir:
At the moment the sentries will not target you, if you are in creative mode. Should I add a permission too?
In reply to DerPavlov:
I would personally appreciate a permission. But you are the ultimate judge as to if it's inside your plugin's scope.
In reply to MasterMithrandir:
Hello I'v this error.
CAnyou tell me what's the problem ? I think is the database connection. I've try Mysql and sqlite and nothing work. The files Cannons.db is the database? (in cannons plug in)
thanks
In reply to StillShadow:
How to get sentry cannons to also fire non-whitelisted players?