Paste #16493: Edit of P#16492 - Drop Scripts

Date: 2015/06/15 18:29:27 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


CustomDropScript: 
  type: world 
  speed: 0 
  debug: false

  events: 
    on player breaks block: 
    # Displays block mined correctly
    - if <player.is_op>
      {
      - narrate "<c.location.material.name>"
      } 
    - run s@CustomDropScript p:ProcessEvent def:<c.location>

  ProcessEvent: 
    # Displays air no matter the block
    - if <player.is_op>
      {
      - narrate "<def[1].material.name>"
      }