Mojira Archive
MC-273766

Referencing predicates is not allowed on enchantments in datapacks

The bug: Using the reference predicate type in an enchantment definition will prevent the datapack from loading, for the reason "java.lang.IllegalStateException: Validation error in enchantment effect condition: at : Uses reference to minecraft:player, but references are not allowed". This is not documented anywhere on the wiki or in the snapshot changelogs to my knowledge

Expected behaviour: The datapack loads and uses the predicate referenced

How to reproduce: Install the provided datapack, and try to load it in a world, which will prevent the world from loading or the datapack from validating.

when you remove the condition for the draft:predicate_test enchant, the datapack will load just fine

Works As Intended

305pence

2024-06-23, 03:55 AM

2024-06-23, 08:52 AM

2024-06-23, 08:52 AM

0

0

Unconfirmed

(Unassigned)

1.21

-