Date: 2015/01/01 18:37:56 UTC-08:00
Type: Denizen Script
lantern:
type: world
debug: true
events:
on player walks:
- if <player.location.light> <= 5 {
- while <player.location.sub[0,0.1,0].material.is_solid||false> {
- flag player oldloc:<player.location.simple>
- if <def[loop_index].is[more].than[25]> {
- while stop
}
- showfake m@glowstone <player.location.standing_on> duration:3t
- if <player.flag[oldloc]> == <player.location.simple> {
- showfake m@glowstone <player.location.standing_on> d:5m
- while stop
}
- wait 10t
}
}