TeslaCoil
TeslaCoil - Tesla Coil mob control:
Version: v2.6.5
Usage: the player must construct a tower of no less than 3 iron(configurable) blocks, and connect this directly to a redstone current. While the current is active, targetted mobs and players within a configurable radius, above or below ground, will be fried. The towers ping every second by default, so mobs chasing you will quickly regret it :p Feedback/constructive criticism is welcome.
Features:
- Tower of 3> configurable blocks will continually zap mobs in a proportionate radius
- Lightning striking mobs on sand turns the sand into glass
- Configuration for radius, vertical radius, sand-to-glass, toggleable targets, and ping time
- Sign-based mob filtering, and player targeting.
- Option to hit all mobs but those specified.
- To avoid being hit as a targeted player, pumpkin helmets have been added as a safe item.
- Command /teslareload allows ops to reload config without reloading all plugins.
- Only users with the permission 'teslacoil.use' can activate coils, and 'teslacoil.reload' for the config.
- Users can be limited with 'teslacoil.limit.#' as well as 'teslacoil.use.mobs' and 'teslacoil.use.players'. shoutout to Chaznuts thanks buddy!
- Towers may have a general cap set, or be limited per group/user.
- Can warn users if they are approaching dangerously close to a coil.
- The towers can be built to shoot fireballs, wither skulls, or simply ignite targets.
- Towers can construct an iron-fence shell.
Configuration:
Permission:
teslacoil.use | Activate coils teslacoil.use.mobs | Ability to target mobs teslacoil.use.players | Ability to target players teslacoil.reload | Use /teslarelaod teslacoil.nolimit | Bypass coil restriction teslacoil.limit.# | # is the number of coils that should be restricted per user/group
Configuration Properties
coillimit: 3 #How many coils users without teslacoil.nolimit can activate, max sandtoglass: true #If false, sand will not turn into glass if a mob is standing on it vradius: 2 #Sets veritcal radius to scan for mobs setping: 1 #Sets seconds the towers wait to ping the area around them blocktype: 42 #Type of block for tower teslaradius: 8 #Can be 0(based on tower height) or a number to set a constant radius. deathblocktype: 49 #Type of block that should be present at the top of the tower for wither mode. radiusmultiplier: 1 #Used only if teslaradius is 0; for each block, the radius is this much bigger. safelightning: false #Safe lightning will only hit the target and not cause splash-damage. fireblocktype: 89 #Type of block that should be present at the top of the tower for fireball mode. buildcage: false #When a normal (not fire-type) coil is enabled, constructs an iron-fence cage around it. warnthreshold: 10 #Can be 0(deactivated) or a number to designate, from the coil's usual effect radius, at what point an approaching player is warned. igniteblocktype: 20 #Type of block that should be present at the top of the tower for ignite mode. damage: 0 #Can be 0(no additional damage) or a number indicating how much additional damage will be applied to targets.
Signs:
Signs may be placed anywhere on the coil, above the block the power is running in through.
To Filter Players:
Same idea as below, place a sign on any side of the block above where the power is input, with the first line being [players] and the subsequent lines containing a player name per line. You can have as many of these signs as there are places on the coil to put them.
To Filter Mobs:
Place a sign above the block where the power is input (doesn't matter which direction it faces), where the first line is [mobs] and the second line contains a list of all mobs that should be targeted by the coil. Alternatively, by including 'ex' on the top of any sign (like [players]ex) will put the coil in Exclusion mode, avoided the specified mobs and hitting all others. The characters are as follows:
c - Creeper s - Spider k - Skeleton z - Zombie h - Chicken o - Cow e - Sheep w - Angry wolf p - Cave Spider b - Blaze m - Magma Cube v - Villager d - Ender Dragon i - Pig Zombie n - Enderman q - Ocelot r - Wither t - Witch l - Slime
Hey buddy. Most things seem to be working nicely now. The exception being the buildcage: true infinite iron bars, and curious lever-flippers.
When buildcage is on true, if users try to destroy the cage while the coil is flipped on, it destroys them all and doesn't drop anything. However, if the coil is flipped OFF, it will drop the iron bars like candy from a pinata. Would like to use the cages once this is fixed.
Second of all, it would be really nice if it just said, "That is someone else's Tesla Coil!" when someone who didn't build the coil tried to flip the lever. The problem I'm having is people seeing them for the first time, flipping the lever twice, and the coil then being claimed as theirs and counting toward their max coils. Just food for thought.
Everything else seems to be doing great though! Happy you're remaining active :) Keep up the great work buddy!
EDIT: Forgot to mention a radius multiplier limit would be great. I love having higher coils = further protection, but there should definitely be a limit on how high that radius can be expanded, be it configurable or not (but preferably configurable as everyone has their own desires). Thanks again!
@Darklusst
When starting the server with a working tesla coil in it...
@SilvoDev
Do you have a stack trace or error show up in console? If so, can you provide it?
Report... Installed this as I used this plugin in the past and I like it.
Configured config and set up the first tesla coil. Works. Disconnected, restarted server ... can't connect to my server anymore. After removing tesla coil I could connect to my server again.
I think its something in the config I configured wrong or its a flaw in the config reading itself as I had my share of problems with tesla coil configs in the past (like setting setping: 0.5 or any non flat number would cause massive lag)
My config.yml:
The tesla coil height is 20 iron blocks. Sign :
CB-2624-1.4.7-R.1.0 on MC1.4.7
Edit: Donwloading the updated teslacoill.yar from the link provided by the author and replacing it with the one in the download section didn't resolve the issue either.
You could put a configuration for delay usage, example: switching from lever to button and enabling a time counter (seconds, minutes, hours, days) or ticks :/ for the lightning duration and delay between each utilization: I push button and lightning strikes for x time, i push again and it says with message like "Sorry TeslaCoil is charging, x time left"
Could be a cool feature :D
@Darklusst
Excellent! Much thanks, Darklusst!
@MattSheridan
@kringeth000
I've just updated the plugin to correct these errors, having to do with the Mojang/Bukkit API tweaks. While the latest version is waiting to be approved, you may download it here: https://dl.dropbox.com/u/9977604/teslacoil.jar
This plugin completes my lifelong dream....
Pig spawner + tesla coil.....
F YES!!!
I'm getting tons of errors on startup, just started today when I updated Bukkit.
http://pastebin.com/KXMySKJh
By the way, this plugin is awesome. Just thought I'd share.
I get the error on startup. Here's my whole console output from startup.
http://pastebin.com/e2qnn4Yi
When I try to activate a coil, I get these:
"You don't have permission to target mobs with this coil. You don't have permission to target players with this coil."
...Even though I've got these permissions added to the "default" group in bPermissions:
- teslacoil.*
- teslacoil.use
- teslacoil.use.mobs
- teslacoil.use.players
- teslacoil.nolimit
The plugin used to work perfectly, of course. It's just broken with recent updates.
@MattSheridan
Glad to hear that! Unfortunately I cannot replicate your error, could you perhaps tell me when the server outputs that message?
@Darklusst
Excellent! My server really depends on this plugin. There's nothing else like it for keeping an area defended!
@MattSheridan
I will release an update soon to correct this.
@blackestduck
I'm getting an "Is it up to date?" error with TeslaCoil 2.6.3 on CraftBukkit 1.4.6, so it would seem not. Unless something else on my server is breaking TeslaCoil.
Does anyone know if this is compatible with 1.4.6?
@Qx2
The newest version doesn't have that error.
i have this warning:
@Darklusst
Any luck with that error I sent you in a PM? I know it's my CB version causing it, but any quick temp fix you can add for me? Thanks.
The limit in the configuration file should still serve as a cap, meaning the max amount of coils anyone can have. It's there now for those who don't have permission management plugins, but I'd recommend setting it somewhere high like 100 so it doesn't conflict with the limit permissions.
Additionally, that download I linked is now being reviewed, and I added the slime target option, which is l (lowecase L)
@morlanius Pumpkin helmets have been an immunity option for some time now. Try that out.
this has an issue with the bukkit event scheduler? also, this plugin really needs a teslacoil.immune perm