Advertisement
osmarks

AutoPlacer

Sep 21st, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local function find_slot()
  2.     for i = 1, 16 do
  3.         if turtle.getItemCount(i) > 0 then
  4.             turtle.select(i)
  5.             return
  6.         end
  7.     end
  8. end
  9.  
  10. while true do
  11.     repeat sleep(0.1) until not turtle.detect()
  12.     find_slot()
  13.     turtle.place()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement