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:

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 Jul 02, 2015 at 22:02 UTC - 0 likes

    @Heliostorm: Go I currently working on the next version. This problem should be fixed.

  • Avatar of Heliostorm Heliostorm Jul 01, 2015 at 22:01 UTC - 0 likes

    Every time I fire a cannon I get this error: 2015-07-01 15:00:05 [WARN] [Cannons] Task #49 for Cannons v2.2.6 generated an exception java.lang.IllegalStateException at java.util.ArrayList$Itr.remove(ArrayList.java:844) [?:1.7.0_79] at at.pavlov.cannons.scheduler.FakeBlockHandler.removeOldBlocks(FakeBlockHandler.java:83) [?:?] at at.pavlov.cannons.scheduler.FakeBlockHandler.access$000(FakeBlockHandler.java:23) [?:?] at at.pavlov.cannons.scheduler.FakeBlockHandler$1.run(FakeBlockHandler.java:50) [?:?] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-20141001a.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]

    I've tried disabling all the fake block indicators in the config but the error still persists. The cannon itself fires just fine though.

  • Avatar of DerPavlov DerPavlov Jun 30, 2015 at 08:46 UTC - 0 likes

    @T_X_T: Go Since 1.8.3 there is a new BlockExplodeEvent, make sure your protection plugin is compatible. However, a fixed problem is fine for me :)

  • Avatar of T_X_T T_X_T Jun 29, 2015 at 16:01 UTC - 0 likes

    @T_X_T: Go

    i believe i may have fixed the error just by re-closing the server , i believe the issue is fixed.

    Last edited Jun 29, 2015 by T_X_T
  • Avatar of T_X_T T_X_T Jun 29, 2015 at 15:22 UTC - 0 likes

    @T_X_T: Go

    Oh and im about 100% (99.99999) sure that it was caused by that plugin.

  • Avatar of T_X_T T_X_T Jun 29, 2015 at 15:17 UTC - 0 likes

    @DerPavlov: Go

    Please help, so i've had cannons for a while now recently installed movecraft...

    but then also recently installed obsidian breaker -_- ( http://dev.bukkit.org/bukkit-plugins/obsidianbreaker/ ) now my cannons the regular type not the TNT create no damage

    and i dont know how to fix it, (yes i removed the obsidian breaker .jar file and the folder it created.

  • Avatar of DerPavlov DerPavlov Jun 29, 2015 at 05:44 UTC - 0 likes

    @GodsDead: Go It should be saved in the database inside the Cannons folder. Are there any error in the log? What settings did you use? I will try to verify the problem.

  • Avatar of GodsDead GodsDead Jun 28, 2015 at 15:42 UTC - 0 likes

    Hey DerPavlov I have some demo infinite cannons at my spawn for new players to experience what cannons can do/are, one issue is that they keep resetting to not having a projectile in them, its setup so once a projectile is added they are infinite, I can only assume this happens after a restart, is this information not saved? Or is this a bug/something I have done wrong?

  • Avatar of carmeops carmeops Jun 27, 2015 at 00:16 UTC - 0 likes

    the thing is, i'm not a coder myself, and if i can understand basic code structure, i got no idea how to use what you gave me there XD

  • Avatar of DerPavlov DerPavlov Jun 24, 2015 at 18:09 UTC - 0 likes

    @carmeops: Go Spigot has a new event BlockExplodeEvent which is not supported by many protection plugins. You have to relay the new event to the old one.

        @EventHandler
        public void blockExplodeEvent(BlockExplodeEvent event)
        {
            if (plugin.getMyConfig().isRelayExplosionEvent()){
                EntityExplodeEvent explodeEvent = new EntityExplodeEvent(null, event.getBlock().getLocation(), event.blockList(), event.getYield());
                Bukkit.getServer().getPluginManager().callEvent(explodeEvent);
                event.setCancelled(explodeEvent.isCancelled());
            }
        }
    

What RPG features should be implemented for cannons

  1. Choices:

  1. Results
  2. 4 comments

Facts

Date created
Mar 04, 2012
Category
Last update
Apr 13, 2015
Development stage
Release
Language
  • deDE
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
Cannons
Downloads
75,680
Recent files

Authors