Hello i was trying to make a bridge practice skript where if you walk on a redstone block on a specific world it give you 576 sandstone blocks and once you reach the gold it clears your blocks and says Finished! to the player . However, when i ran the command it just clears my inventory and says finished when there even if im not near the blocks
command /bridge:
trigger:
if player's world is "bridgepractice":
if blocks in radius 1 of player contains redstone_block:
make console execute command "clear %player%"
make console execute command "give %player% sandstone 576"
if blocks in radius 1 of player contains gold_block:
make console execute command "clear %player%"
send "finished" to player
command /bridge:
trigger:
if player's world is "bridgepractice":
if blocks in radius 1 of player contains redstone_block:
make console execute command "clear %player%"
make console execute command "give %player% sandstone 576"
if blocks in radius 1 of player contains gold_block:
make console execute command "clear %player%"
send "finished" to player