Optional
selector: selectorManage the entity's inventory
Place an item in a specific slot of the entity's inventory
You can use the PlayerInventorySlots
slot variable to help you choosing the slot's number
The slot's number to set the item in
The item
Optional
count: numberThe amount of this item to set
Manage the entity's nbt
Store data from a command
The path to the entity's NBT
The type of result you want: success
: If the command has been correcly executed, it will returns 1
, else 0
result
: Will returns the callback of the executed command
The command
Manage the entity's tags
Execute a command with the entity aligned on the block where it is
If the execution will be aligned on the x axis
If the execution will be aligned on the y axis
If the execution will be aligned on the z axis
The command to execute
Teleport the/an entity somewhere
The location where the entity will be teleported
Optional
entity: EntityThe entity to teleport (if unset, it will take this entity)
Optional
facing: { entity: Entity; face?: "eyes" | "feet" } | { value: [string | number | Position, string | number | Position] }The rotation of the entity
Generated using TypeDoc
Represent a world's player