Torch Light

Share scripts you wrote for Denizen-Bukkit here!
User avatar
mcmonkey
Site Admin
Site Admin
Posts: 173
Location: Los Angeles, California, USA
Contact:

Torch Light

Postby mcmonkey » August 6th, 2016, 6:55 am

What it does:

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

Image

Downloads:

Repo release: http://mcmonkey.org/denizen/repo/entry/13

Spigot release: https://www.spigotmc.org/resources/deni ... ght.26855/
Denizen lead developer.
http://mcmonkey.org

User avatar
hmmcrunchy
New
New
Posts: 7
Location: UK
Contact:

Re: Torch Light

Postby hmmcrunchy » November 2nd, 2016, 1:06 am

hi there

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

keep getting this on debug in console

Spoiler!

Code: Select all

[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")

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 173
Location: Los Angeles, California, USA
Contact:

Re: Torch Light

Postby mcmonkey » November 2nd, 2016, 1:11 am

hmmcrunchy wrote:hi there

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

keep getting this on debug in console

Spoiler!

Code: Select all

[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.
Denizen lead developer.
http://mcmonkey.org

User avatar
hmmcrunchy
New
New
Posts: 7
Location: UK
Contact:

Re: Torch Light

Postby hmmcrunchy » November 2nd, 2016, 1:14 am

hey thanks for speedy reply :)

I'm using 1.0.0- snapshot (build 1625) ,core version 1.15(build 74)

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 173
Location: Los Angeles, California, USA
Contact:

Re: Torch Light

Postby mcmonkey » November 2nd, 2016, 1:25 am

Denizen lead developer.
http://mcmonkey.org

User avatar
hmmcrunchy
New
New
Posts: 7
Location: UK
Contact:

Re: Torch Light

Postby hmmcrunchy » November 2nd, 2016, 1:58 am

that works a treat thank you very much. little laggy on my server but that's just the way I reckon - with light updates

thanks for your help and loving the new site :)


Return to “Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest