
GUItem
Item models for customizing container GUI.
- Загрузки
- 1K
- Подписчики
- 14
- Обновлён
- 2 октября 2025 г.
- Лицензия
- MIT
Опубликован 11 октября 2024 г.
What is this?
- Does not replace existing textures or models of the vanilla game.
- Use custom item models to decorate the container GUI instead of Glass Panes and Heads.
- Stack layers of models, then use custom model data to control.
- Template models for easily creating layer models from textures.
- An item model definition as an example or direct use.
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:
- Background
- The bottom layer that can be displayed.
- Ignorable or unimportant information that does not affect the reading.
- Field
- To declare sections or primary color fill.
- Pattern
- Visually interact with.
- Implicit or direct informing of something.
- Slot
- Can insert, take, or preview items.
- Button
- Something will happen when interacting with.
- Must have a placeholder state if the action cannot be available.
- Icon
- Expression of condensed information.
- Symbols or graphics representing.
- Foreground
- The top layer that can be displayed.
- Any information that must be shown, even if the items can be covered.
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:
Some pieces have a greater cover area that extends to other slots, representing a complete element or being a foreground/background to the others:

Playing with oversized items with caution! They may have their own rules for covering items:
Reminder
- The item model definition, after Minecraft 1.21.6, added
oversized_in_guito control whether the model can exceed a slot (true) or be trimmed to slot size (false, default). - 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
- Item models are rendered slightly dim.
- It seems like this upstream issue is fixed along with the lightmap algorithm changes made in Minecraft 26.1 snapshot 1.
- Oversized models sometimes have a smaller UV area, resulting in the wrong scaling of the texture.
- Some oversized models are missing their top row of pixels(GUI scaled).
Compatibility Info
- namespace:
guitem - atlases directory:
gui_item
Ченджлог
2.1.0Релиз1.21.8, 1.21.9, 1.21.10 · 2 октября 2025 г.
Pack format: 46~69.0
Changes
- Fix 3x model UV
- Removes the workaround for a strange model UV issue.
- The issue still occurs, but is no longer caused by the workaround.
- Add 3x buttons
- Add pattern:
small_progress_right
- Add icon:
arrow_uparrow_downarrow_leftarrow_rightgrayed_arrow_upgrayed_arrow_downgrayed_arrow_leftgrayed_arrow_rightcheck_markcross_markgrayed_check_markgrayed_cross_markplus_signminus_signanonymouspersonpeoplenumber_0number_1number_2number_3number_4number_5number_6number_7number_8number_9underscorepositivenegativeexclamation_markquestion_mark
Full Changelog: https://github.com/OKTW-Network/GUItem/compare/v2.0.0...v2.1.0
2.0.0Релиз1.21.4 · 2 октября 2025 г.
Pack format: 46
v1 can't be directly upgraded to this version.
Changes
- File structure changes
- model files are moved from
models/itemtomodels/gui_item - layer templates and contents are now stored under
models/gui_item/(layer name)_layer
- model files are moved from
- Remake the template models
- multi-layer template has been sliced into 7 models, each representing a layer
- said 7 layers sorted in "depth" from bottom to top are:
background,field,pattern,slot,button,icon,foreground - the "depth" of the layers has been adjusted
- the model element and its UV area increased
- Add item model definition: gui_stack
- composite layer contents into a stack, with only one content for each layer
- the first 7 strings in the list of
minecraft:custom_model_datais used to assign content to that layer - directly use in-game or reproduce or/and improve this implementation under other namespaces
1.0.0Релиз1.21.2-pre5, 1.21.2, 1.21.3 · 21 октября 2024 г.
Pack format: 42 (37~42)
First release
Комментарии
Загружаем…