mojira.dev
MC-296431

Clipping item sprites to stay in slot makes it impossible to hide the slot for resource packs

If one makes a resource pack and intends to hide the slot like below, clipping the item to a 16x16 slot is not viable. Additionally, if you were to have an item larger than the specific 16x16 space, it causes visual errors in items in your inventory (as shown below), we could have it clip to just enough (1.125x item model scale) to allow this feature and keep the clipping ability, though it would need space around each item lest you get it flowing into other items.

Steps to reproduce:

  1. Open using the recent snapshot

  2. Download and mount the resource pack

  3. Copy in the an item from the following code, other options for the custom model data string are: empty,right_arrow, left_arrow, cross, left_arrow_disabled, right_arrow_disabled

/give @s stick[
  minecraft:item_model="minecraft:gui_button",
  minecraft:item_name={"text":"Back"},
  minecraft:custom_model_data={
    strings:["minecraft:left_arrow"],
    flags:[true]
  }
]
  1. observe the item you receive does not cover the borders as it was designed to and previously used to.

  2. observe that some items in your inventory might just vanish.

Try again on 1.21.5 and notice it works as expected.

Environment

Windows 10

Linked issues

Attachments

Comments 9

Confirmed, however I didn’t manage to reproduce the bleeding.

I was able to reproduce the bleeding, it’s accomplished by the composite model type.

/give @s stick[minecraft:item_model="bleed_test"]
[media]

You’d need to refresh the resource pack though (F3+T)

Actually I guess any model type it is bleeding to other items in the inventory. And I guess you don’t need to refresh the resource pack immediately after obtaining the item

It’s easy to see the bleeding in creative mode when you go to oe of the tab menus.

That’s probably related to that recent fix MC-276264 .

I really don't know, but in any case, that is a common technique used in RP and I think it is a big loss, so a solution or an alterantive would be appreciated.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Any way to appeal the closure of this issue?

Can confirm this is an issue, both in case of rendered area being limited compared to 1.21.5 and the texture bleeding into other items. Used resource pack GuiButtons(2) with provided commands from comment above. The bleed moves when window is resized.

25w18a:

[media]

1.21.5:

[media]


Daisy Eseyad

Timur Nazarov

Confirmed

Platform

Important

Rendering, UI

25w15a, 25w21a

1.21.6 Pre-Release 1

Retrieved