Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("right", false)
- while true do
- t = peripheral.wrap("back")
- e = t.getEnergyStored()
- print("Energy: ", e)
- if e < 50000 then
- redstone.setOutput("right", true)
- os.sleep(1)
- redstone.setOutput("right", false)
- os.sleep(60)
- end
- if e > 990000 then
- redstone.setOutput("right", true)
- os.sleep(1)
- redstone.setOutput("right", false)
- os.sleep(60)
- end
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement