Using it

Pets

A pet has a pet: block with a mode.

  • DISPLAY: a floating item (uses the model: keys inside pet:). It hovers and glides after the player. x, y, z say 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>"
KeyDefaultMeaning
modeDISPLAYDISPLAY or MOB
entityFOXMOB only: any mob type, for example CAT, FOX, ALLAY
babyfalseMOB only: baby version
scale1.0MOB only: size (uses the scale attribute)
speed1.3MOB only: walking speed toward the owner
name<player>'s petMOB only: name tag (MiniMessage, <player> is the owner)
name-visibletrueMOB only: show the name tag
modeln/aDISPLAY only: the model block