Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("left")
- redstone.setOutput("top", true)
- redstone.setOutput("bottom", false)
- g = m.get()
- if (g["Energy Stored"]) then
- print("Cube Startup - Energy Stored")
- redstone.setOutput("top", true)
- redstone.setOutput("bottom", false)
- end
- while true do
- g = m.get()
- if (g["No Energy"]) then
- print("Cube Empty - Engines Online")
- redstone.setOutput("top", false)
- redstone.setOutput("bottom", true)
- end
- if (g["Full Energy"]) then
- print("Cube Full - Engines Offline")
- redstone.setOutput("top", true)
- redstone.setOutput("bottom", false)
- end
- sleep(6)
- end
Advertisement
Add Comment
Please, Sign In to add comment