Torch Light

mcmonkey

Administrator
Staff member
REPLACED BY RESOURCE: https://forum.denizenscript.com/resources/torch-light.11/




What it does:

Lights your path in front of you whenever you hold a torch, in either hand.

sQNzFHZ.png


Downloads:

Hastebin: https://paste.denizenscript.com/View/83016 <-- Most users, just click here and click "Download the script"

GitHub current copy: https://github.com/mcmonkeyprojects/DenizenSampleScripts/blob/master/torch_light.dsc

Outdated: Repo release: old

Spigot release: https://www.spigotmc.org/resources/denizen-torch-light.26855/
 
Last edited:

hmmcrunchy

Member
Nov 2, 2016
7
0
0
UK
www.byte.org.uk
hi there

does this one still work? or need dependencies at all tried a server reboot

keep getting this on debug in console

Code:
[08:03:25 INFO]: +> [Denizen] (Attempted: LIGHT
                   "<context.location.add[0,1,0]>" "14")
[08:03:25 INFO]:  ERROR in script 'TORCH_LIGHT_WORLD'! Woah!! An exception
                   has been called with this command!
[08:03:25 INFO]:  ERROR in script 'TORCH_LIGHT_WORLD'! Internal exception
                   was thrown!
[08:03:25 WARN]: java.lang.NullPointerException
[08:03:25 WARN]:        at net.aufdemrand.denizen.scripts.commands.world.LightCo
mmand.execute(LightCommand.java:78)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.commands.CommandEx
ecuter.execute(CommandExecuter.java:248)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptEngin
e.revolve(ScriptEngine.java:54)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
.revolve(ScriptQueue.java:678)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.core.Instan
tQueue.onStart(InstantQueue.java:61)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
$1.run(ScriptQueue.java:509)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
.start(ScriptQueue.java:528)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.events.ScriptEvent.run(Scr
iptEvent.java:277)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.events.ScriptEvent.fire(Sc
riptEvent.java:241)
[08:03:25 WARN]:        at net.aufdemrand.denizen.events.player.PlayerStepsOnScr
iptEvent.onPlayerStepsOn(PlayerStepsOnScriptEvent.java:133)
[08:03:25 WARN]:        at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown
 Source)
[08:03:25 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[08:03:25 WARN]:        at java.lang.reflect.Method.invoke(Unknown Source)
[08:03:25 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(Jav
aPluginLoader.java:306)
[08:03:25 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(Regist
eredListener.java:62)
[08:03:25 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(Simpl
ePluginManager.java:502)
[08:03:25 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
ePluginManager.java:487)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PlayerConnection.a(Play
erConnection.java:607)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PacketPlayInFlying.a(So
urceFile:126)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PacketPlayInFlying$Pack
etPlayInPosition.a(SourceFile:57)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1
.run(SourceFile:13)
[08:03:25 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(U
nknown Source)
[08:03:25 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFil
e:45)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.D(Minec
raftServer.java:733)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.DedicatedServer.D(Dedic
atedServer.java:399)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.C(Minec
raftServer.java:672)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.run(Min
ecraftServer.java:571)
[08:03:25 WARN]:        at java.lang.Thread.run(Unknown Source)
[08:03:25 INFO]: +> [Denizen] (Attempted: LIGHT
                   "<context.location.add[0,1,0]>" "14")
 

mcmonkey

Administrator
Staff member
hmmcrunchy said:
hi there

does this one still work? or need dependencies at all tried a server reboot

keep getting this on debug in console

Code:
[08:03:25 INFO]: +> [Denizen] (Attempted: LIGHT
                   "<context.location.add[0,1,0]>" "14")
[08:03:25 INFO]:  ERROR in script 'TORCH_LIGHT_WORLD'! Woah!! An exception
                   has been called with this command!
[08:03:25 INFO]:  ERROR in script 'TORCH_LIGHT_WORLD'! Internal exception
                   was thrown!
[08:03:25 WARN]: java.lang.NullPointerException
[08:03:25 WARN]:        at net.aufdemrand.denizen.scripts.commands.world.LightCo
mmand.execute(LightCommand.java:78)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.commands.CommandEx
ecuter.execute(CommandExecuter.java:248)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptEngin
e.revolve(ScriptEngine.java:54)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
.revolve(ScriptQueue.java:678)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.core.Instan
tQueue.onStart(InstantQueue.java:61)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
$1.run(ScriptQueue.java:509)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.scripts.queues.ScriptQueue
.start(ScriptQueue.java:528)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.events.ScriptEvent.run(Scr
iptEvent.java:277)
[08:03:25 WARN]:        at net.aufdemrand.denizencore.events.ScriptEvent.fire(Sc
riptEvent.java:241)
[08:03:25 WARN]:        at net.aufdemrand.denizen.events.player.PlayerStepsOnScr
iptEvent.onPlayerStepsOn(PlayerStepsOnScriptEvent.java:133)
[08:03:25 WARN]:        at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown
 Source)
[08:03:25 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[08:03:25 WARN]:        at java.lang.reflect.Method.invoke(Unknown Source)
[08:03:25 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(Jav
aPluginLoader.java:306)
[08:03:25 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(Regist
eredListener.java:62)
[08:03:25 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(Simpl
ePluginManager.java:502)
[08:03:25 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
ePluginManager.java:487)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PlayerConnection.a(Play
erConnection.java:607)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PacketPlayInFlying.a(So
urceFile:126)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PacketPlayInFlying$Pack
etPlayInPosition.a(SourceFile:57)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1
.run(SourceFile:13)
[08:03:25 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(U
nknown Source)
[08:03:25 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFil
e:45)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.D(Minec
raftServer.java:733)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.DedicatedServer.D(Dedic
atedServer.java:399)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.C(Minec
raftServer.java:672)
[08:03:25 WARN]:        at net.minecraft.server.v1_10_R1.MinecraftServer.run(Min
ecraftServer.java:571)
[08:03:25 WARN]:        at java.lang.Thread.run(Unknown Source)
[08:03:25 INFO]: +> [Denizen] (Attempted: LIGHT
                   "<context.location.add[0,1,0]>" "14")
Should work on Denizen 1.0.0 but potentially not 0.9.8. IE, you probably need to update if you haven't done so in the past month or so.

If it doesn't work when running the latest version, lemme now and I'll get it fixed.