mojira.dev
MC-169471

Predicate errors show up as "loot table" in the log

When the game can't parse a predicate in a data pack, it will show the following error:

Couldn't parse loot table namespace:foo

If there is both a loot table and a predicate with that name, this can lead to confusion.

Linked issues

Attachments

Comments 3

Confirmed. I attached a test datapack.

Still confirmed in 1.16-pre2.

I cannot reproduce this anymore, the issue appears to have been fixed in 23w14a:

The predicate loader was refactored to use its own distinct error path, which now correctly outputs Couldn't parse element predicates:namespace:foo instead. This makes it clear in the log that the failing resource is a predicate and not a loot table. It is worth noting that on 1.21+ and later snapshots, broken predicates produce no log output whatsoever.

[media]

Misode

(Unassigned)

Confirmed

Platform

Low

Commands

1.15.1, 1.15.2, 20w07a, 20w14a, 20w16a, , 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.3

Retrieved