Advertisement
colhaydutu

atm9 wither turtle

Jan 26th, 2024 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. while true do
  2.  
  3. for slot = 1, 16 do
  4. local itemDetail = turtle.getItemDetail(slot)
  5. if itemDetail and itemDetail.name == "minecraft:soul_sand" then
  6. turtle.select(slot)
  7. turtle.place() -- 1 place
  8. sleep(0.5)
  9. turtle.up()
  10. sleep(0.5)
  11. turtle.place() -- 2 place
  12. sleep(0.5)
  13. turtle.turnRight()
  14. sleep(0.5)
  15. turtle.forward()
  16. sleep(0.5)
  17. turtle.turnLeft()
  18. sleep(0.5)
  19. turtle.place() -- 3 place
  20. sleep(0.5)
  21. turtle.turnLeft()
  22. sleep(0.5)
  23. turtle.forward()
  24. sleep(0.5)
  25. turtle.forward()
  26. sleep(0.5)
  27. turtle.turnRight()
  28. sleep(0.5)
  29. turtle.place()
  30. sleep(0.5)
  31. turtle.up()
  32. break
  33. end
  34. end
  35.  
  36. for slot = 1, 16 do
  37. local itemDetail = turtle.getItemDetail(slot)
  38. if itemDetail and itemDetail.name == "minecraft:wither_skeleton_skull" then
  39. turtle.select(slot)
  40. turtle.place() -- 1 place
  41. sleep(0.5)
  42. turtle.turnRight()
  43. sleep(0.5)
  44. turtle.forward()
  45. sleep(0.5)
  46. turtle.turnLeft()
  47. sleep(0.5)
  48. turtle.place() -- 2 place
  49. sleep(0.5)
  50. turtle.turnRight()
  51. sleep(0.5)
  52. turtle.forward()
  53. sleep(0.5)
  54. turtle.turnLeft()
  55. sleep(0.5)
  56. turtle.place() -- 3 place
  57.  
  58. break
  59. end
  60. end
  61.  
  62. turtle.down()
  63. sleep(0.5)
  64. turtle.down()
  65. sleep(0.5)
  66. turtle.down()
  67. sleep(0.5)
  68. turtle.turnLeft()
  69. sleep(0.5)
  70. turtle.forward()
  71. sleep(0.5)
  72. turtle.turnRight()
  73.  
  74. sleep(15)
  75. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement