DustinRosebery

mainArena Program

Aug 27th, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. rednet.open("right")
  2. w = peripheral.wrap("left")
  3.  
  4. local function forward(x)
  5. for i = 1, x do
  6. turtle.forward()
  7. end
  8. end
  9.  
  10. local function up(x)
  11. for i = 1, x do
  12. turtle.up()
  13. end
  14. end
  15.  
  16. right = turtle.turnRight()
  17. left = turtle.turnLeft()
  18.  
  19. local function buildWither()
  20. up(4)
  21. forward(2)
  22. turtle.select(1)
  23. turtle.place()
  24. right
  25. forward(1)
  26. left
  27. turtle.place()
  28. right
  29. forward(1)
  30. left
  31. turtle.place()
  32. turtle.down()
  33. turtle.select(2)
  34. turtle.place
  35. left
  36. forward(1)
  37. right
  38. turtle.place()
  39. left
  40. forward(1)
  41. right
  42. turtle.place()
  43. turtle.down()
  44. right
  45. forward(1)
  46. turtle.place
  47. rednet.broadcast("oneWitherBuilt")
  48. end
  49.  
  50. -- put stuff here to make him wait for the nether star
  51.  
  52.  
  53. while true do
  54. local event id, msg = rednet.receive()
  55. if msg == "blastProtOn" then
  56. buildWither()
  57. end
  58. break
  59. end
  60.  
  61. -- and put what he does with the nether star here
Advertisement
Add Comment
Please, Sign In to add comment