Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Monitoring Power Levels!')
- --vars--
- cube = peripheral.wrap('cofh_thermalexpansion_energycell_1')
- energy = cube.getEnergyStored('right')
- monitor = peripheral.wrap('top')
- monitor.setTextScale(1)
- monitor.setBackgroundColor(colors.black)
- --main--
- while true do
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextColor(colors.white)
- monitor.write('StorageBuffer #1')
- monitor.setCursorPos(1,2)
- monitor.setTextColor(colors.red)
- monitor.write(energy)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment