SirSheepe

Untitled

Nov 1st, 2018
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. while true do
  3. local current = turtle.getItemDetail(1)
  4. if current.name == "minecraft:bucket" then
  5. turtle.select(1)
  6. turtle.placeDown()
  7. end
  8. local success
  9. if turtle.getItemDetail(2) then
  10. success = turtle.craft(64)
  11. else
  12. os.pullEvent()
  13. end
  14. for i = 2, 16 do
  15. local item = turtle.getItemDetail(i)
  16. if item and item.name == "appliedenergistics2:part" then
  17. if item.damage == 56 or item.damage == 76 then
  18. turtle.select(i)
  19. turtle.dropUp()
  20. break
  21. end
  22. end
  23. end
  24. end
RAW Paste Data