Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local glass = peripheral.wrap("right")
- local me = peripheral.wrap("back")
- print (me.doc("getDemandedEnergy"))
- function addBox()
- glass.addBox(1,1,220,10,0xFFFFFF,0.2)
- end
- function mePower()
- local power = me.getAvgPowerUsage()
- glass.addText(5,2,"ME Power usage: ca.".. power*2 .." RF/t", 0x000000)
- end
- while true do
- glass.clear()
- addBox()
- mePower()
- glass.sync()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment