Paste #8948: lantern script

Date: 2014/08/29 14:39:55 UTC-07: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
20
21


lanterns and torches:
  type: world
  debug: false
  events:
    on player steps on block:
    - if <player.inventory.contains[i@lantern]> && '<w@adventure map.time>' > 16000 && '<w@adventure map.time>' < 23000 {
      - showfake <context.new_location.add[0,-1,0]> m@glowstone d:5s
      - showfake <context.previous_location.add[0,-1,0]> m@glowstone d:1t
      }
    - if <player.item_in_hand> == i@torch && '<w@adventure map.time>' > 16000 && '<w@adventure map.time>' < 23000 {
      - showfake <context.new_location.add[0,-1,0]> m@glowstone d:3s
      - showfake <context.previous_location.add[0,-1,0]> m@glowstone d:1t
      }


lantern:
  type: item
  material: m@beacon
  display name: lantern
  lore:
  - lights your way in the dark