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-216500 Syntax Highlighting Issues/Tab Completion Mission Resolved MC-258512 "/execute if blocks [...] all" causes commands after to be highlighted in red even if there are no errors Resolved MC-260933 Execute if blocks all autocompletion don't work Resolved MC-261903 Execute if bloocks dosen't work Resolved MC-264370 If blocks all mode prompts for incorrect command arguments 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