mojira.dev
MC-298978

Item model definitions using `oversized_in_gui` tag ignores item model display translation and instead uses inventory slot order

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:

  1. Create an item model definition for 2 items, in this case red_stained_glass_pane and white_stained_glass_pane, enable oversized_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
}

  1. 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]
    }
  }
}
  1. Give both white_stained_glass_pane and red_stained_glass_pane to yourself using /give @s minecraft:red_stained_glass_pane and /give @s minecraft:white_stained_glass_pane

  2. Place white_stained_glass_pane in an inventory slot after the red_stained_glass_pane

  3. Note white_stained_glass_pane renders in front of red_stained_glass_panealbeit item model is configured to do otherwise

Attached is the resource pack that reproduces the issue described above.

Attachments

Comments 1

[Mojang] Triage Team

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 HistorySnapshot Version HistoryThe 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

fey

(Unassigned)

Confirmed

Resource Packs

1.21.6

Retrieved