Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cap = peripheral.wrap("back")
- function control()
- energy = cap.getEnergyStored()
- energyComp = energy * 64
- print("Energy Level:")
- print(energyComp)
- if energyComp > 1500000000 then
- redstone.setOutput("right", false)
- redstone.setOutput("left", false)
- else if energy > 10000000 then
- redstone.setOutput("right", true)
- redstone.setOutput("left", true)
- end
- end
- end
- while true do
- control()
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement