poke5555

Untitled

Jul 20th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. while true do
  2.  
  3. local InSlots = { 1 }
  4. local b = false
  5. local bm = false
  6. local bc = false
  7.  
  8. turtle.select(1)
  9.  
  10. for k, v in pairs(InSlots) do
  11. local data = turtle.getItemDetail(v)
  12. if data then
  13. if data.name == "minecraft:bone" and data.count== 64 then
  14. b = true
  15. elseif data.name == "minecraft:bone_meal" then
  16. bm = true
  17. end
  18. end
  19.  
  20.  
  21. turtle.select(1)
  22. if b then
  23. turtle.craft(64)
  24. redstone.setOutput("top", true)
  25. sleep(1)
  26. redstone.setOutput("top", false)
  27. break
  28.  
  29. elseif bm then
  30. redstone.setOutput("top", true)
  31. sleep(1)
  32. redstone.setOutput("top", false)
  33. sleep(1)
  34. break
  35.  
  36. else
  37. turtle.suck()
  38. turtle.select(2)
  39. turtle.drop()
  40. turtle.select(1)
  41. break
  42.  
  43. end
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment