666WTF666

test bomb

Nov 14th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. d = 237
  2. local tArgs = { ... }
  3. if #tArgs ~= 1 then
  4. print("Usage: tnt <number>")
  5. return
  6. end
  7. term.clear()
  8. x, y = term.getSize()
  9. term.setCursorPos(x/2-19/2, y/2)
  10. print("Waiting To Start...")
  11. rednet.open("left")
  12. rednet.open("right")
  13. --act, msg = os.pullEvent("rednet_message")
  14. --if msg == "tnt" then
  15. for i = 0, 10 do
  16. turtle.up()
  17. sleep(0.5)
  18. end
  19. rs.setOutput("bottom", true)
  20. term.clear()
  21. term.setCursorPos(x/2-6, y/2)
  22. print("Operating...")
  23. for i = 0, tArgs[1] - 1 do
  24. turtle.placeDown()
  25. sleep(0.5)
  26. turtle.forward()
  27. sleep(0.5)
  28. turtle.forward()
  29. d = d + 1
  30. end
  31. for i = 0, 10 do
  32. turtle.forward()
  33. sleep(0.5)
  34. end
  35. while not turtle.detectDown() do
  36. turtle.down()
  37. end
  38. term.clear()
  39. term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment