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
@sammydjdrift You can download the .jar here
https://github.com/squidicuzz/ObsidianDestroyer/raw/master/ObsidianDestroyer.jar
@DerPavlov
Hey man
Hope your having a great day, just wanted to find out if and when the modified Obsidian Destroyer would be released. I am very eager to have it on my server :)
@Damiatenjin I only want to see what happens when the projectile explodes. If diamond breaks blocks on its way before it explode. Maybe this event gets blocked and you can only see the explosion of the cannon ball. If you have only a round explosion with diamond then something is blocking this event. To test make a block of cobblestone, build the longest cannon possible and load it to maximum. Load a diamond, take cover and fire. But when I don't see it it is difficult to say whats wrong. I am really interested to know which plugin creates this conflict.
@DerPavlov
What do i need to show you involving my server, properties?
@ursak There is already a limit of how many cannons a player can build implemented. You can set a players limit per permission (cannons.player.limitA, cannons.player.limitB). If the player has both limits B will win, so limitB should be the bigger one. You can set the limits in the config file.
I like the idea that you have to buy the right for ammo. Don't know if I implement this in my plugin or provide an API so other plugins can edit this.
About buying cannons. Wouldn't it work if you added the config so you could have a set numbers of cannons per player? This way you could limit players to only be able to make one cannon or five cannons or whatever. From there you could add a system to buy cannons. If I for Ex. sets the starting limit on cannons to zero which mean that players are allowed to make 0 cannons (not allowed) and then they could buy rights to build cannons?
Did you understand my lousy english? :P
EDIT: To futher build on this you could also add the possibilities to buy the right to use each ammo.
(These are just ideas, not requests btw. :P)
@draverev Seems the hook to towny is broken in the newest version. Towny has changed its API structure to static. If you are using the latest version of Towny use the version below. It is my newest beta so there might be some bugs.
http://dl.dropbox.com/u/16404245/Towny/Cannons.jar
This doesn't work with Towny?
@Damiatenjin You have to show me the behavior on your server. It is to difficult to guess whats wrong when I can't see it.
@Raegenhere
1) The deviation angle depends more on the gun at the moment. Longer will have less than shorter. But the difference is not so big. I will increase the difference for the longer guns and maybe add a property for projectiles.
2) That can be done. I have to update my language file already so one more change does not matter.
3) The left right can be done but the rotation will not be implemented :).
Buying cannons: I think the database will come in the future. The java implementation is not the problem, I am want to have a way so it works for server without economy. And if you build a cannon and than type in a command to buy it, would be strange :) . But I would be happy to here your suggestions.
Oh, ein Landsmann! :-)
Wow, thanks for implementing those features so quickly :-)
Also I'm glad you are happy about suggestions and input - not every developer is, so it seems...
That encourages me to make even more :-)
1) I think the "deviation angle" would make more sense to be a projectile setting rather than a global one... not every projectile has the same
2) The horizontal aiming could be more intuitive. Instead of "-20 degrees" it could say "20 degrees left".
3) Would be also cool, but not sure if it's worth the effort: if you rightclick on the left side of the barrel, it set the angle to the right, and on the right side it sets the the angle to the left. This would simulate physically pushing the barrel away from you. Could also be the opposite of course, to simulate pulling it towards you.
To make it even more extreme - the center of the barrel could be the center of rotation, so it matters if you "push" the barrel on the front or on the rear... :-)
As I said, not sure if its worth the effort. I imagine it's not that easy to do, and there is not that much benefit from it. I'm just brainstorming ;-)
About the thing to make cannons more expensive... I already thought it's probably a more complicated issue. I think now I understand how this plugin works and what the problem is... I'll think about it some more, but I'm not very optimistic. Not a big deal though.
@DerPavlov
Hmmm the diamond works but not the diamond block, i can't figure out what's wrong.
@Damiatenjin Try this version. Its my newest stable with a few new features. The diamond block should now break non obsidian too.
http://dl.dropbox.com/u/16404245/Beta/Cannons.jar
@DerPavlov
How do i check for a global-tnt flag? This has happened both in claimed and non claimed property. All other projectiles work fine except for diamond diamond block, would it be that there cannon ball properties are set to false?
@Damiatenjin I have also factions running, but only one test town on peaceful. Where occurs the problem (in towns, warzones,..)? But I don't think factions is the problem when configured right. Check if a global tnt-flag is set or something like this.
@DerPavlov
I am using the faction plug in if that helps.
@Damiatenjin Do you use the latest version? In v1.6 I checked if it is obsidian and break it, all other blocks have been register per explosion event. So this maybe blocked by a protection plugin. In the newest version all is registered by event and I break it later. If you can provide me more information I am going to check your plugins, maybe something interferes.
@DerPavlov
They only break obsidian for me, anyway to fix this?
They will break all normal block + obisidian/lava/water. But no bedrock, enchantment tables,....
Are diamond blocks only suppose to break obsidian or can you set them to blow up other stuff to?
@gibbly96 Grr, ich komme doch aus Österreich :) .
Yeah I have really tried to speak English but it has become Denglish. But the video is really outdated I have to make a new one :( . I believe many player don't know how to configure and adjust things. Maybe the next video will be about editing the config. Super dry stuff.