Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local term = require("term")
- local a = {}
- local i = 1
- local lowEnergy = 1
- local highEnergy = 90000000
- a[1] = component.proxy("1e041384-fc3c-42f4-8bdf-a53739a3a4d4")
- a[2] = component.proxy("43997808-4b78-4d3b-825f-a9a89ecec434")
- a[3] = component.proxy("957dc433-bf68-4bdf-b838-1b6b12b2f687")
- a[4] = component.proxy("78af7b61-905a-4232-8faa-6fa7b730d313")
- a[5] = component.proxy("cab188aa-11f5-431c-a2ab-998056e95a83")
- for i = 1, 5 do
- print(a[i])
- end
- function status()
- local x = "true"
- if a[i].getActive() == true then
- x = true
- end
- if a[i].getActive() == false then
- x = false
- end
- end
- for j = 1, 5 do
- a[j].setActive(true)
- end
- while i < 5 do
- if a[i].getEnergyStored() < lowEnergy then
- a[i].setActive (true)
- end
- if a[i].getEnergyStored() > highEnergy then
- a[i].setActive (false)
- end
- print ("reactor Status: " .. status() )
- print ("Reactor Energy: " .. a[i].getEnergyStored() )
- print ("Reactor Case Temp: " .. a[i].getCastingTemperature() )
- print ("Reactor Fuel Level: " .. a[i].getFuelAmount() )
- os.sleep(2)
- term.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement