promotional bannermobile promotional banner

Petite Inventory

Provides a Resident Evil 4 / Diablo–style inventory layout, where a single item can occupy multiple slots, and adjusts the corresponding replacement and transfer operations.
Back to Files

petiteinventory-1.1.0.jar

File namepetiteinventory-1.1.0.jar
Uploader
MerrySnowMerrySnow
Uploaded
Aug 4, 2026
Downloads
108
Size
128.3 KB
Mod Loaders
Forge
File ID
8577448
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:petite-inventory-1386712:8577448")

Learn more about Curse Maven

What's new

Added

  • Added edit mode, toggled with /petiteinventory edit.
  • In edit mode, item edges and corners support resizing in eight directions; the red border appears only when the cursor is over a resizable region.
  • Added Ctrl multi-selection, drag-to-select regions, and Ctrl+Shift selection extension.
  • Added batch color editing and batch footprint editing by holding right-click for 0.5 seconds.
  • Added a Petite layout toggle at the top of each container screen, allowing the current screen to be enabled or disabled independently.
  • Added /petiteinventory blacklist and /petiteinventory whitelist to switch the default screen-layout behavior.
  • After picking up a non-square item, the current item instance can be rotated with the mouse wheel or the R key.
  • Added border_items.json, border_colors.json, screen_layouts.json, and screen_layout_mode.json configuration files.

Interaction and Layout Improvements

  • Unified footprint calculations for placement, replacement, stacking, and quick transfer.
  • Item replacement now supports both larger-to-smaller and smaller-to-larger exchanges.
  • Shift quick transfer searches for an empty area that can hold the item's complete footprint.
  • Container items are transferred to the player's main inventory instead of being incorrectly routed to the hotbar.
  • The hotbar remains independent and is excluded from the Petite layout by default; the player inventory can be configured separately.
  • Item background slots are cropped dynamically from the current inventory texture, allowing resource-pack compatibility.
  • Improved whole-item hover, highlight, and footprint rendering to avoid rendering multi-slot items once per slot.

Mod Compatibility

  • Added and improved Sophisticated Core/Backpacks support, including actual footprint rendering, occupancy checks, and footprint-aware quick transfer.
  • Separates Sophisticated Backpacks storage slots from the player's inventory slots.
  • Supports size and background-color matching for TACZ modern_kinetic_gun items through their GunId NBT.
  • Retained the KubeJS event bridge while separating inventory logic, configuration, platform events, and compatibility code into independent modules.

Architecture and Distribution

  • Removed the old /size editing flow; edit mode is now the only visual footprint-editing entry point.
  • Removed the old color command; colors are edited through the preset palette or border_colors.json.
  • Removed the fixed area.png slot asset and now read the inventory background texture directly.
  • Changed the project license to GNU AGPL v3.0.

Notes

  • The old size and color commands are no longer available. Use edit mode or the corresponding configuration files instead.
  • Vanilla click-drag item movement is disabled in containers using the Petite layout to avoid conflicts with multi-slot interaction.
  • Sorting, slot-expansion, and other inventory-structure mods may still require additional compatibility work.

This mod has no additional files