Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gen = peripheral.wrap("front")
- bat = peripheral.wrap("ic2:batbox_1")
- mac = peripheral.wrap("ic2:macerator_1")
- fur = peripheral.wrap("ic2:electric_furnace_0")
- maxEU = bat.getEUCapacity()
- monitor = peripheral.wrap("monitor_1")
- monitor.setTextScale(0.5)
- while true do
- --[[ if bat.getEUStored() == maxEU then
- gen.pushItems("up", 2)
- elseif bat.getEUStored() < (maxEU / 4) then
- gen.pullItems("up", 1)
- end]]
- if mac.getItemMeta(2) ~= nil then
- if mac.getItemMeta(2).count >= 1 then
- mac.pushItems("east", 2)
- end
- end
- if fur.getItemMeta(2) ~= nil then
- if fur.getItemMeta(2).count >= 1 then
- fur.pushItems("east", 2)
- end
- end
- term.redirect(monitor)
- term.clear()
- term.setCursorPos(1,1)
- print("Energy Stored: "..bat.getEUStored().." EU")
- if mac.getItemMeta(7) ~= nil then
- print("Currently macerating: "..mac.getItemMeta(7).displayName)
- else
- print("Not currently macerating.")
- end
- if fur.getItemMeta(7) ~= nil then
- print("Currently smelting: "..fur.getItemMeta(7).displayName)
- else
- print("Not currently smelting.")
- end
- term.native()
- sleep(10)
- end
Add Comment
Please, Sign In to add comment