Game Maker
Features

Inventory Layouts

Create and manage pre-defined inventories for players and chests.

The Inventory Layout Module allows you to design and save complete inventory setups, often called "kits" or "loadouts." You can then apply these layouts to players or fill containers like chests instantly using actions.

Manage your layouts in /editmap -> Inventory Layouts (Chest).

Creating an Inventory Layout

  1. Go to the Inventory Layouts menu.
  2. Click "Add Layout" and provide a name.
  3. Choose the Layout Type. This determines the size and slot arrangement of your layout:
    • Player: A full player inventory, including armor and off-hand slots.
    • Chest: A single chest inventory (27 slots).
    • Double Chest: A double chest inventory (54 slots).
  4. This will create the layout and open the Inventory Layout Edit Menu.

Editing a Layout

The core of editing a layout is the Contents menu.

  1. In the Edit Menu, click the "Contents" item (Chest).
  2. This opens a visual editor that matches the layout type you chose.
  3. To add an item:
    • Pick up an item from your own inventory.
    • Click on an empty slot in the layout editor to place it.
    • This supports both vanilla and Custom Items.
  4. To edit an item:
    • Left-click an existing item in the layout to open the Item Select Menu, where you can choose a different custom item or create a new specific item from scratch.
  5. To remove an item:
    • Right-click an item in the layout to clear the slot.

Applying an Inventory Layout

Once your layout is designed, you can apply it using actions.

  • Set Player Inventory Layout Action: This action will completely overwrite a player's current inventory with the layout you select. It's perfect for giving players a starting kit or a new loadout when they change classes.
  • Set Chest Inventory Layout Action: This action will fill a chest (or other container like a barrel) at a specific location with the items from your layout. This is great for creating loot chests that reset at the start of each round.

Example: Creating a Starter Kit

  1. Create Layout: Create a new Player inventory layout named Starter Kit.
  2. Edit Contents:
    • Open the Contents menu for your Starter Kit.
    • Place a stone sword in the first hotbar slot.
    • Place a bow and 16 arrows in the next two slots.
    • Place a full set of leather armor in the armor slots.
  3. Create a Trigger: Go to a region and open the Events menu. Select the Player Join event.
  4. Add Action: Add a Set Player Inventory Layout action to the event.
  5. Configure Action: In the action's configuration, select your Starter Kit layout.

Now, whenever a player joins your map, their inventory will be cleared and they will automatically receive the starter kit you designed.