Code:
command /generators:
trigger:
open virtual chest with size 3 named "&9Generator Shop" to player
wait 1 tick
format gui slot 10 of player with orange concrete named "&6&lCarrot Generator" with lore "&eTier: 1" and "&ePer 1 Item: 1$" and "&c750$" to run:
if {m::%player%} >= 750:
give player orange concrete named "&6&lCarrot Generator" with lore "&eTier: 1" and "&ePer 1 Item: 1$"
send "&aPurchase successful!"
if {m::%player%} < 750:
send "&cPurchase declined."
command /ecogive <integer>:
trigger:
add arg to {m::%player%}
every 9 seconds in world "world":
loop all blocks:
if loop-block is orange concrete:
drop 1 carrot at location at loop-block
I need to make it so it drops the carrot at location of the loop-block (The generator) every 9 seconds and it says "loop-block is not a location." I've searched the docs and over Google. Any help?