Advertisement
colhaydutu

steampunk hyper experience turtle

Apr 19th, 2024 (edited)
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local item1 = "minecraft:glow_ink_sac"
  2. local item2 = "minecraft:lapis_lazuli"
  3. local item3 = "minecraft:air"
  4.  
  5. while true do
  6. sleep(3)
  7. local foundItemToDrop = false
  8. for slot = 1, 16 do
  9. local itemDetail = turtle.getItemDetail(slot)
  10. if itemDetail and itemDetail.name ~= item1 then
  11. turtle.select(slot)
  12. turtle.drop(5)
  13. foundItemToDrop = true
  14. else if itemDetail and itemDetail.name ~= item2 then
  15. turtle.select(slot)
  16. turtle.drop(5)
  17. foundItemToDrop = true
  18. end
  19. end
  20.  
  21. if not foundItemToDrop then
  22. print("No items left to drop.")
  23. sleep(3)
  24. end
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement