Paste #124432: test script

Date: 2024/07/09 16:44:55 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


test_sign:
    type: world
    debug: true
    events:
        on player left clicks block location_flagged:command_sign:
            - determine cancelled passively
            - define data <context.location.block.flag[command_sign]>
            - if <[data].starts_with[command_]>:
                - define data <[data].replace_text[command_].replace_text[Pname].with[<player.name>]>
                - if <[data].contains[ as_op]>:
                    - execute as_op <[data].replace_text[ as_op]>
                    - narrate "execute as_op <[data].replace_text[ as_op]>"