Heres one of mine for my unfinished factory.
Code
print("Welcome to the factory")
sleep(1)
print("Please make your selection")
sleep(1)
print("****************************")
print("* 1.Cobble stone generator *")
print("* 2. Flax farm *")
print("* 3. Ice generator *")
print("****************************")
input = read()
if input == "1" then
print("Cobble generator on/off?")
input = read()
if input == "on" then
redstone.setBundledOutput("bottom", "16", true)
sleep(1)
print("Cobble generator running")
elseif input == "off" then
redstone.setBundledOutput("bottom", "16", false)
sleep(1)
print("Cobble generator shut down")
end
elseif input == "2" then
print("Please wait while the farm cycles")
sleep(2)
redstone.setBundledOutput("bottom", "32768", true)
sleep(2)
redstone.setBundledOutput("bottom", "32768", false)
print("String and seeds on the way")
print("Check chest to your right")
sleep(2)
print("Replanting new flax, please wait")
sleep(2)
redstone.setBundledOutput("bottom", "2048", true)
sleep(2)
redstone.setBundledOutput("bottom", "2048", false)
print("Flax replanted")
elseif input == "3" then
print("Ice generator on/off?")
input = read()
if input == "on" then
redstone.setBundledOutput("bottom", "1024", true)
print("Pumps running")
elseif input == "off" then
redstone.setBundledOutput("bottom", "1024", false)
print("Pumps shut down")
end
end
Display More
Mine is messy as well, but eh, order out of chaos. I also plan on using it for my forestry section. This code will HAVE to be cleaned up once it's done. I think I am going to make this the base program eventually and make it call other programs depending on which section of the factory I want to work with.
Edit: Program is very unfinished as well.