EasyDatapacks
EasyDatapacks copied to clipboard
commented lines
some line suddenly, for no appeared reason compile as commented. example:
EasyDatapack resembling code:
scoreboard players set @s renew 0
scoreboard players add @s progress 1
grabber = summon marker ~ ~ ~
data modify entity grabber#1 Pos set from entity @s data.Origin
if score @s progress matches 4 at grabber#1 run clone ~5 ~ ~ ~5 ~ ~ 0 -64 0
if score @s progress matches 3 at grabber#1 run clone ~4 ~ ~ ~4 ~ ~ 0 -64 0
if score @s progress matches 2 at grabber#1 run clone ~3 ~ ~ ~3 ~ ~ 0 -64 0
if score @s progress matches 1 at grabber#1 run clone ~2 ~ ~ ~2 ~ ~ 0 -64 0
if score @s progress matches 0 at grabber#1 run clone ~1 ~ ~ ~1 ~ ~ 0 -64 0
kill grabber
clone 0 -64 0 0 -64 0 ~ ~ ~
setblock 0 -64 0 bedrock
Compiled:
scoreboard players set @s renew 0
scoreboard players add @s progress 1
summon marker ~ ~ ~ {Tags:["main.proceed_half_breakables.grabber"]}
data modify entity @e[tag=main.proceed_half_breakables.grabber,limit=1] Pos set from entity @s data.Origin
# execute if score @s progress matches 4 at @e[tag=main.proceed_half_breakables.grabber,limit=1] run clone ~5 ~ ~ ~5 ~ ~ 0 -64 0 run function jyhalfminable:proceed_half_breakables.e0
# execute if score @s progress matches 3 at @e[tag=main.proceed_half_breakables.grabber,limit=1] run clone ~4 ~ ~ ~4 ~ ~ 0 -64 0 run function jyhalfminable:proceed_half_breakables.e1
# execute if score @s progress matches 2 at @e[tag=main.proceed_half_breakables.grabber,limit=1] run clone ~3 ~ ~ ~3 ~ ~ 0 -64 0 run function jyhalfminable:proceed_half_breakables.e2
# execute if score @s progress matches 1 at @e[tag=main.proceed_half_breakables.grabber,limit=1] run clone ~2 ~ ~ ~2 ~ ~ 0 -64 0 run function jyhalfminable:proceed_half_breakables.e3
# execute if score @s progress matches 0 at @e[tag=main.proceed_half_breakables.grabber,limit=1] run clone ~1 ~ ~ ~1 ~ ~ 0 -64 0 run function jyhalfminable:proceed_half_breakables.e4
kill @e[tag=main.proceed_half_breakables.grabber]
clone 0 -64 0 0 -64 0 ~ ~ ~
setblock 0 -64 0 bedrock
tag @e[tag=main.proceed_half_breakables.grabber] remove main.proceed_half_breakables.grabber
Update. I know how to fix the problem, but it is still a strong bug, please make it easier crush while compiling, or compile normally.
if/unless/... ... run (command)
will compile with error, but
if/unless/... ... (command)
will compile normally