Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commented lines #11

Open
JackYevhen opened this issue May 25, 2023 · 1 comment
Open

commented lines #11

JackYevhen opened this issue May 25, 2023 · 1 comment

Comments

@JackYevhen
Copy link

JackYevhen commented May 25, 2023

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
@JackYevhen
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant