mojira.dev
MC-265038

"Destroy Item" Creative inventory slot does not have its own texture file

The bug

Unlike other special slots with their own unique appearences (e.g. loom slots), the "Destroy Item" slot in the "Survival Inventory" tab accessible in Creative mode does not have a unique, dedicated texture file for this slot, and it is instead a part of textures/gui/container/creative_inventory/tab_inventory.png, making it inconsistent with almost all other special slots.

How to reproduce

  1. Open the contents of the jar file

  2. Navigate to textures/gui/container/creative_inventory/tab_inventory.png

  3. Inspect this image file

Expected results

The destroy item slot would look like a normal slot, with the red background and X being handled with a separate file.

Actual results

The red background and X are built into this inventory texture instead, making it inconsistent with other special inventory slots.

How to fix

An extracted destroy_item slot texture has been extracted from tab_inventory.png. It can be placed somewhere (likely textures/gui/sprites/container/creative_inventory) and the game would place this texture file over the existing slot like it does with empty armor slots, empty smithing table slots and the like.

Linked issues

Attachments

Comments 2

Why is that expected? What would it achieve? You cannot actually place items in this slot anyways, so there's no point in making it a separate texture from the gui itself (unlike, eg, smithing templates as they hide the content-outline upon an item being inserted). It also never hides within said gui, unlike loom option slots.

Adding onto what @unknown said, this is a change request as this behavior is consistent with other container textures such as the enchanting table which also have sections which the player can interact with, but not place items into. There is no need to use a unique sprite when the slot never changes it's texture.

muzikbike

(Unassigned)

Confirmed

Textures and models, UI

23w33a, 23w35a, 1.20.2

Retrieved