Item model definitions using oversized_in_gui
tag ignores the item model display translation override found in an item model and instead uses inventory slot order to render item models under/over each other when overlapping. This does not match previous behavior in 1.21.5 that allows item model display translation to control which models render over others in GUIs using this feature.
Steps to reproduce:
Create an item model definition for 2 items, in this case
red_stained_glass_pane
andwhite_stained_glass_pane
, enableoversized_in_gui
tag on both definitions
assets/minecraft/items/white_stained_glass_pane
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/white_stained_glass_pane"
},
"oversized_in_gui": true
}
assets/minecraft/items/red_stained_glass_pane
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/red_stained_glass_pane"
},
"oversized_in_gui": true
}
Create item models for both item definitions, give one item model a slight variation in GUI translation display and scale them up so the overlap with one another
assets/minecraft/models/item/white_stained_glass_pane
{
"parent": "minecraft:builtin/generated",
"textures": {
"layer0": "minecraft:block/white_stained_glass"
},
"display": {
"gui": {
"translation": [0, 0, -10],
"scale": [2, 2, 2]
}
}
}
assets/minecraft/models/item/red_stained_glass_pane
{
"parent": "minecraft:builtin/generated",
"textures": {
"layer0": "minecraft:block/red_stained_glass"
},
"display": {
"gui": {
"translation": [0, 0, 0],
"scale": [2, 2, 2]
}
}
}
Give both
white_stained_glass_pane
andred_stained_glass_pane
to yourself using/give @s minecraft:red_stained_glass_pane
and/give @s minecraft:white_stained_glass_pane
Place
white_stained_glass_pane
in an inventory slot after thered_stained_glass_pane
Note
white_stained_glass_pane
renders in front ofred_stained_glass_pane
albeit item model is configured to do otherwise
Attached is the resource pack that reproduces the issue described above.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki