RealisticsTorches
RealisticsTorches v1.4.1
Add realism to your torches!
Because pictures are always better than thousand words:
You want to know what this simple plugin does? Fine. This plugin makes torches burn out after a certain amount of time and it can also make torches break or disappear when it's raining (only if they are touched by rain, not if they are protected). It's multiworld capable plugin, so for example they can only activate this plugin on a "adventure" world or have different settings for each worlds.
Feel free to post your suggestions, remarks or anything like that.
Features
- Torches burn out after a certain amount of time ;
- Torches breaks or disappear when touched by the rain ;
- New! Support of Jack-O-Lanterns.
Configuration
# Copy this sample for each world you want RealisticsTorches to be active. # worldname - The name of the world. # DropTorches(Weather)? - Drop or destroy torches (Weather)? # DropJack-O-Lanterns(Weather)? - Drop or destroy Jack-O-Lanterns (Weather)? # DropTorches(Burnout)? - Drop or destroy torches (Burnout)? # DropJack-O-Lanterns(Burnout)? - Drop or destroy Jack-O-Lanterns (Burnout)? # ItemToDropTorches - The ID of the item to drop when torches are destroyed. # ItemToDropJack-O-Lanterns - The ID of the item to drop when Jack-O-Lanterns are destroyed. # BurnoutDelayTorches - Delay before torches burn out (0 = no burnout). # BurnoutDelayJack-O-Lanterns - Delay before Jack-O-Lanterns burn out (0 = no burnout). # WeatherIsEnabledTorches? - Will weather drop/destroy torches?. # WeatherIsEnabledJack-O-Lanterns? - Will weather drop/destroy Jack-O-Lanterns?. worldname: DropTorches(Weather)?: true DropJack-O-Lanterns(Weather)?: true DropTorches(Burnout)?: true DropJack-O-Lanterns(Burnout)?: true ItemToDropTorches: 280 ItemToDropJack-O-Lanterns: 86 BurnoutDelayTorches: 300 BurnoutDelayJack-O-Lanterns: 300 WeatherIsEnabledTorches?: true WeatherIsEnabledJack-O-Lanterns?: true
Downloads
- RealisticsTorches v1.4.1 (#1317) - Download the .JAR
- Source code - Go on GitHub!
Credits
- All credits for the idea of this plugin go to Montpelier.
TO-DO
Burn out ;DONE IN 1.3Support of Jack-O-Lanterns ;DONE IN 1.4- Interaction with snow?
@maxi1134
Hum... I think I won't add any new feature to this plugin, because I'm too busy. I'm currently working on SpoutBackpack, Flarf and SpaceBukkit.
Amicably, NeatMonster.
So , Do u gonna add the inhandlight ?
@Malorn0
Seconds.
Amicably, NeatMonster.
If no one would mind telling me, what is the scale of burnout delay? Is it measured in minutes, seconds, hours?
@drakcore
DropTorches(Burnout)?: false
@Varunax
@NeatMonster
Thanks you two, think I am going to also remove my drops. And timing on the torch burn out, have my set to burn out after 3 real day time / 72 hours, haven't seen any performace issues so far but only once the server gets populated again will we see how it does.
Now people have a reason to use the market and enter the nether for glowstone. :P
updateHow did you set it to drop nothing, if I make it blank it somehow drops 280/stick even though the field is empty under the config.@Varunax
Interesting report, thank you.
If a developer as any idea to improve perfs, please PM me.
Amicably, NeatMonster.
@drakcore
We had about 500 torches (or more?) and it created a huge server lag when all the torches went out at once dropping all the sticks at the same time. Yes, it will cause massive lag, but once all the torches burn out and the items are gone, it will be fine and run smoothly.
I set my torches to burn out and drop nothing to save some performance.
@Netu
:D
@drakcore
Hello,
1. I haven't tested on a large server, so I can't answer you. 2. Burnout: Torches are stored in a file and also in RAM with a timer. Weather: Search for torches on loaded chunks.
Amicably, NeatMonster.
Great plugin.
Just two question, 1. Have you or anyone on a large server tested this, want to know how much resources this would take more so on the CPU end. 2. How do you store/process the torches interacting with rain and burn out time, could be a issue if there are 100K+ torches.
Currently my server is going through the motions so only a hand full of us are on at a time until the server goes live again.
@NeatMonster
Howdy @NeatMonster,
I had just seen you express interest in it below and wanted to show you information you may or may not have seen. :) This plugin works perfectly and adding more features (especially such complex ones!) could potentially only slow its update process, and that would make me sad. :(
Flarf looks awesome! I can't wait to try it out. And a secret project, huh? Exciting!
Keep up the good work!
@Netu
Hello,
For the moment I'm not interested in adding this functionality because I started a new project called Flarf which you can find on Bukkit Dev'. I may also start another secret project, so I don't have so much time. I'm sorry but I'm very busy.
Amicably, NeatMonster.
P.S.: I hope you understand me.
@NeatMonster,
Hello again! If you are in fact interested in looking into the code to simulate moving torch light, or light while holding glowstone/torches/jackolanterns emitting from a player, it seems that Torchlight recently got fixed for 1185, although not completely: http://forums.bukkit.org/threads/mech-torchlight-v0-1beta-torches-emit-light-while-held-818.19977/page-7
The user Paah uploaded a working fix, without errors, but it causes a "permanent lighting glitch," insisting on placing lighting where players have walked with a torch in hand. This is the only error I saw, and it doesn't even seem to occur in water, from what I could tell.
I just wanted to show you this in case you were going to start looking into it. The source is there in the jar, but it is quite obnoxious to look at, haha. I hope this helps!
@maxi1134
This was using fake lights blocks to simulate torch ligh. I'll think about that.
Can u make when we hold a torch he emit light ? i see a plugins but he's outdated since 835 :S
@Netu
:D
@NeatMonster
Thank you so much, NeatMonster. Why oh why are you so wonderful? :)
@Varunax
Try 1.4 please.
@Netu
Done in 1.4, enjoy!
Hm... there seems to be a problem with the rain not knocking out the torches correctly. If the torch is over a water block as it's raining, the rain will knock the torch out. If the block is over just a solid block with no water running underneath, the torch will not be knocked out.
I'm not sure if it's just me or what. I'm running the latest RB for Bukkit on MC 1.8.1
@Netu
I'll do it, not for the moment because I don't have so much time, but as I said, I'll do it.
@Varunax
Me too. :P