Cannot put comments inside blocks
Nixinova opened this issue · 0 comments
Nixinova commented
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