Hi!
While making this skript, I've run in to an annoying problem. My skript loops blocks in radius 1 when right clicked with a diamond hoe. Then sets the loop-block to diamond block. After one second it should set the loop-block back into the original loop-block (including the facing, location etc.)
This skript doesn't work because the loop-block added to {_loopblocks::*} is linked to the actual loop-block and as it changes, so changes the loop-block stored in the variable. I've tried lot of approaches to this, but so far nothing has worked.
So... Is there a good way of doing this?
Thanks.
While making this skript, I've run in to an annoying problem. My skript loops blocks in radius 1 when right clicked with a diamond hoe. Then sets the loop-block to diamond block. After one second it should set the loop-block back into the original loop-block (including the facing, location etc.)
This skript doesn't work because the loop-block added to {_loopblocks::*} is linked to the actual loop-block and as it changes, so changes the loop-block stored in the variable. I've tried lot of approaches to this, but so far nothing has worked.
So... Is there a good way of doing this?
code_language.skript:
on right click holding diamond hoe:
loop blocks in radius 1 of clicked block:
add loop-block to {_loopblocks::*}
set loop-block to diamond block
wait 1 seconds
loop {_loopblocks::*}:
set block at loop-value to loop-value
Thanks.