Mojira Archive
MC-163744

Missing predicates return true/false rather than failing

The bug

When a predicate does not exist, commands that evaluate it act as though it existed, ran properly, and returned false.

Compare the following:

@a[advancements={does_not_exist=false}]   // finds nobody
@a[advancements={does_not_exist=true}]    // finds nobody
@a[predicate=!does_not_exist]             // finds everyone

How to reproduce

/execute unless predicate aklsdjfaksjfa
/execute if entity @s[predicate=!alskdjf]

Expected result: error, 'aklsdjfaksjfa' not found

Actual result: Test passed

Fixed

[Mod] tryashtar

[Mojang] Bartosz Bok

2019-10-15, 09:18 AM

2019-10-30, 04:50 PM

2019-10-30, 04:50 PM

5

4

Confirmed

Normal

Advancements, Loot tables

19w41a

19w44a