Advertisement
Win4Win

inventory turtle

Sep 19th, 2023 (edited)
996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. block_name = "witchery:witches_oven"
  2. module = peripheral.wrap("right")
  3.  
  4. while true do
  5.     turtle.dig()
  6.     for slot, meta in pairs(module.getInventory().list()) do
  7.         if (meta.name == block_name) then
  8.             turtle.select(slot)
  9.             turtle.place()
  10.         end
  11.     end
  12.     sleep(180)
  13. end        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement