Mojira Archive
MC-278338

Compass, recovery compass and clock functionality can be replicated on any item with the use of resource packs

With the model changes from 24w45a, item models now use a new system to render models at specific conditions, replacing overrides. Making use of the new range_dispatch model type makes it possible for players to customize an item based on certain numeric data.

This however, has the side effect that now certain items that depend of their model for their functionality such as the compass, recovery compass and the clock can now be replicated by applying the range_dispatch model type to any item. This is as simple as just replacing the item model file from the listed items to the desired item.

As a note, I tried to recreate this in 1.21.3 by also replacing the item model file of the listed items (which previously used an item predicate in the overrides section), and the texture was always static, as expected.

Ideally, recovery compasses, compasses and clocks would have a default component so that a has_component property could be used against it to make the models only work for these items, and not be replicated by trivial items (this is already checked for lodestone compasses).

How to reproduce

  1. Make a world in 1.21.3.
  2. Apply the "compass functionality 1.21.3" resource pack.
  3. Give you any of the listed items: stick, bone, coal.
  4. Notice how none of these items work despite having the compass/clock model.
  5. Make a world in 24w46a.
  6. Repeat steps 2 and 3 with the corresponding 24w46a resource pack.
  7. Notice how these items "imitation" works.

Expected result
The model would stay static for the stick, bone and coal.

Observed result
The model works for the listed items, allowing them to replicate compass/clock core functionality.

Unresolved

syarumi

2024-11-15, 12:53 PM

2024-12-14, 03:02 AM

0

1

Plausible

Normal

Platform

Resource Packs

24w46a, 1.21.4

-