mcscript icon indicating copy to clipboard operation
mcscript copied to clipboard

Cannot put comments inside blocks

Open Nixinova opened this issue 4 years ago • 0 comments

The following creates invalid output:

if ('score X Y matches 1') {
 # Comment
 say hi
}

The output is:

execute if score X Y matches 1 run # Comment
execute if score X Y matches 1 run say hi

Slash comments (//) must be used instead.

What should happen is that the hash comment is just placed before the following command, like:

# Comment
execute if score X Y matches 1 run say hi

Nixinova avatar Apr 11 '21 06:04 Nixinova