Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- cel = peripheral.wrap("left")
- while true do
- mon.setTextScale(2)
- energy = cel.getEnergyStored("left")
- if cel.getEnergyStored("left") < 10000000 then
- rs.setOutput("back", true)
- mon.setTextColor(colors.red)
- mon.write("LOW ENERGY")
- mon.setCursorPos(1,2)
- mon.write("RF:" ..energy)
- mon.setCursorPos(1,4)
- mon.setTextColor(colors.yellow)
- mon.write("SPAWNING WITHER")
- sleep(5)
- else
- rs.setOutput("back", false)
- mon.setTextColor(colors.green)
- mon.write("ENERGY OK")
- mon.setCursorPos(1,2)
- mon.write("RF:" ..energy)
- sleep(5)
- end
- mon.clear()
- mon.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment