Skip to content

Instantly share code, notes, and snippets.

@maxihafer
maxihafer / reactor.lua
Last active July 23, 2023 09:48 — forked from InternetUnexplorer/reactor.lua
ComputerCraft program to control a Mekanism fission reactor
local state, data, reactor, turbine, info_window, rules_window
local STATES = {
READY = 1, -- Reactor is off and can be started with the lever
RUNNING = 2, -- Reactor is running and all rules are met
ESTOP = 3, -- Reactor is stopped due to rule(s) being violated
UNKNOWN = 4, -- Reactor or turbine peripherals are missing
}
------------------------------------------------