farmer drop items into chest

This commit is contained in:
kepler155c
2018-10-16 22:18:15 -04:00
parent b4f7e3a69c
commit d4296d2b8b

View File

@@ -56,9 +56,9 @@ end
local function harvest(blocks)
turtle.equip('right', 'minecraft:diamond_pickaxe')
turtle.setPoint({ x = 0, y = 0, z = 0, heading = turtle.point.heading })
turtle.select(1)
Point.eachClosest(turtle.point, blocks, function(b)
turtle.select(1)
if b.name == 'minecraft:reeds' then
turtle._goto(b)
elseif b.name == 'minecraft:chest' then