Date: 2014/08/30 14:30:06 UTC-07:00
Type: Denizen Script
lanterns and torches:
type: world
debug: true
events:
on player steps on block:
- if <player.flag[injump]> == null
&& <player.inventory.contains[i@lantern]>
&& <player.location.light> < 10
&& !<player.location.simple.add[0,-0.1,0].material> == m@air
&& !<player.location.simple.add[0,-0.1,0].material> == m@long_grass
&& !<context.new_location.simple.add[0,-0.1,0].material> == m@air
&& !<context.new_location.simple.add[0,-0.1,0].material> == m@glowstone
&& !<context.new_location.simple.add[0,-1,0].material> == m@glowstone
&& !<context.previous_location.simple.add[0,-1,0].material> == m@air
&& !<context.previous_location.simple.add[0,-1,0].material> == m@glowstone
&& !<context.previous_location.simple.add[0,-0.1,0].material> == m@glowstone
&& !<context.new_location.simple.add[0,-1,0].material> == m@air
&& !<c.previous_location.simple.add[0,-0.1,0]material> == m@air
&& !<player.location.simple.add[0,-1,0].material> == m@air {
- define loc <context.new_location.add[0,-1,0].simple>
- showfake %loc% m@glowstone d:5t
- wait 1t
- showfake %loc% m@glowstone d:1t
- showfake <c.previous_location> m@glowstone d:1t
}