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

-
View User Profile
-
Send Message
Posted Dec 16, 2012@merlinshaw
First of all, you should get in the habit of a little more description when posting errors (Bukkit version, etc). However, it's probably not necessary this time. Not sure why it's not approved yet, but the version in the linked post (@Darklusst) is more up-to-date. Try that and let us know if you still get any errors.
-
View User Profile
-
Send Message
Posted Dec 15, 2012While Restarting my Server for update I have gotten this Error.
http://pastie.org/5537795
-
View User Profile
-
Send Message
Posted Dec 15, 2012@Wolf314151
No problem. Enjoy the carnage! :)
-
View User Profile
-
Send Message
Posted Dec 15, 2012@Chaznuts
Big thanks it works now.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@Wolf314151
When Darklusst added the limit perms, maybe something went wrong in the config limitation. Try giving the perm teslacoil.limit.3 to your default group instead of relying on the config file.
-
View User Profile
-
Send Message
Posted Dec 15, 2012Hmm i set it up with two groups only for the test. The first was admin and the second was default. No inheriting and default only had - teslacoil.use - teslacoil.use.players - teslacoil.use.mobs
When I was default I was able to make however many tesla coils my heart desired.
All tesla coils were in the coils.yml too even though I should only be able to make 3.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@Wolf314151
Try doing something to this effect: The group with the HIGHEST coil limit, set that same amount in the config.yml (so if a moderator group can use 5, set it to 5 in the config). Next, give the correct perms for that user group (teslacoil.use, teslacoil.limit.5, and don't forget -teslacoil.limit.<LowerGroupLimit> to remove the lower limitation you used for a lesser group [if applicable]). The perms should overpower the config, but try that and don't forget your negative nodes and such for lower->higher groups.
-
View User Profile
-
Send Message
Posted Dec 11, 2012@Chaznuts
Hmm the limit doesnt seem to be working for me but I'll look at it in greater detail.
-
View User Profile
-
Send Message
Posted Dec 11, 2012The limits seem to be working nice with that update you posted in a comment. However, it took me a couple minutes to find out why it was still limiting 2 when I gave the allowance of 4 for a certain group, and it ended up being that the group with 4 inherited all of the nodes from the group with 2, and it used the lower limit by default. Simply just had to give a negative node for the group with 4, but it might be a problem for some people who don't realize why it's not working.
-
View User Profile
-
Send Message
Posted Dec 10, 2012@Darklusst
Looks good, no NPEs here.
Another issue I just noticed: the damage config parameter doesn't seem to have any effect. I kicked it up to 100 for some one-hit-kill goodness and it seemed to take the same amount of time to kill mobs. Not tested on players.
EDIT: /teslareload doesn't seem to work either. Reloading the entire plugin using PluginManager appears to get my settings changes to stick, though.
-
View User Profile
-
Send Message
Posted Dec 10, 2012No more errors but I was able to make 4 tesla coils when the limit was set to 3 in the config and I did not have the nolimit perm.
-
View User Profile
-
Send Message
Posted Dec 10, 2012Im not home but ill give it a shot when i get there. :)
-
View User Profile
-
Send Message
Posted Dec 9, 2012@agent2594
@Wolf314151
Hey guys, I was able to replicate that error once, and I applied a fix and haven't seen it since, test it out for me? https://dl.dropbox.com/u/9977604/teslacoil.jar Thanks!
-
View User Profile
-
Send Message
Posted Dec 9, 2012-
View User Profile
-
Send Message
Posted Dec 9, 2012Yes it is related a bit due to lagg but its something you might want to fix. Anyone can hold the right mouse button on the lever connecting to the tesla coil and it breaks my server log because it spams an unlimited amount of exception errors (related to 'task 43' and some other tasks). It also gives errors when I start the server if I get them ingame and close the server and open it again. Makes the mod unusable for me I'm afraid :(
This occurs with a completely fresh .config and while clearing the coils.yml fixes it, not for long. In fact, I created a new server just for testing this mod and only put this mod and pex on it, so no conflicts.
I'm still not sure the limit permission even works but I can't tell with this exception error always occurring while I test it.
I tested it again and it shot me an error as soon as I hit the switch. didn't spam it though. Then I turned it off and on fast and sure enough, the spams started
-
View User Profile
-
Send Message
Posted Dec 9, 2012@Wolf314151
This is something I've only seen happen if I have really bad fps lag. Delete the coils.yml file.
-
View User Profile
-
Send Message
Posted Dec 9, 2012Just one thing I'd really, really like fixed/explained. I'm trying to limit the amount of tesla's a person can make per person. Problem is when I give someone the node teslacoil.limit.2 and then type /pex user <someone> it lists it all weird and doesn't work at all.
Here's how its listed. Wolf's Permissions: 1) teslacoil.imit.3 teslacoil.use other perms same as above and lists a bijillion
It also simply doesnt work. When I have the permission 1)teslacoil.limit.3 and try to make my first one it tells me I reached the maximum amount.
EDIT: Uh, this whole things broken. I tried a new server and if I activate, deactive, and reactive a tesla coil 3 times it generates a pernament error in my log. IE it increments it every time its activated, and does not decrement it when it is deactivated. Then its always activated for me even if I have acrivate it and the sign turns blue...
could you just test this and verify it still works 100% for you? It doesnt work for me without any plugins on at all really.
-
View User Profile
-
Send Message
Posted Dec 6, 2012Love the mod, but one question. What's the letter for slimes?
-
View User Profile
-
Send Message
Posted Dec 5, 2012Some suggestions:
No fire damage setting like the setting sandtoglass has. Had a built a home our of wood planks and the fire caused by the strikes nearly destroyed it. Why build out of wood planks? I dont know. I did try the safelightning to true to see if that would help but it didn't.
Target slimes. Like someone posted earlier, have another home in a swamp biome and those slimes are everywhere. It's the sound that annoying more than anything when there aare lot of them out there.
-
View User Profile
-
Send Message
Posted Dec 3, 2012@tek2974
There is no block-by-block sweeping. The plugin gets the mobs on chunks that are within the coil radius, and targets those if it is able. One method of reducing lag is to modify the ping: property in the config; it is the frequency, in seconds, that the towers check around them.
@joehot200
You can keep users from targetting players/mobs with the respective permissions (teslacoil.use.players/teslacoil.use.mobs), applying them to the default user group.