Bedrock edition has an execute command with many different subcategories of requirements and commands. For example, the following command uses an "at" to create a zombie at the location of all players.
/execute at @a run summon zombie
For many command-block users, we have to use inconvenient methods to detect for player actions, such as the following command which, if in a repeating command block, will give a player a message notifying them that they're crouching.
/execute as @a at @s positioned ~~1.6~ unless entity @s[dx=0] run title @s actionbar You are crouching
If there was an "action" area, we could detect block placement, the breaking of blocks, eating, and even more. This would completely change the way that we can use commands on bedrock edition. Examples of how this could work are listed below.
/execute as @a action eat apple run summon lightning_bolt
This would summon a lightning bolt on everyone who is eating an apple.
/execute as @a action movement crouching run effect @s regeneration 10 2
This would give all crouching players regeneration.
/execute as @e[type=zombie] action attack player run effect @s weakness 30 5
This would give zombies high weakness after attacking a player.
General Format:
*must be paired with an "as"
execute as action movement run
execute as action place run
execute as action break run
execute as action attack run
Etc
Please sign in to leave a comment.
0 Comments