- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2018/10/08 14:10:18 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2200
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



RawRaw



Pastes made: 59170