Paste #126699: Edit of paste 126698: CFour

Date: 2024/09/21 16:19:15 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste Edit Of Paste 126698 View Edit Report
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:
            - if <player.flag[numberobombsplaced]> != 0:
                - foreach <player.flag[Bombloc]>:
                    - explode power:8 <[value]> breakblocks
                    - narrate "detinating at <[value]>"
                - flag <player> numberobombsplaced:0
            - narrate "No C4 has been placed"
PlaceCfour:
    type: world
    events:
        after player places CFour:
            - flag <player> Bombloc:->:<player.cursor_on>
            - flag <player> NumberOBombsPlaced:++
            - narrate "C4 placed"