Advertisement
CreeperNukeBoom

CC Concrete dust converter

Feb 2nd, 2020
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. --Concrete Buster turtle
  2. --Ensure that turtle is either facing water of dust will be touching water
  3.  
  4. local chest = peripheral.find("minecraft:chest")
  5. local turtleDir="east"  --can also be network address
  6.  
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. print("Concrete Breaker V1.1")
  10. turtle.dig()
  11.  
  12. turtle.select(1)
  13. while true do
  14.   sleep()
  15.   for i = 1,16 do
  16.     turtle.select(i)
  17.     local check = turtle.getItemDetail(i)
  18.     if check then
  19.       if not string.find(check.name,"powder") then
  20.         chest.pullItems(turtleDir,i,64)
  21.       elseif string.find(check.name,"powder") then
  22.         if turtle.place() then
  23.           turtle.dig()
  24.         end
  25.       end
  26.     end
  27.   end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement