I have posted this multiple times and nobody has been able to solve it. I am trying to make a crop harvester skript but when I set the composter (the block that is going to be used for the harvester) variable for the location because if I don't do that, other errors pop-up but this is my code:
It's pretty simple but once I figure out that problem, I will add more to it. (I posted this for the first time in like Midish March)
Code:
every 2 seconds in world "world":
loop all blocks:
if loop-block-1 is a composter:
set {autoharvcomp} to location of loop-block-1
loop all blocks in radius 5 around {autoharvcomp}:
if loop-block-2 is fully grown wheat plant:
set block at loop-block-2 to freshly planted wheat plant
loop all blocks in radius 5 around {autoharvcomp}:
if loop-block-3 is chest:
set {autoharvchest} to block at loop-block-3
add 2 wheat to {autoharvchest}'s inventory
if loop-block-3 is hopper:
set {autoharvchest} to block at loop-block-3
add 2 wheat to {autoharvchest}'s inventory
exit loop
It's pretty simple but once I figure out that problem, I will add more to it. (I posted this for the first time in like Midish March)