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, iSail) are supported if a cannon has a sign to store a tag

How to use it

This plugin was created to make cannons which can really be fired. Build the barrel with 3 wool blocks (can be changed in the config) and attach a button on both ends. Put a torch on the first block of the barrel and the system will recognize the cannon. The cannon must be loaded with sulfur and a cannonball (e.g. cobblestone) by right clicking on the barrel with the item selected in your hand. The more gunpowder you load in the barrel the farther the cannon ball will fly and the more penetration it will have.
To increase the vertical firing angle, right click the upper or lower side of the barrel with empty hands. By right clicking on the side of the barrel the horizontal firing angle can be increased. Shift+right click will decrease the angle. You can also aim by using the aiming mode. Click with the clock on the barrel and look in the direction you want to fire. If you have loaded and adjusted the gun right click the torch to fire.
The cannon can also be fired with a redstone torch underneath the barrel. For the 'autofire' mode you need to place a chest next to the block with the torch above (how it should look like). Load gunpowder and the projectile into it and the cannon will reload automatically. You have to wear a helmet to protect yourself else the noise of the gun blast will confuse you.

out-dated video

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:
Cannons Turorial

Additional information:
Main Config
Projectile Config
Creating Custom Cannons
Cannon Config
Commands
Permissions

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

Changelog

Version 2.0

  • custom cannon design
  • custom projectile design

Older Changelog

Donate

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

  • Avatar of DerPavlov DerPavlov Apr 20, 2014 at 21:42 UTC - 0 likes

    @FlOppythp: Go Minecraft stops updating projectiles after a while. I made a function that updates the projectile to keep it alive.

    @twetwetwetwe: Go JIJIJI helped a lot in bugfixing. The upcoming version has several improvements.

    @LordDarkSkull88: Go Per command or sign, and the shape is not important? Can you explain how you would build and operate the cannon? Might be a new feature for the next version.

    @Lepoty: Go I think the problem is that cannon sign is an unloaded area. I hope this bug is fixed in the upcoming version.

  • Avatar of Lepoty Lepoty Apr 20, 2014 at 14:17 UTC - 0 likes
    [Cannons] Enabling Cannons v2.1-R3
    [16:12:30] [Server thread/INFO]: [Cannons] Loading projectile configs
    [16:12:30] [Server thread/INFO]: [Cannons] Loading cannon designs
    [16:12:30] [Server thread/ERROR]: [Cannons] [Cannons v2.1-R3] could not be enabled!
    [16:12:30] [Server thread/ERROR]: [Cannons] [Cannons v2.1-R3] exception:
    [16:12:30] [Server thread/WARN]: java.lang.NullPointerException
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.Location.getBlock(Location.java:82)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.cannon.Cannon.isCannonSign(Cannon.java:498)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.cannon.Cannon.updateCannonSigns(Cannon.java:856)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.cannon.CannonManager.createCannon(CannonManager.java:175)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.Cannons.createCannon(Cannons.java:375)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.dao.PersistenceDatabase.loadCannons(PersistenceDatabase.java:83)
    [16:12:30] [Server thread/WARN]: 	at at.pavlov.cannons.Cannons.onEnable(Cannons.java:134)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugin(CraftServer.java:462)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R2.CraftServer.enablePlugins(CraftServer.java:380)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R2.CraftServer.reload(CraftServer.java:809)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.Bukkit.reload(Bukkit.java:286)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:24)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
    [16:12:30] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:719)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.PlayerConnection.handleCommand(PlayerConnection.java:984)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:829)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.PacketPlayInChat.a(PacketPlayInChat.java:28)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.PacketPlayInChat.handle(PacketPlayInChat.java:65)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472)
    [16:12:30] [Server thread/WARN]: 	at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618)
    
    Last edited Apr 20, 2014 by Lepoty
  • Avatar of LordDarkSkull88 LordDarkSkull88 Apr 20, 2014 at 00:11 UTC - 0 likes

    This is not working for me. It wont make it into a cannon after I set it up.

  • Avatar of JlJlJl JlJlJl Apr 19, 2014 at 09:37 UTC - 0 likes

    @FlOppythp: Go

    I think, you set big speed and projectile just flies away from players and don't updates by server. In next update it will be fixed.

    @twetwetwetwe: Go

    Where is problem? This plugins works correctly as I know

  • Avatar of twetwetwetwe twetwetwetwe Apr 15, 2014 at 21:25 UTC - 0 likes

    good plugin but lately it has been VERY glitchy, as in it broke as in it doesn't work =(

  • Avatar of FlOppythp FlOppythp Apr 14, 2014 at 15:06 UTC - 0 likes

    @DerPavlov: Go

    Man The mortar does not work, not matter what i try, the canonball does not go like i want it to, i can put any angle i want does not go in the air and fall back, some time i don't even receive the impact message like the canonball just disapear... in the air.

    How can i do a working mortar please ?

    Magestia Private Server. The freedom has never been so real.

  • Avatar of GodsDead GodsDead Apr 10, 2014 at 09:43 UTC - 0 likes

    @DerPavlov: Go

    Setting piercing damage (penetration ) to 10 does no damage, flys straight through upto 10 blocks as expected, so I presume the problem is with the actual explosion itself.

    PirateCraft - Pirate Themed minecraft server

  • Avatar of DerPavlov DerPavlov Apr 06, 2014 at 20:48 UTC - 0 likes

    @GodsDead: Go There was a problem with the piercing damage, that it can't be canceled. But that should be fixed in 2.1R3. Can you try to set the penetration of the cannonball to 10 and see if the problem occurs more often?

  • Avatar of GodsDead GodsDead Apr 06, 2014 at 17:35 UTC - 0 likes

    @DerPavlov: Go

    I run GriefPrevention 7.8, Other Explosions is protected, alas no fix. It only does part damage over a period of quite a few cannonballs.

  • Avatar of DerPavlov DerPavlov Apr 06, 2014 at 08:33 UTC - 0 likes

    @redeven: Go Any ideas how to reproduce the problem? I will keep an eye on it.

    @JlJlJl: Go Big updates, take some time :)

What RPG features should be implemented for cannons

  1. Choices:

  1. Results
  2. 4 comments

Facts

Date created
Mar 04, 2012
Category
Last update
Jan 23, 2014
Development stage
Release
Language
  • deDE
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
Cannons
Downloads
59,917
Recent files

Authors