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
I am using PermissionsBukkit and I can't seem to set the [players] sign to enable TeslaCoil to target groups. I can do individual names though. Just not group. How do I activate it?
EDIT: I temporarily found a work around this by doing [players]ex follow by the individual names of Ops :)
Request for enhancement. :)
Instead of global range, can you also make it an option to set a local range per tower by using sign?
maybe 32[mobs]
so we have better control of the towers? Thanks!
you should make it so it can target a specified rank of players.
@Alexander_Winters
Hi, if you set the ping time in the options, you can achieve that effect. Not the best solution, but the closest one to what you would like.
It might just be blind, but is there a source code available? I really like this plugin, to be honest it's the most useful one I have ever deployed on my server, but I have a problem with the fireball mechanism. When I activate such a turret, it more-or-less destroys the whole terrain in its close proximity. :D
I would like to disable the environment damage, and keep only the explosion damage done to entities. Is it possible by any means, sir? Like an option, a HEX tweak, anything. Thank you for reading, have a pleasant day! :)
Would it be possible to have a cooldown thing where it hits one mob every XXX seconds?
@EagleRiders
The plugin already does this, theoretically one can have up to 4 player-target or exclusion signs that will hold up to 12 players. Additionally, if you have alot of people to target and few to keep safe, use the ex at the end of the [player] declaration and simply include those individuals. A single coil should be configurable enough to target everyone you wish.
I have a add on request it seem that the Tesla coils does not accept multiple signs with the [player] on it as it is now it can only specify 3 types of targets unlike the mobs which you put abbreviations for. it would be a nice add on if u can put more then 3 people you hate or groups on one Tesla .
@jakimfett
The noise generated by lightning strikes is created by the client; the only way to disable the noise is dropping the sound or using a modified client that allows you to mute certain sound effects.
I have a feature request...silent lightning. Can you add an option to turn off the thunder crash of the lightning strikes caused by the tesla coils? Once 3 or 4 coils get going, there is so much thunder that nobody wants to be in the area.
do you think you could ever make this to work with towny enemy towns? Looks like a entertaining plugin. :)
@jack324
The coil can already target or exclude specified players through the [player] signs. I may include slimes but seeing as they are present normally at a very low altitude, I didn't find it necessary to include a designation for them.
you need to include slimes, and a code to include players, my tesla coils are targeting me along with mobs.
This is a pretty awesome plugin, well done my friend!
very nice trying out now... one idea add a permisions flag to the sign so if you are not listed as <player> or [Group] then it hits you.