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 Nov 20, 2014 at 18:16 UTC - 1 like

    @GodsDead: Go I tested the latest version Griefprevention v9.0 and I was unable to destroy block above sea level. Maybe he fixed the problem
    There is an API call which gives you the impact location, but I recommend to use the bukkit events for a protection plugin (like Griefprevention does). Since bukkit events work with all plugins and not just one. Allowing one sort of damage while blocking all other is a different case :).

    API:
    http://dev.bukkit.org/bukkit-plugins/cannons/pages/developers-guide-de-de/
    https://github.com/DerPavlov/Cannons/tree/master/src/main/java/at/pavlov/cannons/event

  • Avatar of GodsDead GodsDead Nov 20, 2014 at 15:30 UTC - 0 likes

    Ahoy! There is a new developer in charge of GriefPrevention, he seems to have rewritten the plugin from scratch, and now claims can be destroyed by cannons, Ive once asked you the method that causes explosion damage to the impact area, but I cant find it! Is there a Java API call, function or term I can tell him to make sure third party plugin damage is not happening, he seems to keep skipping answering my question regarding this. Thank you.

  • Avatar of DerPavlov DerPavlov Nov 11, 2014 at 23:05 UTC - 0 likes

    @LordEragore: Go To disable this soot for the cannon set sootPerGunpowder:0 and startingSoot:0 in you cannon design. How often the projectile needs to be pushed can be set in the cannon design via projectilePushing.

    Here is my confusing tutorial :)
    http://dev.bukkit.org/bukkit-plugins/cannons/pages/tutorial/

  • Avatar of LordEragore LordEragore Nov 11, 2014 at 19:49 UTC - 0 likes

    @DerPavlov: Go Thank you, it turned out I was using an outdated version and everything is working fine now! :D Although is there w way to turn off cleaning the cannon?

  • Avatar of DerPavlov DerPavlov Nov 10, 2014 at 08:01 UTC - 0 likes

    @LordEragore: Go If you make a new design you have to tell the plugin which direction the cannon is facing. Do this by changing the defaultHorizontalFacing.
    Do you have placed wall sign on your cannon, like in the default design? A wall sign will work as a sign and chest docking. Without it will not search for chests.

  • Avatar of LordEragore LordEragore Nov 08, 2014 at 21:20 UTC - 0 likes

    (Possible Bug or Player Error) I created a custom cannon using your instructions, it is 6 blocks long. When it fires it shoots in the right spot but the projectile goes in the opposite direction. Help?

    Edit: Also when redstonereload is enabled it wont reload the the ammunition and projectile.

    Last edited Nov 09, 2014 by LordEragore: Also
  • Avatar of RexzyV2 RexzyV2 Oct 21, 2014 at 02:00 UTC - 0 likes

    THE BEST CANNON PLUGIN EVER. RECOMMENDED ON ANY SERVER THIS IS AMAZING

  • Avatar of DerPavlov DerPavlov Sep 29, 2014 at 17:26 UTC - 0 likes

    @FlOppythp: Go I think movecraft does not support the Cannons API at the moment. The only way is placing signs on your cannon to find the cannon again if it has been moved.
    As long you don't touch the cannon, there is no load. However finding the cannon again, may take a while (<<10ms).

    @GodsDead: Go Ok, I have to admit I am no database expert at all. How I thought it should work is, loading all cannons on start up and saving them from time to time. I would really like to understand that.
    Maybe it is because it tries to save each cannon one by one in the database. Do you have additional information here?

  • Avatar of GodsDead GodsDead Sep 29, 2014 at 09:47 UTC - 0 likes

    Major mysql optimization needed; My server has been crashing from loosing connection to our separate mysql server a lot, this is an error with the way GriefPrevention handles its mysql connection killing the server, Doing some research to why there is such high load coming from my server it turned out Cannons has the most open mysql connections, it has 25 upon a fresh boot with 1 player online!

  • Avatar of DerPavlov DerPavlov Sep 26, 2014 at 19:19 UTC - 0 likes

    @DanSpedey: Go First, UUID support of what? Second, for new features it will depend on the future of bukkit.

What RPG features should be implemented for cannons

  1. Choices:

  1. Results
  2. 4 comments

Facts

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

Authors