Advertisement
DEv0on

Untitled

Nov 10th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. mon = peripheral.wrap("monitor_93")
  2. mon1 = peripheral.wrap("monitor_94")
  3. sel = peripheral.wrap("openperipheral_selector_5")
  4. sel1 = peripheral.wrap("openperipheral_selector_4")
  5. cont = peripheral.wrap("tilecontroller_1")
  6. mon.clear()
  7. mon1.clear()
  8.  
  9. while true do
  10. sleep(0.3)
  11. itemsInAE = cont.getAvailableItems()
  12. for k,v in pairs(itemsInAE) do
  13. if v.fingerprint.id=="minecraft:iron_ingot" then
  14. mon1.setCursorPos(2,3)
  15. mon1.write(v.size.." ")
  16. sel1.setSlot(1,{id=v.fingerprint.id,dmg=v.fingerprint.dmg})
  17. elseif v.fingerprint.id=="hexcraft:itemHexoriumCrystalBlack" then
  18. mon.setCursorPos(3,3)
  19. mon.write(v.size.." ")
  20. sel.setSlot(1,{id=v.fingerprint.id,dmg=v.fingerprint.dmg})
  21. end
  22.  
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement