Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- local reactor = peripheral.wrap("back")
- while true do
- local a = reactor.getCasingTemperature()
- local b = reactor.getActive()
- local c = reactor.getEnergyProducedLastTick()
- local d = reactor.getEnergyStored()
- if b == true then
- b2 = "on"
- elseif b == false then
- b2 = "off"
- end
- local b2 = "Reactor Status: " .. b2
- local a2 = "Temperature: " .. tostring(a)
- local c2 = "RF Output: " .. tostring(c)
- local d2 = "Stored Energy: " .. tostring(d)
- local donnees = { b2, c2, d2, a2}
- local encode = textutils.serialise(donnees)
- -- rednet.send(12, encode)
- rednet.broadcast(encode)
- print(encode)
- os.sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement