mouse03f

goldman

Jan 25th, 2025
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function inventory()
  2.     for i = 1,16 do
  3.         if turtle.getItemCount(i) > 0 then
  4.             turtle.select(i)
  5.             details = turtle.getItemDetail(i)
  6.             if details.name == "minecraft:rotten_flesh" then
  7.                 n = turtle.getItemCount(i)
  8.                 turtle.dropDown()
  9.             else
  10.                 turtle.drop()
  11.             end
  12.         end
  13.     end
  14. end
  15.  
  16. print("Now running goldman 2000")
  17. while 1 do
  18.     inventory()
  19.  
  20. end
  21.  
Advertisement
Add Comment
Please, Sign In to add comment