Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- m = peripheral.wrap("bottom")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Plazter's Mob Control v.1")
- print("Skriv: On eller Off")
- input = read()
- if input == "exit" then
- break
- end
- if input == "on" then
- rednet.broadcast("polle on")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.white)
- m.write("Mobs:")
- m.setCursorPos(4,3)
- m.setTextColor(colors.lime)
- m.write("ON")
- end
- if input == "off" then
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.white)
- m.write("Mobs:")
- m.setCursorPos(4,3)
- m.setTextColor(colors.red)
- m.write("Off")
- rednet.broadcast("polle off")
- end
- if input == "On" then
- rednet.broadcast("polle on")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.white)
- m.write("Mobs:")
- m.setCursorPos(4,3)
- m.setTextColor(colors.lime)
- m.write("ON")
- end
- if input == "Off" then
- m.clear()
- m.setCursorPos(1,1)
- m.setTextColor(colors.white)
- m.write("Mobs:")
- m.setCursorPos(4,3)
- m.setTextColor(colors.red)
- m.write("OFF")
- rednet.broadcast("polle off")
- end
- if input == "movie" then
- shell.run("secret/alongtimeago")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement