Code:
on place:
if event-block is a composter:
loop all blocks in radius of 5 from event-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 I want to make an auto harvester and on line 3 it says that event-block is not a date. What I want it to do is loop all the blocks in a radius of 5 from event-block