Im trying to make a crop hopper.
I have this but Im really bad and I just want the hopper to pick up all blocks in the chunk its in
Code:
on place hopper:
if name of player's held item is colored "&d&lChunk Hopper":
add event-block's location to {chunkhoppers::*}
on break hopper:
if {chunkhoppers::*} contains event-block's location:
remove event-block's location from {chunkhoppers::*}
every second:
loop {chunkhoppers::*}:
loop dropped items in radius 16 around loop-value where [chunk of dropped item input = chunk at loop-value]:
if loop-item is wheat item:
add loop-item to loop-variable's inventory
delete loop-item