Skip to main content

Command Result

Executes Minecraft commands directly.

Fields​

FieldTypeDefaultDescription
typeString—Fixed as htlib:command
global_commandStringEmptyGlobal command (no target entity)
defender_commandStringEmptyCommand executed as each defender
raider_commandStringEmptyCommand executed as each raider

Example​

{
"type": "htlib:command",
"defender_command": "give @s apple 1"
}