Pirate Cannon

Description
Pirate Cannon enables you to create cannons that shoot projectiles, which explode on impact. You can use it in combination with Movecraft to have some great pirate battles or spaceship fights with your friends! With Pirate Cannons you dont have to reload a tnt cannon every shot, just define a reload time and ammunition will be taken from your inventory.
Installation
1. Paste the PirateCannon.jar in your server's plugin folder.
2. Reload/Restart your server. A config file will be generated in /plugins/PirateCannon
3. Edit the config.yml to match your wishes.
4. Reload again! That's it!
Usage
To create your cannon, place a row of blocks in the shooting direction. This will be your cannon. The length of a cannon can be limited in the config. Its standard value is 1 to 3. Note that only certain blocks can be part of a cannon. They can be configured as well. Standard blocks are cobblestone, iron blocks and obsidian. Now place a wall sign at the end of the row on the cannons last block, and write "c" or "[cannon]" in the top line. Thats your cannon. Right-click the sign to shoot.
Click here for rotation instructions and a picture!
If it is not working, check the length and the block types of the cannon. Feel free to create a ticket if you have any issues.
Showcase Videos
Skip to 2:55 for the action ;)
Old showcase
Update news on v 1.0.3
Thanks a lot to Max5081 for recording this :)
Review by Retroswamp
Showcase (French) by Kaikinadevelopper
Showcase (French) by leridernoir
Thank all of you very much for taking these videos :)
to do
- fix bugs (please report any issues) ;)
Please message me if you have any ideas on what i could add/change.
Changelog
v1.0.7
- added redstone triggers (here is how they work)
- fixed a some bugs concerning long cannons
- fixed a bug that caused players to die twice (only noticable with death-counting plugins)
Please add "useredstonetriggers: false" to your config (or delete it, reload/restart the server, then set your settings up again). I am sorry if that causes trouble.
v1.0.6
- updated to Bukkit 1.7.2
- fixed a bug that broke cannons longer than 3 when rotating
- added configurable entity damage to config
- did some code-cleanup (I know, thats boring, but it helps me adding/fixing stuff)
- added new permission "cannon.create", players without this permission are no longer able to create cannons
Please either delete your config and let the plugin create a new one, or add "entitydamage: 0" and "entitydamagerange: 2" to the explosion section. Sorry for that!
v1.0.5
- added 90° rotation
- fixed permission bug
You'll have to delete your config again. Back it up, and copy everything back in. You don't have to worry about changes value types this time.
Alternatively you can add "allowrotation: true" and "rotationblock: 76" by yourself if this seems easier to you.
v1.0.4
- added some cannonball types (arrow, egg, expbottle, potion)
- added message to display the remaining cooldown time of a cannon
You'll have to delete your config again, sorry for that. Back it up and paste your changes in the new one. Reload / restart your server after deleting the config to create a new one. If I remember right, there are no changes in the value types (list or number, for example), but please check it before pasting.
v1.0.3
- added cannon depending cooldown, so one cannon can only shoot once in a certain time (not bound to the player like before)
- added option to deal additional damage to the explosion damage
Once again, you will have to delete your config file. Back it up! The new config is created on reload / restart. You can copy your changes into the new config. Please have in mind that the options value type (number or list, for example) might have changed. Reload again to apply your changes!
v1.0.2
- added configuration option to disable block damage
- added configuration options to use multiple munition types
- added configuration options to use tools (must be in hand!)
I'm sorry, but you will have to delete your old config. Back it up if you did any changes! A new one should be created on reloading/starting the server. You can copy/paste your old settings into the new config. Mention that some options which were just integer numbers before are now lists! After that, reload again and the changes will apply.
v1.0.1
- added configuration options to change the impact explosion
- added configuration option to change the cannon's smoke effect density
I'm sorry, but to use the options you will have to delete your old config. Back it up if you did any changes! A new one should be created on reloading/starting the server. You can copy/paste your changes into the new config. After that, reload again and the changes will apply.
v1.0.0
- Plugin created. No changes yet.
-
View User Profile
-
Send Message
Posted Jun 13, 2016when ever i try to shoot the cannon it doesnt do damage to terrien or blocks help!
-
View User Profile
-
Send Message
Posted May 21, 2016@99IRock
Have you ever got the black wool to work?
-
View User Profile
-
Send Message
Posted May 21, 2016Hi there is there a way for me to have black wool as a cannon? I've tried many different ID's yet none of them seem to be working... Can you please help? This is a major factor in my server and is supposed to be up by June 2nd. Thank you so much and please respond as soon as possible.
-
View User Profile
-
Send Message
Posted May 2, 2016Please update to 1.7.10
-
View User Profile
-
Send Message
Posted Mar 17, 2016Made a ticket but thought I'd post a note here. Cannons don't fire in 1.9. Link to Ticket: http://dev.bukkit.org/bukkit-plugins/cannon/tickets/5-1-9-spigot-error/
-
View User Profile
-
Send Message
Posted Oct 2, 2015hi can u add a way to aim the cannon up or down a bit? so if its aimed up a bit it will have a bit of langer range then when aimed down a bit
-
View User Profile
-
Send Message
Posted Aug 18, 2014@Nexu18
In minecraft effects what kind of explosión is that?? For making worledit safe :/
-
View User Profile
-
Send Message
Posted Aug 6, 2014Sorry, I was not updating this plugin for quite some time.
I was and am inactive, and will be inactive for at least another month.
Roanldo, my co-dev, has all the code and can continue updating whenever he finds the time to do so.
Thank you for your patience, I know that feeling when content you like isn't compatible with new versions.
-
View User Profile
-
Send Message
Posted Apr 28, 2014I really hope he hasn't gone inactive, this guy was a genius. The first actually useful cannons in the history of Minecraft. My players use them all the time for PvP due to their power and ease of use.
-
View User Profile
-
Send Message
Posted Mar 9, 2014How to add an id? Like black wool for cannons. I tried 35:15 and 35/15 didnt work.
My players couldn't use it, please put the permissions somewhere. I found them myself (using decompiler) Permissions for shooting = cannon.use And I thought you don't need permissions for creating one?
Thanks for this awesome plugin!
-
View User Profile
-
Send Message
Posted Feb 18, 2014hey, awesome idea. im making a pirates server...and thought this would be perfect. so my problem is that it dosent work(for me). there is no errors logged, it enables fine, im doing the signs correctly. does anyone know of piratecannon having problems with other plugins? thank foggy34
EDIT: so i got this to work, i removed a bunch of plugins(with no effect). but what got it working was to put [Cannon] on the top line(notice the capital C). just a regular c or C or [cannon] did NOT work.
-
View User Profile
-
Send Message
Posted Feb 12, 2014Was the angling feature added?
-
View User Profile
-
Send Message
Posted Feb 3, 2014I've got an idea for a new feature. TNT on our server is kinda useless due to us having block damage from it disabled, but if it could have its damage and radius enhanced to the levels that are possible pirate cannon shots then TNT could be very useful.
-
View User Profile
-
Send Message
Posted Jan 20, 2014A minor problem that's been there all along but I've forgotten to mention it until now: when cooldown per cannon is enabled and a player without ammo tries to shoot, the cooldown counter is activated despite the shot never going off due to lack of ammo. Not a big problem but would add some polish to the plugin if it was fixed.
-
View User Profile
-
Send Message
Posted Jan 13, 2014I've noticed a problem, cannons can kill people in Factions safezones. If I was to make a guess I think safezones simply give people in it godmode so if you could fix the problem of cannons being able to kill people in god mode then I think the problem would solve itself. The other protection plugins may have the same problem, though I haven't tested them.
-
View User Profile
-
Send Message
Posted Dec 29, 2013@DivinityCraft
I added a new permission called "cannon.create" some time ago and forgot to mention it in the changelog later. I am wondering why you are the first one reporting this. Anyway, I am very sorry for that problem, it could have been avoided by me pretty easy. I will probably add this to the config settings in v 1.0.8.
Thank you very much for reporting ;)
-
View User Profile
-
Send Message
Posted Dec 28, 2013@Nexu18
Unfortunately there seems to be a permissions problem in the new version. I've always used the all config setting but it doesn't seem to work anymore so I tried giving everyone the cannon.use permission but it doesn't work either, only ops can make cannons but everyone can fire them once they're made.
-
View User Profile
-
Send Message
Posted Dec 28, 2013@DivinityCraft
I just uploaded a new version, that should fix dying twice.
It could take a very few days until the file is getting approval, though.
Glad you are satisfied ;) , thanks for your suggetions on imporoving the plugin :)
-
View User Profile
-
Send Message
Posted Dec 28, 2013Great update, thank you. The plugin is now perfect as far as I'm concerned. Did you mansge to fix the people dying twice from the same cannon shot bug?
-
View User Profile
-
Send Message
Posted Dec 25, 2013i have been on a server that had there own wars plugin and in that they had canons that you join with the same sign as this plugin but when you join it you can just click on the place your mouse pointing on and it shoots a tnt block on that place and the thing with that plugin was that you can chose the blocks that will be destroyed by the canon so for example you can destroy a door but not the house. i think that it will be very cool that you can aim the canon instead of only 1 direction and it will be easyer too for 1 player to shoot 1 canon on a ship instead of shooting 10 cannons in order to shoot at the bolcks at the sides.