Paste #54606: blockbreaking-scripts

Date: 2019/06/11 18:29:21 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


block-breaking-scripts:
    type: world
    events:
        on player breaks cobblestone:
            - if !<player.in_group[moderator]>:
                # 10% chance of failing
                - if <util.random.int[1].to[10]> == 1:
                    - narrate "Success! You got lucky!"
                    - determine cancelled
                    - else:
                        - narrate "Failed to gain resources! You lack the skill!"
                        - determine NO_DROP