HomeJavaResourcepacksGUItem
GUItem
ResourcepacksJava

GUItem

by james58899 · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Resource pack only.

⬇ Download for 1.21.4–1.21.10⬇ Download for 1.21.2–1.21.3
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
GUItem — screenshot 1GUItem — screenshot 2GUItem — screenshot 3GUItem — screenshot 4GUItem — screenshot 5GUItem — screenshot 6GUItem — screenshot 7GUItem — screenshot 8

What is this?

GUItem

The goal is to imitate the container GUI by covering inventory slots with pieces of the GUI elements.

Models can be created from template models by simply providing textures to the specified texture variable.
The templates and models are categorized from GUI elements, layered from bottom to top:

Models can then be composed into the item model definition, and can also be controlled by custom model data by adding some tricks.
Here is an example /give command to get a "check mark button" by using the provided item model definition: /give @s minecraft:recovery_compass[minecraft:item_model='guitem:gui_stack',minecraft:custom_model_data={"strings":["","","","","button","check_mark",""]}]

GUI Pieces

Most pieces are designed to fit a whole slot size:
An animated image that shows how the one-slot pieces act in inventory.

Some pieces have a greater cover area that extends to other slots, representing a complete element or being a foreground/background to the others:
An animated image demonstrating how oversized pieces work in the inventory. An animated image demonstrating how oversized pieces work in the inventory.

Playing with oversized items with caution! They may have their own rules for covering items:
The special covering rules to the oversized item

Reminder

  1. The item model definition, after Minecraft 1.21.6, added oversized_in_gui to control whether the model can exceed a slot (true) or be trimmed to slot size (false, default).
  2. Try combining with the custom fonts as well. Although the container name cannot be changed without reopening the UI, it's still a great option for drawing static content; on the other hand, modeled items handle dynamic content.

Known Issues

Compatibility Info

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java resource packs walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more