Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(15,8)
  3.  
  4. print("Hello")
  5. print("Chcete zapnout svetla ?")
  6. print("Napiste Ano : Ne")
  7.  
  8. input = read()
  9.  
  10. yes = "Ano"
  11. no = "Ne"
  12.  
  13. if input == (yes) then
  14. print("Svetla zapnuta!")
  15. redstone.setOutput("back", true )
  16. shell.run("use2")
  17. end
  18.  
  19. if input == (no) then
  20. print("Okey, pockam tady!")
  21. sleep(3)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement