Pet Inventory

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 Pet config and add the following line (see the Pet config template 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 Custom Icons section).

Adding new rows over levels

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

Go into your Pet Config 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.

Last updated