Date: 2024/07/09 16:44:55 UTC-07:00
Type: Denizen Script
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]>"