Inactive [MECH]Torchlight v0.1BETA - Torches emit light while held [818]

Discussion in 'Inactive/Unsupported Plugins' started by Snowl, Jun 5, 2011.

  1. Offline

    Snowl

    Torchl[​IMG]ght v0.1BETA (Experimental)

    Based on Flashlight by tkelly.​
    Torchlight is a plugin where if holding a torch/lava/fire you will emit a radius of light around you, without needing to place an item. (useful for spelunking!)​
    To use, equip any of these item id's: 50, 10, 11, 51, 76, 89, 90, 91, 94, 327​
    Updated version:​
    http://forums.bukkit.org/threads/me...light-while-held-818.19977/page-4#post-460479
    Features:
    • Certain items emit light
    • Anti-Lag feature built in so it doesn't execute every second.
    Bugs:
    • Sometimes doesn't work if you can see the sky? Need to look into how to fix this
    • If it works outside, it may leave a block-light glitch. Resetting doesn't work and you need to manually reset the chunk lighting (place a block)
    • If used on water surface while night and you can see the sky, the light remains
    Changelog:
    Version 0.1BETA​
    • Initial commit​
    • Fixed torch placing so it actually stays on​
    • Added anti-lag​
     

    Attached Files:

    Jfed, KittyMao, embty and 2 others like this.
  2. Offline

    jonassm

    Ill try this.

     
  3. Offline

    Beauseant

    Can you make it so we can set our own items to give off light?
     
  4. Offline

    Darkride

    pls add an external download link. guests cant download attached files
     
  5. Offline

    Snowl

    Will do.
    Added.
     
  6. Offline

    Darkride

    Nice. i will give it a try
     
  7. nice.
     
  8. Offline

    BioRage

    Wow this is a great idea! And totally brings int he RPG side of things.

    I'll defintely test this out.

    However if I may offer a friendly suggestion.
    -----------------
    If X use torch for interval "XYZ" it will -1 or -x torches from the inventory after being used for interval "XXXX"
     
  9. Offline

    PatrickFreed

    inb4plague
    Link to an external download like dropbox instead of using attachments so guests can download ;)

    Also, nice work. :)
     
  10. Offline

    Snowl

    There is a external download link inside the post.
     
  11. Offline

    NEO

    @David Diaz

    Permissions support would be nice. Also do you emit light if your lit on fire?
     
  12. Offline

    QQCucumber

    @David Diaz Does the light created by Torchlight melt ice? I hear the light from jack-o-lanterns doesn't.
     
  13. Offline

    PatrickFreed

    I'm sorry, please don't hit me...
     
  14. Offline

    BioRage

    Is this a bug, or lag?

    http://dl.dropbox.com/u/11333268/2011-06-06_00.03.11.png

    Let me explain.

    I give my self a torch, and nothing happens, not emit of light or anything.

    I drop the torch, pick it up, light appears.. but not like your video.. if i drop into the water it lights up forever, until i place the torch down...
     
  15. Offline

    Snowl

    Nope. I may add that in as a toggleable option.

    Will be added. And no, you don't.

    Bugs:
    • Sometimes doesn't work if you can see the sky? Need to look into how to fix this
    • If it works outside, it may leave a block-light glitch. Resetting doesn't work and you need to manually reset the chunk lighting (place a block)
    • If used on water surface while night and you can see the sky, the light remains
     
  16. Offline

    Nautules

    Ill give this one a try... looks pretty damn good :)
     
  17. Offline

    DJ_Idol

    Looks very cool :) I'll keep my eye on this and check it out once more bugs have been fixed :)
     
  18. Offline

    embty

    Didnt test it yet but thank you :)
     
  19. Offline

    mxms

    I've been waiting for something like this for a long time. Looks like you're getting there with this. Please continue working on it! :D
     
  20. Working great for me :) CB820.
     
  21. Offline

    3x3mpt

    got this error

    [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:06 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:06 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:06 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:07 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:07 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    20:03:08 [SEVERE] Could not pass event PLAYER_MOVE to TorchLight
    java.lang.NoSuchMethodError: net.minecraft.server.WorldServer.j(III)I
    at davidDiaz.TorchLight.TL.LightUp(TL.java:90)
    at davidDiaz.TorchLight.TLPlayer.onPlayerMove(TLPlayer.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
    ogr93 likes this.
  22. this looks really cool. can you make it so it has a command to toggle it on and off? (and able to change default via config/permissions potentially?)
     
  23. Offline

    dillpickle71099

    make it so when you throw it it provides light
     
  24. Offline

    thepackett

    i like the idea of turning this on and off, because some people may be in a snowy place and don't wand to melt the area around them (or on ice for that matter)
    also i like the idea of being able to configure what items emit light
    great job for a beta though :D
     
  25. Offline

    Slyvr89

    Definitely useful, but I get the same issues as BioRage. This would be perfect for my item-usage only adventure server I plan on making
     
  26. Offline

    Snowl

    What version of craftbukkit are you running? I quickly updated it, it might work now
     
  27. Players on my server love this plugin :) Any chance of having it consume a torch after a configurable amount of time (eg. 1 minute)?
     
  28. Offline

    K900

    +1 for this request. Also, why don't you put the source on github? Should be simpler and other people could send patches.
     
  29. Offline

    19jojo93

    Can you please make it so if you are wearing Gold Armour or using Gold Tools you emit light? ^^
     
  30. Offline

    fortress_na-f

    nice!, but does not work if you are not in a hole, if you are outside i makes not enoth light!
     

Share This Page