mojira.dev
MC-137380

"/execute if blocks [...] all" syntax highlighting does not recognize following subcommands

The bug

Trying to run subcommands of execute if blocks ... all shows that the syntax of the command is invalid.

To reproduce

  1. /op yourself

  2. Paste the following command in chat

    /execute if blocks ~ ~ ~ ~ ~ ~ ~ ~ ~ all run say test

    ❌ The command is shown in red (but it works anyway when run)

Reason

Explanation and cause of the bug can be found in this comment by @unknown.

Linked issues

MC-276499 '/execute if/unless blocks [...] all' highlighting does not allow anything following Resolved MC-278807 Command appears red, but still works Resolved MC-270868 'execute if blocks ... all' shows syntax error, but command runs fine. Resolved MC-268094 `execute if blocks` doesn't recognize subcommands after it Resolved MC-267852 /execute blocks shows red text if when it works! Resolved

Attachments

Comments 32

[media][media][media][media][media]

This issue is still prevalent in minecraft 1.15.2

This issue is still prevalent in minecraft 1.15.2

Cannot confirm for 1.15.2 with the commands provided in the description. Both are missing the destination coordinates.
@@unknown, which command are you using?

@Marcono1234 I can reproduce it with the following command: 

execute if blocks ~-2 ~ ~-1 ~-2 ~ ~ 101 127 101 all run say test

Running on a vanilla server snapshot20w14a

22 more comments

can confirm in 1.20,5 pls fix it XD

can confirm in 1.20,5 pls fix it XD

Can Confirm, still happening in version: 24w38a!!!

[media]

Normally this doesn't really matter and if you NEED the autocomplete you can just take a comparator output into another command block

However it is still annoying

I can confirm in 1.21.3

Evan Claire

(Unassigned)

Confirmed

Platform

Low

Commands

Minecraft 1.13.1, 20w15a, 1.16, 1.16.5, 21w07a, ..., 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 2, 24w36a, 1.21.3, 1.21.4

Retrieved