Paste #12492: Untitled Paste

Date: 2015/01/01 18:37:56 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


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
        }
      }