Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface = peripheral.wrap("front")
- furnace = peripheral.wrap("right")
- chest = peripheral.wrap("bottom")
- os.startTimer(2)
- while true do
- os.pullEvent("timer")
- local alumentum = furnace.getStackInSlot(2)
- if alumentum == nil or alumentum.qty < 31 then
- print("getting Alumentum")
- interface.pushItem("south", 9)
- chest.pullItem("up", 1)
- end
- local rsInput = rs.getBundledInput("left")
- local item = furnace.getStackInSlot(1)
- if colors.test(rsInput, colors.red)
- and (
- item == nil
- or (
- (
- item.ore_dict.blockAluminum == true
- or item.ore_dict.blockAluminium == true
- )
- and item.max_size > (item.qty + 5)
- )
- )
- then
- print("burning Aluminium")
- interface.pushItem("south", 1)
- furnace.pullItem("west", 1)
- os.startTimer(200)
- elseif (
- colors.test(rsInput, colors.yellow)
- or colors.test(rsInput, colors.blue)
- ) and (
- item == nil
- or (
- item.ore_dict.cropSugarcane == true
- and item.max_size > (item.qty + 5)
- )
- )
- then
- print("burning sugarcane")
- interface.pushItem("south", 2)
- furnace.pullItem("west", 1)
- os.startTimer(6)
- elseif
- colors.test(rsInput, colors.white)
- and (
- item == nil
- or (
- item.ore_dict.ingotLead == true
- and item.max_size > (item.qty + 5)
- )
- )
- then
- print("burning lead ingots")
- interface.pushItem("south", 3)
- furnace.pullItem("west", 1)
- os.startTimer(8)
- elseif (
- colors.test(rsInput, colors.black)
- or colors.test(rsInput, colors.green)
- ) and (
- item == nil
- or (
- item.ore_dict.cobblestone == true
- and item.max_size > (item.qty + 5)
- )
- )
- then
- print("burning cobblestone")
- interface.pushItem("south", 4)
- furnace.pullItem("west", 1)
- os.startTimer(4)
- elseif colors.test(rsInput, colors.lightBlue)
- and (
- item == nil
- or (
- item.raw_name == "item.appliedenergistics2.itemmaterial.certusquartzcrystalcharged"
- and item.max_size > (item.qty + 5)
- )
- )
- then
- print("burning Charged Certus Quartz")
- interface.pushItem("south", 5)
- furnace.pullItem("west", 1)
- os.startTimer(15)
- else
- print("nothing to do ... sleep a minute")
- os.startTimer(60)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement