mojira.dev
MC-305269

Potion model parsing fails if the described effect is not present

If condition describes an effect that doesn’t exist, the condition fails to execute. This can happen if simply the content is not currently present in the current instance of the game.
This issue, however, does not happen with enchanted books if an inexistent enchantment is described in a condition.

In the video demonstration I created 2 resource packs:
- First changes Sharpness 5 book into bread
- Second changes Weakness potion into bread
Any effect or enchantment that’s not described in resource packs is defaulted to another item: stick for potions and enchanted book for enchanted books. After I changed the potion effect and the enchantment to made up ones, the model for potion broke while enchanted book seems to be fine.

Expected behavior: Condition for potion returns FALSE if the effect is not present

Environment

Minecraft 1.21.5 - 1.21.11
Windows 22H2 Atlas mod
Intel Xeon E5-2680v2
4 x 8Gb DDR3 ECC REG
Nvidia GTX 1070

Attachments

Comments 0

No comments.

Maxim Bondarenko

(Unassigned)

Confirmed

Platform

Low

Data Packs

1.21.11

Retrieved