Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inv = {}
- local function insertInv(...)
- local tempTable = {...}
- for a,b in pairs(tempTable) do
- table.insert(inv, b)
- end
- end
- insertInv(2,3,3,2,2,3,2)
- insertInv(3,1,1,3,3,1,3)
- insertInv(2,3,3,2,3,1,3)
- insertInv(2,3,3,2,2,3,2)
- insertInv(3,1,1,3,2,3,2)
- insertInv(2,3,3,2,3,1,3)
- local fre = {[1] = 273, [2] = 547, [3] = 1092}
- local returnFre = 0
- local ins = {[1] = false, [2] = true, [3] = true}
- local nukeDir, turtleDir = "north", "south"
- local chain = true
- local mox = true
- local maxheat = 9900
- while turtle.detect() do
- local nuke = peripheral.wrap("front")
- turtle.select(1)
- turtle.placeUp()
- local ender = peripheral.wrap("top")
- local heat = nuke.getHeat()
- if mox and heat < maxheat then
- ender.setFrequency(returnFre)
- for num=1,nuke.getInventorySize() do
- nuke.condenseItems()
- if tostring(nuke.getStackInSlot(1)) ~= "nil" then
- local notEmpty = 0
- while notEmpty == 0 do
- nuke.condenseItems()
- notEmpty = nuke.pushItemIntoSlot(nukeDir, 1, 1, 16)
- end
- local y = 0
- while y == 0 do
- ender.condenseItems()
- y = ender.pullItemIntoSlot("down", 16, 1, ender.getInventorySize())
- end
- end
- end
- nuke.pullItemIntoSlot(nukeDir, 2, 1, 1)
- while heat < maxheat do
- heat = nuke.getHeat()
- term.clear()
- term.setCursorPos(1,1)
- print("heating: "..heat)
- redstone.setOutput("front", true)
- os.queueEvent("heat")
- os.pullEvent()
- end
- redstone.setOutput("front", false)
- nuke.pushItemIntoSlot(nukeDir, 1, 1, 2)
- end
- for a,b in pairs(inv) do
- local h = nuke.getStackInSlot(a)
- if ins[b] and tostring(h) == "nil" then
- local x = 0
- while x == 0 do
- ender.setFrequency(fre[b])
- ender.condenseItems()
- x = ender.pushItemIntoSlot("down", 1, 1, 1)
- end
- local detail = turtle.getItemDetail()
- print(detail["name"])
- local y = 0
- while y == 0 do
- y = nuke.pullItemIntoSlot(nukeDir, 1, 1, a)
- end
- else
- if tostring(h) ~= "nil" then print(h["name"]) else print("space") end
- end
- end
- turtle.digUp()
- if chain then
- turtle.up()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment