Advertisement
Guest User

new

a guest
Feb 13th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local q = 0
  2.  
  3.  
  4. function Redstone()
  5. while q > 0 do
  6. mon.setTextScale(2)
  7. mon.setCursorPos(1,1)
  8. mon.write("da machien is bezig")
  9. mon.setCursorPos(1,2)
  10. mon.write("doe ruustig")
  11. redstone.setOutput("left", false)
  12. sleep(0.5)
  13. redstone.setOutput("left", true)
  14. sleep(0.5)
  15. q = q-1
  16. end
  17. end
  18. mon = peripheral.wrap("top")
  19. while true do
  20. while q==0 do
  21.  
  22. mon.setTextScale(2)
  23. mon.setCursorPos(1,1)
  24. mon.clear()
  25. sleep(0.2)
  26. mon.write("kut joeng")
  27. sleep(0.5)
  28.  
  29. mon.setCursorPos(1,2)
  30. mon.setTextScale(2)
  31. mon.write("Hoeveel gvd kut joeng")
  32. redstone.setOutput("left", true)
  33. q = io.read()
  34. q = tonumber(q)
  35.   if q < 0 then
  36.   mon.write(" negatief aantal zijt gij loemp ofwa?")
  37.   end
  38. end
  39.    
  40.  
  41. mon.clear()
  42.  
  43.  Redstone()
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement