Advertisement
Gallent

Untitled

Mar 15th, 2025 (edited)
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local chest = peripheral.find("ars_nouveau:archwood_chest")
  2. local imbuer = peripheral.find("ars_nouveau:imbuement_chamber")
  3. local finished = false
  4.  
  5. while not finished do
  6. if imbuer.getItemDetail(1) ~= nil and imbuer.getItemDetail(1).name ~= "ars_nouveau:source_gem" then
  7. imbuer.pushItems(peripheral.getName(chest),1)
  8. end
  9.  
  10. for k,v in pairs(chest.list()) do
  11. if v.name == "ars_nouveau:source_gem" then
  12. chest.pushItems(peripheral.getName(imbuer),1)
  13. end
  14. end
  15.  
  16. if imbuer.getItemDetail(1)==nil then finished = true end
  17.  
  18. end
  19.  
  20. for k,_ in pairs(chest.list()) do chest.pushItems(peripheral.getName(chest),k) end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement