For the complete documentation index, see llms.txt. This page is also available as Markdown.

Execute Command

Execute Command

Executes commands (single or multiple), as console or player.

type: execute_command
commands:
  - give {player} diamond 1

Default target: SOURCE.

Field Details

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 1

as-console:

  • true: run as console (default)

  • false: run as player

as-console: false

mode: target player selection.

  • target-player: current hate target

  • nearby: all nearby players

radius: search radius for mode: nearby.

Variables

  • {player}: current command target player

  • {target}: mob hate target

  • {level}: mob level

Last updated