Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Deux MFSU de chaque coté du computer avec chaque MFSU relier a plusieurs Geothermal --
- -- Le front du computer relier a deux splitter en amont de chaque MFSU --
- while true do
- event = os.pullEvent("redstone")
- if redstone.getInput("right") or redstone.getInput("left") then
- redstone.setOutput("front",false)
- term.clear()
- term.setCursorPos(1,1)
- term.write("Entre 50% et 100% disponible")
- term.write("Geothermal en attente")
- end
- if redstone.getInput("left") and redstone.getInput("right") then
- redstone.setOutput("front",true)
- term.clear()
- term.setCursorPos(1,1)
- term.write("Moins de 50% disponible")
- term.write("Geothermal actif")
- end
- if redstone.getInput("right") == false and redstone.getInput("left") == false then
- redstone.setOutput("front",false)
- term.clear()
- term.setCursorPos(1,1)
- term.write("100% disponible")
- term.write("Geothermal en attente")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement