Code:
on place:
loop all blocks:
if loop-block is composter:
loop all blocks in radius of 5 of loop-block:
if loop-block is fully grown wheat plant:
wait 4 seconds
set loop-block to air
loop all blocks in radius of 5 of loop-block:
if loop-block is chest:
add 2 wheat into inventory
if loop-block is fully grown carrot plant:
wait 4 seconds
set loop-block to air
loop all blocks in radius of 5 of loop-block:
if loop-block is chest:
add 2 wheat into inventory
if loop-block is fully grown potato plant:
wait 4 seconds
set loop-block to air
loop all blocks in radius of 5 of loop-block:
if loop-block is chest:
add 2 wheat into inventory
So line 3 says that loop-block is not a location. What I am trying to do is looping all the blocks from the composter to wait 4 seconds set it to air then add 2 [plant] into the chest but it won't work. Any help?