Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local energyCore = component.draconic_rf_storage
- local currentEnergy = energyCore.getEnergyStored()
- local maxEnergy = energyCore.getMaxEnergyStored()
- local percentFilled = (currentEnergy / maxEnergy) * 100
- local rfPerTick = energyCore.getTransferPerTick()
- print(string.format("The core is currently %.1f%% full.", percentFilled))
- print(string.format("It is receiving %d RF/t.", rfPerTick))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement