Paste #48559: Random Block Breaker

Date: 2018/07/11 05:18:35 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


Wordlscript:
    type: world
    events:
        on player breaks grass:
        - narrate "You are not allowed to break <context.material>"
        - determine cancelled

        on player breaks sand:
        - if <util.random.int[1].to[5]> == 3 {
        - narrate "Lucky!"
          }
          else {
          - determine cancelled 
          - narrate "Unlucky!"
          }