Wiki 9Minecraft Wiki 9Minecraft

SubLib PetBuddy Integration

Java EditionModGuides 5FAQ 8Related mods 48
DownloadSubLib

Get the files on 9Minecraft

Contents (3)
  1. Pet Mechanics
  2. Next guides
  3. More in this wiki

SubLib contains the base entity code for the PetBuddy, a miniature companion that follows the player.

Pet Mechanics

  • Behavior: The pet uses SubLib's targeting logic to stay within a specific radius of the owner. It can be set to stay, follow, or ride on the player's shoulder.
  • Appearance: The pet can mimic the player's skin or be transformed into various mobs using specific items.
  • Inventory: SubLib provides the pet with its own small inventory, allowing it to act as a mobile storage unit.

The PetBuddy entity relies on SubLib for its AI and following behavior