Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.find("BigReactors-Reactor")
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setBackgroundColor(colors.blue)
- color = blue
- --fuel = 0
- --maxFuel = 0
- function draw(color)
- mon.clear()
- mon.setCursorPos(28,1)
- mon.write("Reactor")
- mon.setCursorPos(2,10)
- mon.write("Fuel:")
- mon.setCursorPos(1,11)
- mon.write(math.floor((fuel/maxFuel)*100).."%")
- progress(fuel,maxFuel,7,9)
- if reactor.getActive() == true then
- mon.setBackgroundColor(colors.blue)
- else
- mon.setBackgroundColor(colors.red)
- end
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement