mojira.dev
MC-298783

Block cracking animation is not read from blocks.png-atlas, but is written to it anyway

The destroy_stage_[0-9] textures are in the textures/block folder, and are therefore added to blocks.png-atlas. However, the game doesn’t actually read them from blocks.png-atlas, for whatever reason, meaning they’re unused in this context. Among other minor things, this means that the cracking stages cannot be given animated textures.

This was not the case in versions 19w38b and earlier, in which case any specified animated textures would be used by each cracking stage as expected.

How to reproduce:

  1. download the attached resource pack

  2. punch a block.

Expected Results:

The normal nether portal animation would be expected to appear

Actual Results:

but in actuality it appears distorted, with every frame displayed at once, squashed into the space of a block space.

This could be fixed by either:

  • reading the cracking textures from the atlas, like was done in previous versions

  • moving the cracking textures to a more fitting folder, such as environment (like Bedrock Edition does: https://github.com/Mojang/bedrock-samples/tree/main/resource_pack/textures/environment ) or misc, so that they aren’t pointlessly included in the atlas (would fix MC-200944)

  • moving them to another more fitting folder, but also creating a dedicated atlas for them so they can still be animated (preferred solution since we get animation capabilities and fix MC-200944 at the same time)

Linked issues

Attachments

Comments 0

No comments.

muzikbike

(Unassigned)

Confirmed

Textures and models

1.21.5, 1.21.6 Release Candidate 1

Retrieved