I'm trying to save blocks as an arena, but it doesn't works
The command will show the message below as it don't saved any block.
The Hpos are setted here:
HELP!
code_language.skript:
command /save [<text>]:
trigger:
loop blocks from {hpos1::%player%} to {hpos2::%player%}:
wait 1 tick
set {arenastorage::%arg 1%::%loop-block%} to location of loop-block
add 1 to {_savedblocks}
message "{@Prefix} <gray>Arena saved with a total of %{_savedblocks}% blocks saved"
The Hpos are setted here:
code_language.skript:
on rightclick:
player's tool is a golden axe:
set {hpos2::%player%} to location of targeted block
on leftclick:
player's tool is a golden axe:
cancel event
set {hpos1::%player%} to location of targeted block