Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local reactor = peripheral.wrap("back")
- local mon = peripheral.wrap("monitor_5")
- local data = {}
- rednet.open("top")
- function afficheDonnee()
- mon.clear()
- mon.setTextScale(2)
- mon.setCursorPos(1,1)
- mon.write("Energie produite")
- mon.setCursorPos(1,2)
- mon.write(nrj)
- end
- while true do
- nrj = math.floor(reactor.getEnergyProducedLastTick())
- afficheDonnee()
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement