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 Oct 4, 2013Another bug, I've noticed that sometimes people somehow get killed twice by the same cannonball.
-
View User Profile
-
Send Message
Posted Oct 3, 2013@DivinityCraft
Thanks for reporting, I'm working on a fix.
-
View User Profile
-
Send Message
Posted Oct 3, 2013There is a bug with the new rotation feature: if you have allowed a higher cannon length than the default and use a cannon longer than default, the rotation only rotates the first 3 blocks of the cannon and forgets about the rest.
-
View User Profile
-
Send Message
Posted Sep 29, 2013@crunchycamsta
Rotations are added in v1.0.5 :) .
I'll create another page to explain how it's working, click here.
@machanicdude
You can configure permissions in the config. You can use another permission plugin by setting permissions to "op" in the config. This enables usage of the permission string "cannon.use". Please download v1.0.5 as well, there is a very important bug fix on the permissions.
-
View User Profile
-
Send Message
Posted Sep 28, 2013Permissions?
-
View User Profile
-
Send Message
Posted Sep 27, 2013@crunchycamsta
(Reread your suggestion)
Alright, I misunderstood you. What I meant was like, the ability to adjust aim, not a full 90 degree rotation of the cannon itself.
-
View User Profile
-
Send Message
Posted Sep 24, 2013@Max5081
The rotating feature was never enabled in cannons plugin (which is not outdated)
-
View User Profile
-
Send Message
Posted Sep 24, 2013Hello there,
I'm back at home and will continue working from now on ;) .
I read all your comments and thought about them:
@DoubleD_D
Thanks a lot, awesome video! I added it to the showcase section, if you'd like to change sth, let me know!
@GreenGrizzlyBear
Adding an aming option is not too difficult, but to me it seems hard to get the accurate position the player is aiming on the sign. I'll do some other things first, but I will think about this point.
Defining a cannon block order in the config will be added when I got time to do it. :)
Showing the cooldown on the sign seems impossible to me, because the cannons could be mounted on a moving ship (for example in combination with Movecraft). As soon as they are moved away, I can not find them again to change the cooldown.
Cooldown per cannon is already added.
@crunchycamsta
Rotating cannons are a nice idea, I'll do this next :) .
Thanks for all of your suggestions, they're really helpful.
-
View User Profile
-
Send Message
Posted Sep 22, 2013@crunchycamsta
Possible yes. It is done with the outdated Cannon plugin.
-
View User Profile
-
Send Message
Posted Sep 21, 2013Would it be possible to add cannons that can rotate 90 degrees?
-
View User Profile
-
Send Message
Posted Sep 14, 2013I like how simple this is, but could you add an option for aiming?
Like toggle set aiming, /cannon toggleaim or something, and clicking on the top of the cannnon would make it hit lower, and the other way around, and right click the left side, would make it shoot more towards the right, in a certain # of degrees?
Also, maybe add an option to configure a certain build type?
Like say
Required Blocks
-41
-46
-49
would require those 3 items, in any order, to be in the cannon, since my..MY max cannon length is 3.
Or in a certain order
Required blocks
1st:49
2nd:41
3rd:47
4th: etc as needed
putting a sign on the last one, so in this case the 4th block?
Only things I could ever think would make it better
Edit: Thought of one more, option to show cooldown on the sign? 3rd or 4th line
and I think its already added, but if its not, cooldown per cannon, not per person?
Im done now, seriously :P
-
View User Profile
-
Send Message
Posted Sep 13, 2013Hello there sir, I made a plugin spotlight. Please consider embedding it in the main post.
-
View User Profile
-
Send Message
Posted Sep 13, 2013I'll be away from sunday 15th september to 22th september.
I don't have internet access during this time, so don't expect any updates and don't worry if I don't answer any pm's / comments, I'll read them as soon as I get back.
-
View User Profile
-
Send Message
Posted Sep 12, 2013@Nexu18
Yay, it's possible, meaning I'm not a total idiot in the art of Plugins! xD
Also, I sent you a PM with the video a day or so ago.
-
View User Profile
-
Send Message
Posted Sep 11, 2013@Max5081
Using the Scoreboard would be possible :) , but I do not know when a player moves to another ship or anything, so maybe using a chat message will do it for now.
@ShadeRaccoon
Simple text message will be released in the next update, but I'm still fixing a few bugs on primed tnt cannonballs. Latest release date will be next sunday (15.09.).
Thanks for your suggestions!
-
View User Profile
-
Send Message
Posted Sep 11, 2013@Nexu18
I was actually thinking just a simple text message to the player chat when you right click a cannon that's on cooldown, is that possible?
-
View User Profile
-
Send Message
Posted Sep 11, 2013@Nexu18
How about this; (Now, I have no idea how Bukkit works, so feel free to call me an idiot) With 1.6 came the Scoreboards. You could create a list of cannons on a "Scoreboard" with their cooldowns listed. I don't know if this could be per-player, per-registered ship (With MoveCraft or Ships), or just have a command like /pc (or whatever you want Pirate Cannon's command to be) player cannons show And then in the chat (For that person who issued the command) it would show the info (Cooldown times, location, whatever) of that player's cannons.
-
View User Profile
-
Send Message
Posted Sep 11, 2013@DivinityCraft
Thanks for your feedback :) .
I can't just print the cooldown on a sign, as long as the cannons are used on moving vehicles, but I'll think off a way to display at least the last clicked cannon's cooldown.
-
View User Profile
-
Send Message
Posted Sep 11, 2013Great work, the bug fixes and new additions work without problem as far as we can tell. Could you add the option of having a message that tells how long cooldown is left on a cannon when you have separate cannon cooldowns? Other than that the plugin seems to be perfect.
-
View User Profile
-
Send Message
Posted Sep 2, 2013@Nexu18
Thanks for your feedback, it's already the best cannon plugin on Bukkit so we will certainly keep using it even if all the ideas aren't possible to implement.
For us the exact damage is unimportant as long as it's guaranteed to kill anyone no matter the armor/potions, so not being able to precisely know how much damage is dealt is fine for us.
Our testing since installing the plugin shows that a warmup time, although nice, would probably make cannons impractical in combat. It's already challenging to hit people running around fast on the wall of a town you're sieging, adding a warmup would probably make it close to impossible.
We discovered a very small and pretty insignificant glitch. If you right click a normal sign that's not connected to a plugin and is on the side of a block and not free-standing, and you do not have the required ammo for shooting a cannon in your inventory, it will give off the "You need some munition to fire this Cannon!" message. Maybe it is related to the CraftBook conflict somehow.