Date: 2018/10/08 14:10:18 UTC-07:00
Type: Denizen Script
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