Changed the complete Farmtree Script. Now we're able to chop down a complete lane of trees
This commit is contained in:
		@@ -34,19 +34,4 @@ function selectEmptySlot()
 | 
			
		||||
  return false -- couldn't find empty space
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- getItemFromChest(chestItem) selects
 | 
			
		||||
-- something from a chest in front of the turtle
 | 
			
		||||
-- and pushes it into the turtle.
 | 
			
		||||
function getItemFromChest(chestItem)
 | 
			
		||||
    sapling = peripheral.wrap('front') -- This find the chest at the front and allow you do things to it
 | 
			
		||||
    selectEmptySlot()
 | 
			
		||||
 | 
			
		||||
    for slot, item in pairs(sapling.getAllStacks()) do
 | 
			
		||||
        if item.id == chestItem then
 | 
			
		||||
	    -- If the chest is on the north side of the turtle, the turtle is on the south side of the peripheral
 | 
			
		||||
	    sapling.pushItem('south', slot)
 | 
			
		||||
	end
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user