mojira.dev
MC-271930

Specified enchantment ignored in predicates inside of loot tables

In the attached data pack, the fishing loot table outputs treasure, fish, or junk, if the fishing rod doesn't have the custom enchantment "beeteekay:rubbish_curse" with the value of 1. If the rod has said enchantment, it will only output the junk fishing loot table. However, the predicate looks for any enchantment at level 1 rather than just "beeteekay:rubbish_curse" at level 1.

Steps to Reproduce:
1. Download the data pack attached and apply it to a world.
2. Use a fishing rod enchanted with any level 1 enchantment that's not "beeteekay:rubbish_curse".

Expected Results:
The fishing loot outputs as normal.

Observed Results:
The fishing loot only outputs junk, even though it should only output junk with the "beeteekay:rubbish_curse" enchantment.

Attachments

Comments 1

The field name is "{{enchantments}}"

BeeTeeKay

(Unassigned)

Unconfirmed

(Unassigned)

24w19b

Retrieved