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.
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 ServerMiner
by wickedbrother
Out-dated showcase 1
Out-dated showcase 2
Recommended plugins
- ObsidianDestroyer
- WorldGuard (flag protection: '/region flag NAME other-explosion deny')
- CreeperHeal (set 'custom explosion' for your world to repair cannon damage)
Installation
- Install WorldEdit first (don't forget this)
- 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
- Share your designs with other people: 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)
Need Help?
Credits
- Raser4000
- DreTax
- JlJlJl
- and many more
@DemonPenguin Add it to the list and create a property with the the same name. The right spelling would be dragon_egg.
Hey thanks for the tip on updating towny. All is well and my test mountains have been reduced to rubble :D
EDIT: I know that the list of items says that some of them do not work, so I was wondering if you could fix the ender egg item so that I can use it as a super nuke, for the player that can defeat the dragon.
@DemonPenguin Ok, you are using towny and it has changed the API with the latest version. So please install the latest version of towny and cannons. I think your towny version is outdated.
Ok so I checked the console, and this error comes up every time I fire a cannon
18:17:03 [SEVERE] Could not pass event ProjectileHitEvent to Cannons
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.EntityProjectile.F_(EntityProjectile.java:160)
at net.minecraft.server.World.entityJoinedWorld(World.java:1264)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106)
at net.minecraft.server.World.playerJoinedWorld(World.java:1246)
at net.minecraft.server.World.tickEntities(World.java:1153)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:542)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.IncompatibleClassChangeError: Expected static method com.palmergames.bukkit.towny.object.TownyUniverse.getTownBlock(Lorg/bukkit/Location;)Lcom/palmergames/bukkit/towny/object/TownBlock;
at at.pavlov.Cannons.CannonPlugin.checkPermission(CannonPlugin.java:272)
at at.pavlov.Cannons.CreateExplosion.breakBlock(CreateExplosion.java:41)
at at.pavlov.Cannons.CreateExplosion.blockBreaker(CreateExplosion.java:79)
at at.pavlov.Cannons.CreateExplosion.create_explosion(CreateExplosion.java:284)
at at.pavlov.Cannons.MyListener.ProjectileHit(MyListener.java:355)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 10 more
@DemonPenguin Please check if you don't get any error on impact. Else there is a very long list of plugins which can block a explosion. It may be a good idea to deactivate all plugins and add them one by one. I can also visit your server if you like.
@DemonPenguin Do you have factions?
Hey, the cannons don't seem to want to destroy blocks in my test world. I have towny and have disabled it for that world. I load gunpowder load some stone, fire the cannon and it goes, explodes... and doesn't destroy blocks... I do have the block damage in regions set to true. Also normal TNT works just fine
@DerPavlov :d okay you know where to find me if you need a test on a dedicated server :) by the way check your messages :D.Setting the flag codes are easy if you know what is the name of the flag.xd
@dretax Thanks again for testing. The problem was, faction changed the API in 1.7.4. It has now a nice flag system but I don't know how to set this flags.
About the database I am not an expert for this, but I have a database expert to ask. He will hopefully explain this stuff to me :D
Hmm not just mysql maybe for server side files too :-D
That's how my doorbell works. I used pressure plates but it works the same. a t-flop w/ an a auto timer reset is the key. If you want to see it let me know :)
@tek2974 Saving cannons in a database are on my todo list. But first I have to fix these odd bugs. And than can I wire my doorbell to a cannon loaded with a canister shot.
Also, I request that all cannons are save in a mySQL database so we don't have to reset every cannon's angle and windage when we reload the configs.
created a ticket for error thats been coming up. Sometimes when you fire a shot it just falls infront of the cannon instead of being projected. With canister shot it lags the server into a reset. please fix.
@franzonik There is a new video coming, but at the moment is there only the real old one. You need a torch under the barrel, turn it off and on with a redstone wire. Load the cannon with gunpowder and projectile. You need also a chest next to the block with the torch above where you store the ammo (This is new and not in the video)
http://www.youtube.com/watch?v=l3_81PtfepM
Hi if you could make a tutorial for how to to redstone autoload and rapid fire i would appreciate it. Or if one already exists, could you give me the link? Thanks
@tek2974 Long range is really difficult. You have to update the chunks where the snowball is. I think if there are player in the direction you fire you can teleport because the snowball will hit the ground. Else the snowball will stay in the air and so I get no projectile hit. I have to read something about EntityTracking but I am not sure how to code this. But there is also a bug on short range, you only get teleported if you hit an entity. I am going to provide an hotfix for that.
@JoshzPruitt I have created snowlayers with snowball next door but it does not work. Now will I test forge.
@DerPavlov
sure i will give you a pm about my ip i can give you and ftp too everything :D just give me your account name on minecraft because im running whitelist on the server because we are making new world :D
@tek2974
I'd imagine that's because the enderpearl goes outside the loaded chunks. I've gotten as far as 600-700-ish block teleports from an enderpearl (using "fus ro dah" from The Thuum plugin. XD) but much farther than that and you won't teleport.
After a certain distance, ender pearls don't teleport players, is there any way to fix that? I'd like a long range cannon teleport system