Turrets
Turrets
Automatic turrets for Bukkit servers (cleverly disguised as minecarts!)
I moved the project into Beta as there have been more people downloading and, I'm assuming, testing it, with no major issues. There is a lot going on in this plugin, and little changes can have far reaching consequences, let alone big changes, so I still won't stake my name on saying it absolutely won't mess anything on your server up. Please report any problems you have!
Currently working on: DisguiseCraft support. Give me your ideas on what you'd want from this :)
Details: I'm hooked into DisguiseCraft, just need ideas for what kind of features are desirable!
Download
I'll try and keep this up-to-date. If all goes as planned, this version should be the same or newer than the one linked to this BukkitDev entry.
A Jenkins job has been created to house dev builds. You can access it here!
v0.2.3a - Manual turret control!
For those of you antsy about getting a version for 1.4.4, here's an unofficial 1.4.4 dev build.
Link Removed: http://www.mediafire.com/download.php?85saz80idpsafef
Building turrets is easy: Just place a fence post, then right click with a minecart on top. It's so easy, even a guest could do it! (That's why Turrets has permissions support.)
Make sure you attach an ammo chest to the turret (see command page) or set turrets to have unlimited ammo (see config page).
Breaking turrets is also easy: Just left-click it until it breaks, just like a minecart.
Features
- Turrets target hostile mobs
- Turrets will avoid shooting through walls
- Turrets use ammo chests (configurable).
- Turrets are upgradable!
- Upgrade a turret by replacing the block under its fence post: iron -> gold -> diamond
- Better turrets can shoot faster, farther, more accurately
- Firing speed, range, and accuracy can be changed in the configuration
- Turrets are breakable! (With permissions, of course)
Possible future features
Commands
Permission Nodes
Also, thanks to damnnicholas for his YouTube video explaining the plugin.

-
View User Profile
-
Send Message
Posted Oct 25, 2012There's perfect
But people matchulsu Why do not the settings from a file?
Korea I make any Server is a person
I sure hope you people matchulsu able
-
View User Profile
-
Send Message
Posted Oct 25, 2012@Pixiyo
Solution is to not use the plugin.
-
View User Profile
-
Send Message
Posted Oct 25, 2012It's too easy to make a XP farm with this, any idea how to fix this?
You can be AFK the whole day while you get XP.
-
View User Profile
-
Send Message
Posted Oct 25, 2012@damnnicholas Awesome!
Still being processed, but I can't wait to see it :)
edit: Just watched it. Nice video :) The timing was just barely off, as I implemented the other types of ammo just last night :P
-
View User Profile
-
Send Message
Posted Oct 25, 2012Hey, i made a little video showcase on your plugin :) Hope you'll like it! Link: http://www.youtube.com/watch?v=ZOKSklGlPOg&feature=youtu.be
-
View User Profile
-
Send Message
Posted Oct 24, 2012Okay, you guys asked for it, so here it is.
Link Removed: http://www.mediafire.com/?wa707p9kkkvwbvi
Please notice the change in the config and permissions! See ChangeLog! There was a name change that is very important. The old ammoType stuff was changed to ammoUsage to free up the ammoType wordage.
You can now make your turrets shoot arrows, eggs, snowballs, potions, expbottles, monster eggs, and yes, fireballs :) Turrets using ammo need to have the ammo in the chest (and have the config option for that ammo there), and unlimited ammo turrets are modified via command (granted the unlimited ammo type config option is there).
On a side note, I also fixed a few bugs in the code :)
-
View User Profile
-
Send Message
Posted Oct 24, 2012@n33dy1
Sure, you want to PM me your server name? I've tried again, with the diamond upgraded turret just to make sure, and still can't replicate this :/ Do any of your other plugins do anything to affect what snowballs do or anything?
-
View User Profile
-
Send Message
Posted Oct 24, 2012wristdirect if you'd like I can show you how turrets are destroyed by snowballs. Some jerk destroyed all my turrets and now I have to remake every single one. :(
EDIT: Restarting my server made the turrets come back. Weird. Still, they won't work if a snowball is thrown at them.
-
View User Profile
-
Send Message
Posted Oct 24, 2012@SuperMinecraftBrosMC
I still haven't looked into DisguiseCraft stuff. Depending on how that plugin works, it may be a huge change in the code of Turrets to make it work. Plus there are a few other things that all servers, whether using DisguiseCraft or not, would want that I'm going to implement first (things like config stuff for saying whether or not anyone can man anyone's turrets, or adding activation/deactivation for turrets, etc). Also, IRL, I'm closing on a new house today, so it's a really busy time for me outside the Bukkit world.
Given all that, I'll look into DisguiseCraft support as soon as I can, but I definitely can't give any definite time frame :)
-
View User Profile
-
Send Message
Posted Oct 23, 2012So, When do you think you can make DisguiseCraft Support? Thx for an Awesome plugin using it in my DvZ for the Engi Class :D
-
View User Profile
-
Send Message
Posted Oct 23, 2012I have a diamondblock turret with a fence post above that and a minecart above that. I throw 1 snowball at the minecart and it falls off and says the turret is destroyed. If you would like to see you can join me on mc.roleplaycraft.com real quick.
-
View User Profile
-
Send Message
Posted Oct 23, 2012@n33dy1
Sorry, I meant snowballs. They did nothing...
-
View User Profile
-
Send Message
Posted Oct 23, 2012Snowballs.
-
View User Profile
-
Send Message
Posted Oct 23, 2012@n33dy1
?
Are you saying they currently do? Cuz I just launched a stack of fireballs at a turret and it didn't bat a non-existent eyelash :P
-
View User Profile
-
Send Message
Posted Oct 23, 2012Snowballs will destroy turrets. :(
-
View User Profile
-
Send Message
Posted Oct 23, 2012@rladbsgh
Thanks, I'll look into this asap. I was messing with the manual control a lot and I thought I had reverted to the right commit, but some things were wonky I might not have. I've changed stuff since v0.1.5 (which is what I assume you're using), but I should be able to find it.
edit: I think this sort of thing only happens if you die while in the turret. I do notice it doesn't relinquish control of the turret when this happens, but I was unable to reproduce the exception you put in your message there. Also, I can't reproduce the problems with exiting the turret, it always works for me :/ Here's what I think is best to do to fix this:
Manual isn't working well at all and all my ideas for control don't work at all or have some major problem with them, so I'm going to take it out completely in v0.1.7 and have the turret auto-aim all the time again, and have manual control only over when it shoots. This will hopefully stop the not being able to exit without dying or destroying the turret thing. Also, I'll add code to make it so when you die, as far as the turret is concerned it's like you got out (this was definitely something I missed, so thanks!).
Thanks for the feedback :) hopefully this fixes your problems!
-
View User Profile
-
Send Message
Posted Oct 23, 2012For some reason, when I ride the minecart for manual control, I can't seem to exit the minecart. I either have to break it or commit suicide.
It also seems that after using the manual control, the turret won't shoot and stay in this "manual control" (when I click, it fires).
Finally there is this error message, I believe is from turret manual controlling:
08:52:56 [SEVERE] Could not pass event PlayerInteractEvent to Turrets org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:355) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649) at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at me.azazad.turrets.TurretsListener.onPlayerInteract(TurretsListener.java:120) 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:330) ... 17 more
-
View User Profile
-
Send Message
Posted Oct 23, 2012@wristdirect
I think there was talk about updating this to work with Factions or w/e, but I was wondering if there will ever be an option (via command then punching the turret post) to allow a turret to attack all players? And with that command, also a command to whitelist players.
So... say I'm on your server and I make a turret. I don't want it to just attack mobs, so I type /turrets PvP on and then punch the turret post. But then say you're my buddy and I don't want you to get hurt, so I type /turrets whitelist wristdirect and punch the turret post. Think you could add something like this? :)
Very impressive by the way, man... my spawn has floating turrets 6 blocks above the ground around the roads and it looks intimidating.
EDIT: Doing /turrets PvP off would make it go back to PvE only.
EDIT 2: I don't use Factions and don't plan to which is why I was asking.
-
View User Profile
-
Send Message
Posted Oct 23, 2012@n33dy1
1. Yeah I noticed that as well. I think I'll add two options:
edit: Yep, this is something that is sort of in the works. The way it'll be implemented (at least at first) will most likely require that the ammo you want shot be in an ammo chest, and you set the priority of which ammo gets shot first in the config.yml
edit 2: yep :) In case you want to know the specifics, the accuracy value is a gain on some gaussian random variable that modifies the arrow's final target location, so the lower the value, the less noise or deviation in the arrow's chosen path
-
View User Profile
-
Send Message
Posted Oct 23, 2012This plugin is amazing! However, players seem to collect a lot of free arrows with this... could there be a config option to make arrows unable to be picked up?
EDIT: omg, having them shoot fireballs would be amazing!
EDIT 2: In the config file, the lower the accuracy, the higher the accuracy, right?