mojira.dev
MC-266573

execute ... if/unless data ... throws wrong error

(relates MC-263605 and MC-264145)

When you're not in block entity:

/execute if data block ~ ~ ~ {}

throws "The target block is not a block entity". However,

/execute if data block ~ ~ ~ {} run say hi

throws "Unknown or incomplete command, ..."

Same for "That position is not loaded" and "No entity was found".

Linked issues

Comments 1

This was fixed in 23w41a 🙂

ccJerrycc

(Unassigned)

Unconfirmed

Commands

1.20.2

Retrieved