Mojira Archive
MC-277702

The missing texture can be replaced

The bug

Using atlas tricks, the missing texture can be replaced with another image file in the resource pack.

According to the fix for MC-50073, replacing "missing" assets should not be possible.

How to reproduce

A resource pack is attached to this ticket that replaces the missing block/item texture with a white and blue checkerboard, and the missing GUI sprite texture with a red and white checkerboard.

  1. Download and apply the attached resource pack
  2. /give @s stone[minecraft:item_model="minecraft:nonexistent_model"]
  3. /give @s stone[minecraft:tooltip_style="minecraft:nonexistent_texture"]

    , mouse over

Expected results

In both cases the standard black and magenta checkerboard should be used, since replacing that texture shouldn't be possible.

Actual results

The texture does in fact get replaced with the new checkerboard.

How to fix

Disallow "missingno" as a sprite name in atlas definitions.

Unresolved

Connor Steppie

2024-10-19, 11:11 AM

2024-10-31, 11:06 AM

1

2

Community Consensus

Resource Packs, Textures and models

1.21.1, 1.21.2 Release Candidate 1

-