Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Reactor Control 1.0
- reactor=peripheral.wrap("back")
- while true do
- steamStats=reactor.getHotFluidStats()
- steamLevel=steamStats.fluidAmount / steamStats.fluidCapacity
- reactor.setAllControlRodLevels(steamLevel*100)
- term.clear()
- term.setCursorPos(1,1)
- print("Steam Amount: "..steamStats.fluidAmount)
- print("Steam Capacity: "..steamStats.fluidCapacity)
- print("Steam Production: "..(steamStats.fluidProducedLastTick*20))
- print("Rod Insertion: "..(steamLevel*100))
- os.sleep(0.1)
- end
Add Comment
Please, Sign In to add comment