Paste #31499: Untitled Paste

Date: 2016/03/12 08:31:37 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


torch_light_world:
    type: world
    debug: false
    events:
        on player steps on block:
        - if <player.has_flag[torch_light_prev]> {
          - light <context.previous_location> reset
          - flag player torch_light_prev:!
          }
        - if <player.item_in_hand.material.name> == torch {
          - light <context.location.add[0,1,0]> 14
          - flag player torch_light_prev
          }
        on player quits:
        - if <player.has_flag[torch_light_prev]> {
          - light <context.previous_location> reset
          - flag player torch_light_prev:!
          }