i am trying to recreate parts of skyfactory like silkworms and i have tried to do it but i can't get it to work properly
thanks for any help fixing it
Code:
on right click:
if {Running} is equal to 1:
if targeted block is oak leaves:
if distance between targeted block and player is less than or equal to 5:
set {SilkStage::%targeted block's position%} to 1
on script load:
while {Running} is equal to 1:
wait 1 tick
loop {SilkStage::*}:
if {SilkStage::%loop-value%} is greater or equal to 500:
set block at loop-value to bedrock
delete {SilkStage::%loop-value%}
else:
add 1 to {SilkStage::%loop-value%}
thanks for any help fixing it