RWtorchLight
RWtorchLight
NOTE: If you like the plugin, tell me in the comments along with your server's IP. I might give your server a visit.
Light up your surroundings just by holding a torch
PLEASE, IF POSSIBLE EDIT CONFIG AND RELOAD PLUGIN BEFORE USE
This data is used to check the amount of people using the plugin. Its sole purpose is so that I and others may visually see the success of the plugin. You may turn it off if you prefer.
Great for Hunger Games and Survival servers
Created for my tekkit server: RWtekkit (R.I.P.)
If you wish, you may DONATE which will help support me and the plugin
Features:
- Use a torch without placing it (editable in config)
- Emit light from boots (editable in config)
- Emit light from helmet (editable in config)
- Client side glowstone follows underneath the player
- Turn light devices on/off with a command (editable in config)
- No client side resources (like spout) needed
- Supports Tekkit and detects it automatically
- Left-Click to revert a block manually
- Trick-or-Treat mode (more info below)
- When I join the server, the game will notify you that I created the plugin
1.7.10 Compatible!
TO
1.2.5 Compatible!
Requirements:
- Any Permission Plugin
Permissions:
- RWtl.allow -Lets the player use the plugin
- RWtl.boot -Allows player wear boots to emit light (if RWtl.allow is in use)
- RWtl.halloween -Activates Trick-or-Treat mode (without RWtl.allow, no light is emitted, but cookies are still provided)
- RWtl.helmet -Allows player wear a helmet to emit light (if RWtl.allow is in use)
- RWtl.info -no longer has purpose
- RWtl.torch -Allows player to use a torch to emit light (if RWtl.allow is in use)
Config:
- BLANK_Use: true/false Will toggle use of the feature written in the place of BLANK
- BLANK_Item: # Will set the id of the feature defined by BLANK to the number defined by #
- Command_Off: true/false Should the player have to use a command (/torch) to turn lights on, or should it be automatic (off = no command)
- Light_Block: # Defines block that will appear when a BLANK item is used.
- Meta_Data_LB: # Defines the item's meta data (for black wool [35:15] the meta data is 15)
- Trick-or-Treat mode: true/false Enables/Disables Trick-or-Treat mode
- Chance of Cookie: # How often a player gets cookie(s) from Trick-or-Treating (every time they move) 0 = off
- Number of Cookies: # Will give the players a random amount of Cookies from 1 - # (when Chance of Cookies occurs)
- Check for updates: true/false No longer has purpose (Formerly checked for updates and only remains for old version compatability)
Commands:
/Torch -toggles the light emmiting devices (has a glitch that leaves last block on ground) (right-click block to revert)
Trick-or-Treat mode usage
- First equip a pumpkin to the helmet slot
- Then walk around you will notice a redstone lamp will follow beneath you
- After that, if Cookies are in use (see config) the following will happen
- You will get cookies after a while of roaming around with the pumpkin on
- The number of cookies varies from 1 - 4 (or whatever was defined in config)
- A message will tell the player they got # cookies
DEMOS/REVIEWS:
MY SETUP/USAGE TUTORIA (Still Relevant)L:
REVIEWS:
CURSE NETWORK's (BukkitDev managers) Plugin Spotlight (Written review) [V-1.H2]:
WOOPA GAMING (Woopa's gonna woop) [V-1.H2]:
FIRST REVIEW [V-1.0.4]
If you want to make a better video, go ahead and I will put it here.
Planned:
- Up to 5 different items that can emit light (3 of 5 so far)
- Manual reloading (for the one client only)
- The more torches you hold, the greater the light
- Water dilutes light
- Perm node to allow the torch work in your main inventory (or similar) (to allow for better PVP)
- Ability for torches to melt ice and snow
- Experimental light without block tests are being done (no more glowstone)
Known Bugs:
May cause end spawnpoint to be random in 1.5 and above(fixed?)Can walk across water/lava when holding "SHIFT"(Thanks AfroChikken)- Sometimes glowstone fails to revert on the client(log off and on to fix) Rare plugin conflict. Re-investigating
- Blocks with high secondary numbers
(tekkit and mods only)(fixed for tekkit, but some non-tekkit mods will still cause this) like 60:48 or 10:995 create mini-client side chunk errors Pointless error reports with slabs and lillypads- Certain blocks turn to glowstone (mostly newer blocks)
- When using the new /torch command, the glowstone block will remain once turning it off (until right-click or turned on)
- based of Lantern 0.1 and TorchLight+
Source is in the jar file (not necessarily that version of the plugin)
Special thanks to all those who donate
Okay this WRECKS the end. Just so you know it causes server crashes.
read time out error on 1.4.7 R1.....
I'm using this just fine on 1.4.6
and now 1.4.7 is working fine as well
doesnt seem like you can use this on 1.4.6 or 1.4.7... please fix? :) and yes i set the permissions also.
the server crash in end world with this plugin...
please fix this problem :(
This plugin crashed my server, then player standing over the viod, with out any errors in console
@ Minerfinder
If you refer to the known bugs list, you will see this is listed as a rare glitch.
2. Sometimes glowstone fails to revert on the client(log off and on to fix) Rare plugin conflict. Re-investigating
Basicly it is caused by another plugin (most-likley one trying to protect land) is preventing it from reverting.
Please PM me a list of your plugins so I can compare them to others and determine the cause of it.
o no... when you hold the torch and walk the glowstone underneeth you does not go away......
The plugin lags my FPS when holding the Torch.
helpful plugin,
@Zilacon
Odd. Please check the following for me.
Also did you do any of the following?
Finnaly, if any problem still occurs you may post your ip or PM me and I might be able to locate the error
Does not work for my server, gives no light at all.
@th3t0w3l3r
Thanks
Nice plugin Rich!
@MYCRAFTisbest
I actually think that using a different class for the Listener is easier because you don't have a ton of stuff to go through to find something.
@MYCRAFTisbest
Yeah, was just really lazy XD
@jeremybombed
I thought of doing that, but seeing that it isn't required to do this anymore with bukkit.
The newest version (that was the source for a few versions earlyer) Has a second class for the McStatus that you see above.
I like to see all of my code at once, but thanks for the sugjestion and the complement.
P.S. I liked how you replied to yourself instead of editing your message :p.
@jeremybombed
Other than that, this looks very nice!
Java is a multiple class language, you should thus make your plugin in two classes, RWtorchLight.java and RWtLListener.java (or whatever you want) then add into RWtorchLight.java
Then change
to
@iydgovt001
What does 10 5s mean. I will just assume it means 5555555555/10 rating for the plugin. :)