Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Alle variabler
- local Spawner_ZombieP = "1"
- local Spawner_Ghast = "2"
- local Spawner_ub = "3"
- local Spawner_ub2 = "4"
- rednet.open("back")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Programmer:")
- print("1. Skru av/på Zombie Piglin spawner")
- print("2. Skru av/på Ghast spawner")
- print("3. Ikke i bruk")
- print("4. Ikke i bruk")
- term.setCursorPos(1,7)
- write("Kjør program:")
- input = read()
- if input == 1 then
- term.clear
- term.setCursorPos(1,1)
- print("Toggled Zombie Piglin spawner")
- rednet.broadcast("Spawner_ZombiePToggle")
- sleep(2)
- end
- if input == 2 then
- term.clear
- term.setCursorPos(1,1)
- print("Toggled Ghast spawner")
- rednet.broadcast("Spawner_GhastToggle")
- sleep(2)
- end
- if input == 3 then
- term.clear
- term.setCursorPos(1,1)
- print("Ikke i bruk!")
- rednet.broadcast("")
- sleep(2)
- end
- if input == 4 then
- term.clear
- term.setCursorPos(1,1)
- print("Ikke i bruk!")
- rednet.broadcast("")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement