Advertisement
Cardwell

SpawnerController V1

May 21st, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. --Alle variabler
  2. local Spawner_ZombieP = "1"
  3. local Spawner_Ghast = "2"
  4. local Spawner_ub = "3"
  5. local Spawner_ub2 = "4"
  6.  
  7. rednet.open("back")
  8.  
  9.  
  10. while true do
  11. term.clear()
  12. term.setCursorPos(1,1)
  13. print("Programmer:")
  14. print("1. Skru av/på Zombie Piglin spawner")
  15. print("2. Skru av/på Ghast spawner")
  16. print("3. Ikke i bruk")
  17. print("4. Ikke i bruk")
  18. term.setCursorPos(1,7)
  19. write("Kjør program:")
  20.  
  21. input = read()
  22.  
  23. if input == 1 then
  24. term.clear
  25. term.setCursorPos(1,1)
  26. print("Toggled Zombie Piglin spawner")
  27. rednet.broadcast("Spawner_ZombiePToggle")
  28. sleep(2)
  29. end
  30. if input == 2 then
  31. term.clear
  32. term.setCursorPos(1,1)
  33. print("Toggled Ghast spawner")
  34. rednet.broadcast("Spawner_GhastToggle")
  35. sleep(2)
  36. end
  37.  
  38. if input == 3 then
  39. term.clear
  40. term.setCursorPos(1,1)
  41. print("Ikke i bruk!")
  42. rednet.broadcast("")
  43. sleep(2)
  44. end
  45.  
  46. if input == 4 then
  47. term.clear
  48. term.setCursorPos(1,1)
  49. print("Ikke i bruk!")
  50. rednet.broadcast("")
  51. sleep(2)
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement