Pet JSON Commands
When are the commands run?
The commands you add have different 'reasons' for when they are run, These reasons are listed below:
SPAWN
- Will run the commands listed when the pet is spawnedREVOKE
- Will run the commands listed when the pet is removedRIDE
- Will run the commands listed when the player mounts the petRIDE_DISMOUNT
- Will run the commands listed when the player dismounts off the petHAT
- Will run the commands listed when the pet is put on the players headTELEPORT
- Will run the commands listed when the pet teleportsFAILED
- Will run the commands listed when a task for the pet fails to run(like failed spawning)
Command Placeholders
We have added some placeholders to the pet commands, there could always be more added but these are the current ones added:
{petX}
This is the X coordinate of the pet
{petY}
This is the Y coordinate of the pet
{petZ}
This is the Z coordinate of the pet
{ownerX}
This is the X coordinate of pets owner
{ownerY}
This is the Y coordinate of pets owner
{ownerZ}
This is the Z coordinate of pets owner
{ownerName}
This is the name for the player who spawned the pet
{petName}
This is the pets display name
{petType}
This is the type of pet (EG: COW, PIG, ETC.)
{petUUID}
The UUID for the pet
Some examples of how to add commands
}
Last updated