Skip to content

Instantly share code, notes, and snippets.

View cjsturgess's full-sized avatar
🥽
building things!

CJ Sturgess cjsturgess

🥽
building things!
View GitHub Profile
@cjsturgess
cjsturgess / reactor.lua
Created March 24, 2023 22:55 — 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
}
local MIN_BURN_RATE = 1.0