Advertisement
thatparadox

ME Autocraft

Sep 5th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. rednet.open("back")
  2. me = peripheral.wrap("bottom")
  3.  
  4. while true do
  5. items = me.listItems()
  6. electrum = false
  7. for id, quant in pairs(items) do
  8.  if id == 2300722 then
  9.    electrum = true
  10.    eAmount = quant
  11.    print("electrum: "..eAmount)
  12.  elseif id == 2333490 then
  13.    invar == true
  14.    iAmount = quant
  15.    print("Invar: "..iAmount)
  16.  end
  17. end
  18. if invar == false or iAmount < 65 then
  19.      rednet.broadcast("smelt")
  20.      me.retrieve(265, 3, 3)
  21.      os.sleep(10)
  22.      me.craft(1284914, 1)
  23.      rednet.broadcast("smelt")
  24.      print("crafting Electrum")
  25. end
  26. if electrum == false or eAmount < 65 then
  27.      rednet.broadcast("smelt")
  28.      me.retrieve(266, 1, 3)
  29.      os.sleep(3.5)
  30.      me.retrieve(2169650, 1, 3)
  31.      os.sleep(4)
  32.      me.craft(1252146, 1)
  33.      rednet.broadcast("smelt")
  34.      print("crafting Invar")
  35. end
  36.  os.sleep(0.1)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement