DiaManD

WitherSpawn

Aug 23rd, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. t=turtle
  2. rs=redstone
  3. function check1()
  4. if t.getItemCount(1) < 4 do
  5. t.write("Put SoulSand in slot 1")
  6. end
  7. function check2()
  8. if t.getItemCount(2) < 3 do
  9. t.write("Put your skull in slot 2")
  10. end
  11. function check3()
  12. if t.getItemCount(3) < 64 do
  13. t.write("Put coal in slot 3")
  14. function refuel1()
  15. if t.getFuelLevel() < 50 do
  16. t.select(3)
  17. t.refuel(20)
  18. end
  19. function wither()
  20. if rs.getInput("right",true) do
  21. t.write("ATTENTION!Do not start turtle while server going to restart!")
  22. t.digDown()
  23. t.down()
  24. t.down()
  25. t.turnLeft()
  26. t.select(2)
  27. t.place()
  28. t.down()
  29. t.select(1)
  30. t.place()
  31. t.placeDown()
  32. t.turnRight()
  33. t.turnRight()
  34. t.place()
  35. t.up()
  36. t.placeDown()
  37. t.select(2)
  38. t.place()
  39. t.turnLeft()
  40. t.up()
  41. t.placeDown()
  42. t.select(4)
  43. t.up()
  44. t.placeDown()
  45. end
  46. while true do
  47. check1()
  48. check2()
  49. check3()
  50. refuel1()
  51. wither()
  52. t.sleep(180)
  53. end
Advertisement
Add Comment
Please, Sign In to add comment