Paste #50281: Untitled Paste

Date: 2018/10/08 14:10:18 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


Machine_Events:
    type: world
    events:
        on stationary_lava spreads:
        - wait 1t
        - if <context.destination.material.name> == cobblestone {
            - run Machine_BreakBlock instantly context:<context.destination>
        }

Machine_BreakBlock:
    type: task
    definitions: loc
    script:
    - announce "Broke <def[loc].simple>"
    - if <def[loc].materials> == m@air {
        - queue clear
    }
    - define mat_id <def[loc].material.id>
    - modifyblock <def[loc]> air
    - playsound <def[loc]> sound:DIG_STONE pitch:<util.random.decimal[0.7].to[1.3].round_to[2]>
    - playeffect <def[loc].add[0.5,-0.5,0.5]> effect:TILE_BREAK data:<def[mat_id]> quantity:30 offset:3.0