Pets
A pet has a pet: block with a mode.
- DISPLAY: a floating item (uses the
model:keys insidepet:). It hovers and glides after the player.x,y,zsay where it floats around the player. - MOB: a real mob. It is invulnerable, never targets anyone, makes no sound (
pets.silent), is removed when the owner leaves and teleports back if it falls more than about 18 blocks behind.
pet:
mode: MOB
entity: FOX
baby: true
name: "<gold><player>'s Fox</gold>"
| Key | Default | Meaning |
|---|---|---|
| mode | DISPLAY | DISPLAY or MOB |
| entity | FOX | MOB only: any mob type, for example CAT, FOX, ALLAY |
| baby | false | MOB only: baby version |
| scale | 1.0 | MOB only: size (uses the scale attribute) |
| speed | 1.3 | MOB only: walking speed toward the owner |
| name | <player>'s pet | MOB only: name tag (MiniMessage, <player> is the owner) |
| name-visible | true | MOB only: show the name tag |
| model | n/a | DISPLAY only: the model block |