Cannons

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.

http://dev.bukkit.org/media/images/55/103/cannons_650.png

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 Wukkit

by wickedbrother

out-dated video

Alternatvie plugin showcase

Installation

  1. Install WorldEdit first (don't forget this)
  2. 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

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)

ToDo

  • Additional events/methods for seamless operation with movement plugins e.g. Movecraft, iSail

Credits

  • Raser4000
  • DreTax
  • JlJlJl
  • and many more

Donate

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of DerPavlov DerPavlov May 04, 2016 at 06:10 UTC - 0 likes

    @ariodsenuke: Go Cannons was never intended to run with mods, so it was lucky that it worked at all. However, I will have a look.

    @RustyDagger: Go The plugin should not withdraw money without notifying the player (not tested). However, the plugin deletes currently cannons of players which are not online on server start. I already fixed that and will release it as soon as possible.

    When I remember correctly the doesexplosiondamage=false applies for the explosion only. The penetration event is unaffected. But you are correct it, should affect both.

  • Avatar of RustyDagger RustyDagger May 04, 2016 at 05:25 UTC - 0 likes

    Been running quite fine on my server as of late. However I have some feedback and requests that would be nice.

    1. my players have complained that there is no chat message when Money is taken from them when Building a cannon. The responsibility Lies with Cannons to notify players as there is no way the econ plugin can add support for every plugin. Might be an idea to let them know when they receive money too from destruction or breakage ( refund money )

    2. an admin command to spawn Ammo would be Very useful for when testing.

    with superbreaker enabled on a projectile and doesexplosiondamage set to false ( should not break blocks ) when the projectile penatrates It still explodes and breaks obsidian 1 block on every side of the impact creating a 3 high Hole in the wall. I was hoping to only have the penatration make a 1 block hole in the wall but I cant seem to turn off the explosion or stop it breaking other blocks around the impact.

    Last edited May 04, 2016 by RustyDagger
    • Current Job: Taxi Driver.
    • Hobby: OzCraft
  • Avatar of ariodsenuke ariodsenuke May 02, 2016 at 19:15 UTC - 0 likes

    This is not an issue with mods. Its an issue with the plugin being incompatible with MORE than one mod. First railcraft and now forestry.

  • Avatar of ariodsenuke ariodsenuke May 02, 2016 at 19:12 UTC - 0 likes

    @DerPavlov: Go

    only error logs pertaining to forestry now. I tried to change one of the projectiles.

  • Avatar of DerPavlov DerPavlov May 01, 2016 at 11:45 UTC - 0 likes

    @redcell124: Go My guess would be: WorldEdit is either missing or not compatible with your version.

    @ariodsenuke: Go Any idea what you changed? Are there any error logs?

  • Avatar of redcell124 redcell124 May 01, 2016 at 01:47 UTC - 0 likes

    I keep getting this error messages when trying to run cannons on my server. Do you know how to fix it? Thanks.

    [20:16:22 INFO]: [Cannons] Enabling Cannons v2.4.0 [20:16:22 INFO]: [Cannons] Loading projectile configs [20:16:22 INFO]: [Cannons] Loading cannon designs [20:16:22 ERROR]: Error occurred while enabling Cannons v2.4.0 (Is it up to date?) java.lang.NoSuchMethodError: com.sk89q.worldedit.CuboidClipboard.getBlock(Lcom/sk89q/worldedit/Vector;)Lcom/sk89q/worldedit/blocks/BaseBlock; at at.pavlov.cannons.cannon.DesignStorage.loadDesignSchematic(DesignStorage.java:404) [?:?] at at.pavlov.cannons.cannon.DesignStorage.loadCannonDesigns(DesignStorage.java:73) [?:?] at at.pavlov.cannons.config.Config.loadConfig(Config.java:177) [?:?] at at.pavlov.cannons.Cannons.onEnable(Cannons.java:141) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [spigot-1.9.jar:git-Spigot-

  • Avatar of ariodsenuke ariodsenuke Apr 30, 2016 at 20:00 UTC - 0 likes

    After removing railcraft it was running fine.

    Then I changed the config for the classic cannon

    Now its doing the same thing with the forestry mod and my server only launches with it removed.

  • Avatar of RustyDagger RustyDagger Apr 23, 2016 at 13:50 UTC - 0 likes

    @DerPavlov: Go

    I really dont get what you mean but the colors It colored in my hand the only way that could be done is if my shops plugin switched out my & for the stupid S thing mojang uses before creating the Item Do i need the & or the Stupid S thing in the cannons config?

    If i set my shop plugin to use Mojang's §4 It does not color the item but instead displays the charaters and then cannons accepts it if i set cannons to loadingItem: '440:0:§4Arrow of Harming'

    So from that I concluded cannons does No processing on § If i set it in cannons using & and in my shops plugin using & it does not work. it wont accept the Item. my item does not have Italic's applied just the red color. Maybe cannons is expecting any named item to have italic's Im at a loss at how any plugin can rename it and have it work but then when it adds color it dont work. I dont see that as the shop plugin failing. The items renamed but cannons wont accept it.

    On a side note Your Default Name detection is Flawed I set it to this.

    loadingItem: '440:0:Arrow of Harming'

    Yes it lets you load the vanilla named item thats Arrow of Harming But it also lets you load any 440 ID Item thats been renamed to Arrow of Harming. So its not going to work for example I could make Arrows of Speed and then just rename them to Arrow of Harming and have them work as a harming arrow. It needs NBT checking. :(

    And it seems to Only accept the vanilla Arrows of Harming :D

    Last edited Apr 23, 2016 by RustyDagger
  • Avatar of DerPavlov DerPavlov Apr 23, 2016 at 06:05 UTC - 0 likes

    @RustyDagger: Go In the developing version I added something that works like '440:0:Arrow of Night Vision'. I also send you a PM.

    For the color, in minecraft you have to you the normal commands. So it look right. I used the plugin SimpleRenamer for testing.

    Last edited Apr 23, 2016 by DerPavlov
  • Avatar of RustyDagger RustyDagger Apr 23, 2016 at 03:10 UTC - 0 likes

    @DerPavlov: Go

    I tried using &cArrow Of Harming as the items name when I used color codes in my shop plugin It would not accept the Item :( I used the &c In my shop plugin when I set a name.

    Incoming example.

    @DerPavlov: Go

    Using the item if it has no name would result in all the default tipped arrows working and not being able to just pick one. the name being different is the only change apart from the NBT data that my shops plugin is able to set. Cannons just dont know how to check for the NBT data matching the clicked item when trying to load it. Maybe a new section IDK where you can define NBT data that has to be present on the item then add a command to fetch the NBT data of a held item to make adding it to config easy.

    http://pastebin.com/auFHrBEU

    Last edited Apr 23, 2016 by RustyDagger

What RPG features should be implemented for cannons

  1. Choices:

  1. Results
  2. 4 comments

Facts

Date created
Mar 04, 2012
Category
Last update
Mar 16, 2016
Development stage
Release
Language
  • deDE
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
Cannons
Reverse relationships
1
Downloads
83,074
Recent files

Authors