Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- local lamp = "back"
- local canningMachineInventory = "right"
- redstone.setOutput("right", false)
- redstone.setOutput("back", false)
- while true do
- for i=2,16 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- turtle.transferTo(1, 64)
- turtle.select(1)
- end
- end
- if turtle.getItemCount(1) > 3 then
- turtle.dropUp(4)
- redstone.setOutput(canningMachineInventory, true)
- for i=1,4 do
- redstone.setOutput(lamp, true)
- sleep(0.2)
- redstone.setOutput(lamp, false)
- sleep(0.3)
- end
- redstone.setOutput(lamp, true)
- sleep(8)
- redstone.setOutput(canningMachineInventory, false)
- redstone.setOutput(lamp, false)
- sleep(4)
- else
- if turtle.getItemCount(1) > 0 then
- local count = turtle.getItemCount(1)
- for i=1,count do
- redstone.setOutput(lamp, true)
- sleep(0.2)
- redstone.setOutput(lamp, false)
- sleep(0.3)
- end
- sleep(2.5)
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement