I decided to go for a warning system that uses the redstone signal produced from the tornado sensor (part of the tornado mod) and when the computer picks up this signal it says that a tornado warning has been put in place and tells you what Minecraft time it was spotted at, then it tells you a safe place to take cover.
It is great for Role playing games on MC or use it in a mass tornado survival so people in the server have this utility on their
computers.
You must place the tornado sensor on the back of the computer, otherwise you will have to change the code where it gets all the redstone inputs from.
print("Tornado Warning System")
print("Starting up...")
sleep(1)
print("Loading Sensor")
sleep(1)
print("Tornado Warning System is Active")
shell.run('clear')
repeat
redstone.getInput ('back')
print("No tornado warnings in this area")
sleep(0.5)
shell.run('clear')
until redstone.getInput ('back',true)
shell.run('clear')
print("A TORNADO WARNING HAS BEEN PUT IN PLACE")
sleep(1)
local time = os.time()
local formattedTime = textutils.formatTime(time, false)
print("AT" .. formattedTime) print("A TORNADO WARNING WAS PUT IN PLACE")
sleep(1)
print("ALL RESIDENTS SHOULD TAKE COVER")
sleep(1)
print("TAKE COVER IN A TORNADO SHELTER")
sleep(1)
print("IF NO SHELTER IS AVAILABLE")
print("TAKE COVER IN A CENTRAL ROOM IN A HOUSE")
print("THIS ROOM SHOULD BE ON THE LOWER FLOOR OF THE HOUSE")












