MCPets
  • MCPets
    • ๐Ÿ‘‹ Welcome
    • ๐Ÿฆฆ Get pets (+ Free otter)
    • ๐Ÿงช Upcoming features
  • Common issues
    • ๐Ÿ”ด Common issues
      • Requirements
      • My pet is removed on spawn
      • My pet is revoked on spawn
      • My pet looks like floating horse armors or doesn't look right
      • My pet leaves anchor mobs behind on server restart or chunk unloading
      • My pet has purple/black weird textures
      • My pet doesn't have its model applied
      • My pet can't be named
      • My pet can't be mounted
      • Pet experience : my pet is not getting any experience
      • ItemsAdder: I can't see the pet
      • Category : I can't see my pets
      • Texture Pack: merging custom items packs (1.21.3 and prior)
      • Atlases issues: purple/black icons
      • 1.21.4 Resource pack changes
      • Worldguard: making pet spawn in mob denied areas
  • Tutorials
    • โœจ Setup your first pet
    • ๐Ÿ”ฅ Pet features
      • Living Pet
        • Pet Experience
        • Modifiers
        • Taming
        • Pet Food
      • Pet Mount
      • Signal Stick
      • Pet Inventory
      • Skins
    • ๐Ÿ“œ Placeholder API support
    • ๐Ÿฒ MythicMobs add-ons
    • ๐Ÿ“ Config templates
      • Config file
      • Pet config
    • โš™๏ธ Plugin features
      • Commands
      • Permissions
      • Categories
      • Blacklisted Words
      • Custom Icons
      • WorldGuard flags
Powered by GitBook
On this page
  • How to use ?
  • Adding new rows over levels

Was this helpful?

  1. Tutorials
  2. ๐Ÿ”ฅ Pet features

Pet Inventory

PreviousSignal StickNextSkins

Last updated 2 years ago

Was this helpful?

Pets can hold items for their owner if you enable the Inventory feature.

Each inventory is unique per player and per pet, meaning each pet carries unique inventory for their owner, it's not a shared inventory between pets.

How to use ?

First you want to head into your and add the following line (see the if you have any doubt on where to paste it):

InventorySize: 18

This will enable the pet to carry an inventory with 2 rows of 9 boxes (inventory size of 18). Note that due to Minecraft limitations, you can only have inventory sizes that are multiple of 9, because a row is 9 boxes basically.

Once you have this line in your config, you can save it and close it, then restart your server.

When opening the interaction menu of your pet, you should now see an icon to open the pet inventory (all icons can be modified, see the section).

Adding new rows over levels

If your pet is a, the you can add inventory extensions when the pet levels up.

Go into your and add the InventoryExtension line in the level you want to add extensions for:

 Levels:
  # ...
  # There you have probably multiple levels
  # ... 
  YourLevel:
    # ...
    # There you have other level features
    # ...
    # THIS IS THE LINE OF INTEREST
    InventoryExtension: 9
    # ...
    # And more stuff here
    # ...

This will add a row to the inventory of your pet when it reaches the level YourLevel.

To add multiple rows you can of course implement more than 9 extensions.

โš ๏ธ NOTE: Make sure you add InventoryExtension as well for the next levels, or this might break the inventory of your player as it'll try to shrink it to the original size. So never use inventory extensions to reduce the size of the pet's inventory, and remember to add the extensions for the next levels as well.

Pet config
Custom Icons
Pet config template
living pet
Pet Config