Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(peripheral.isPresent("front")) then
- print("Front side exists.")
- chest = peripheral.wrap("front")
- print("Chest connected to front")
- end
- while true do
- items = chest.list()
- if (#items ~= 0) then
- -- Is this the finished item?
- if (items[1].name == "phonos:redstone_chip") then
- -- Get items from chest
- turtle.suck()
- -- Deposit item in finished chest
- turtle.dropUp()
- else
- -- Get items from chest
- turtle.suck()
- -- Face the drop chest
- turtle.turnRight()
- -- Drop off items
- turtle.drop()
- -- reset turtle position
- turtle.turnLeft()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement