Execute Command
Last updated
Executes commands (single or multiple), as console or player.
type: execute_command
commands:
- give {player} diamond 1Default target: SOURCE.
commands: command list executed in order.
commands:
- effect give {player} slowness 5 1
- say affected {player}command: single command; used when commands is empty.
command: give {player} golden_apple 1as-console:
true: run as console (default)
false: run as player
as-console: falsemode: target player selection.
target-player: current hate target
nearby: all nearby players
radius: search radius for mode: nearby.
{player}: current command target player
{target}: mob hate target
{level}: mob level
Last updated
mode: nearbyradius: 16