Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Stocks a Forestry for Minecraft Squeezer with Phosphor and Cobblestone.
- -- Cobblestone container in front of turtle.
- -- Phosphor container below turtle.
- -- Squeezer behind turtle.
- local direction = "east" -- Turtle's location relative to squeezer.
- local squeezer = peripheral.wrap("back")
- turtle.select(1)
- while true do
- for i = 1, 9 do
- local stack = squeezer.getStackInSlot(i)
- local amount = 64 - (stack and (stack.qty) or 0)
- if amount > 0 then
- turtle[i > 6 and "suck" or "suckDown"](amount - turtle.getItemCount(1))
- local got = turtle.getItemCount(1)
- if got > 0 then squeezer.pullItemIntoSlot(direction, 1, got, i) end
- end
- end
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement