Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FTB Blockify
- -- Made by Xmarks
- -- https://www.youtube.com/channel/UCA6oAnFqdDcc0sa6H8G5DSA
- -- Program makes blocks out of Ingots
- -- ***************************************
- -- * Ingots are taken from above chest *
- -- * Blocks are stored into front chest *
- -- * Excess is dropped back to top chest *
- -- ***************************************
- local function blockify()
- for i = 1, 3 do
- turtle.select(i)
- while (turtle.getItemCount(i) < 64) do
- turtle.suckUp(1)
- end
- end
- for i = 5, 7 do
- turtle.select(i)
- while (turtle.getItemCount(i) < 64) do
- turtle.suckUp(1)
- end
- end
- for i = 9, 11 do
- turtle.select(i)
- while (turtle.getItemCount(i) < 64) do
- turtle.suckUp(1)
- end
- end
- end
- local function cleanInventory()
- turtle.select(4)
- turtle.dropUp()
- turtle.select(8)
- turtle.dropUp()
- turtle.select(12)
- turtle.dropUp()
- for i = 13, 16 do
- turtle.dropUp()
- end
- end
- while true do
- blockify()
- cleanInventory()
- turtle.select(16)
- turtle.craft()
- turtle.drop()
- end
Add Comment
Please, Sign In to add comment