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 Sep 2, 2013@ShadeRaccoon
Currently the plugin only creates an explosion, all the damage players are taking is done by the explosion. To change the damage players are taking i can check the distance between every online player and the impact of the cannon ball, and then lower their health. This should be possible, but i do not know how much damage the player already took from the explosion, so the damage he is taking could be higher.
Making each cannon having its own cooldown is possible, but since i can't identify the cannon I would have to print an identification number or something on every cannon. This will be some work but I see that players do only create a single cannon in each direction right know ;) .
Something similar to a "warmup"-time seems to be impossible to me. I really like the idea to trigger the cannon and hear that hissing creeper sound in battle, but the cannons are mounted on moving ships! If the plugin is waiting some time, the cannon could have gone anywhere. No possibility to find it without checking every block of that world. I'm sorry, if you know anyone who can help me with/got an idea about this, let me know!
Adding some other cannon ball options would be quite easy, I'll do that, but as in your list, this ain't top priority.
I will check out the issue with CraftBook, thanks for reporting :) .
Thank you a lot for your suggestions, I do really like them and I am very sorry for not being able to integrate all of them.
-
View User Profile
-
Send Message
Posted Sep 1, 2013@Nexu18
Thanks a lot, the setting works so we now let everyone on the server use the cannons and they love them. Their ease of use makes them particularly popular. There are a number of additions that could be made for the plugin that would it even better for our server and many other servers too probably, I will group them according to how important I find them.
-Very important- Adding the ability to change the damage done by the cannon in the config. We want to be able to set the cannon damage so high that even people in god armor dies in one hit, to ensure that cannons have real use and are not just fun gimmicks. I don't know if the cannon damage consists of only a blast or if there are different "damages" depending on if you're directly hit by the cannon ball or just stand in the blast. If they are separate you should perhaps have different settings for them in the config.
Something else that I can imagine is probably very hard to code is to add an option in the config to make each cannon have its own cooldown, instead of having the cooldown tied to the player. This change in combination with a long cooldown means people would be motivated to build a lot of cannons on their ships (for servers like ours that uses ship plugins) so that they become similar to historical IRL ships which often had dozens and even hundreds of cannons.
-Moderate importance- Adding the ability to have a duration between clicking the sign and the cannon ball getting fired, to simulate IRL cannon fuses. On our server we have muskets that work that way and making cannons work in the same way would be great. If this is implemented as an option I recommend also adding the TNT fuse sound effect when sign is clicked.
-Low importance- While using the snow ball as cannon ball is a great idea and something we will stick with, it would probably be easy to add an option to change what the cannon ball looks like and I would recommend doing this.
Finally, there is a compatibility issue with CraftBook. For some reason, Pirate Cannon makes it impossible to use the signs for CraftBook gates and doors. It's still possible to use them with redstone so we have deemed this an acceptable drawback since your plugin is so good, but it would be very appreciated if this plugin conflict could be fixed.
Again, thank you for making such a great cannon plugin. I hope you will find some of my recommendations useful so that it can become even better.
-
View User Profile
-
Send Message
Posted Aug 31, 2013Awesome plugin. Any chance to be able to activate it via Redstone? Amazing traps!
-
View User Profile
-
Send Message
Posted Aug 30, 2013Awesome, gonna update the plugin and try it out, so far it has worked on my server (1.5.2) no problem, so hope that doesn't change.
-
View User Profile
-
Send Message
Posted Aug 29, 2013lets get a small video showing this in action :D
-
View User Profile
-
Send Message
Posted Aug 29, 2013@ShadeRaccoon
added to the config options, dont forget to turn fire off as well, and please check if its working ;)
@Jack_Daddy
multiple ammos are now implemented, as well as using a tool to fire a cannon
Thanks for all the great ideas on improving this plugin :)
-
View User Profile
-
Send Message
Posted Aug 28, 2013Could you add the possiblity of disabling block damage from explosions into the config? Our server needs to have that disabled but Essentials, Factions and WorldGuard can't block it.
-
View User Profile
-
Send Message
Posted Aug 23, 2013@Jack_Daddy
Currently there is no way to set different ammo types, but i will add this in the next update. Thanks for your suggestion ;)
-
View User Profile
-
Send Message
Posted Aug 22, 2013Love this plugin, awesome for my server, but i'm curious about if you intend on allowing multiple ammos? I think it would be awesome to need like 1 unit of gunpowder, 1 cobblestone and simple possess a flint and steel to launch the cannon.
-
View User Profile
-
Send Message
Posted Aug 14, 2013@rasnyderiii
You can deny impact explosions in certain areas using WorldGuard. You have to select a region like in WorldEdit, then define your selection as region:
/region define <region name>
Set its flag "other-explosion" to deny:
/region flag <region name> other-explosion deny
You should get returned: Region flag other-explosion set on 'region name' to 'deny'. I tested it, but please test if everything works on your server as well before something is griefed.
-
View User Profile
-
Send Message
Posted Aug 13, 2013can you make this obey Towny Advanced protection - so it cannot destroy that or WG
-
View User Profile
-
Send Message
Posted Aug 9, 2013This is what I needed. Arrrrhhh
-
View User Profile
-
Send Message
Posted Aug 8, 2013@WanderingSoulofTime sorry, there is currently no way to change this, but i will add it in an update soon.
-
View User Profile
-
Send Message
Posted Aug 8, 2013This is really cool!
Is there anyway to be able to change the explosion damage and power? currently i want to make this cannon work in certain arenas of mine for fun, but it cannot break brick or iron blocks.
-
View User Profile
-
Send Message
Posted Aug 7, 2013Cool plugin!