Paste #126698: CFour

Date: 2024/09/21 15:53:08 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


CFour:
    type: item
    material: stone_button
    display name: C4 Brick
Detonator:
    type: item
    material: wooden_shovel
    display name: Detonator
Detonate:
    type: world
    events:
        after player right clicks block with:Detonator:
            - foreach <player.flag[Bombloc]>:
                - explode power:8 <[value]> breakblocks
                - narrate "detinating at <[value]>"
            - flag <player> bombloc:!
            - remove <player.flag[bombloc]>
PlaceCfour:
    type: world
    events:
        after player places CFour:
            - flag <player> Bombloc:->:<player.cursor_on>
            - narrate "C4 placed"