Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local com = require("component")
- local red = com.redstone
- function getValue()
- return com.basic_energy_cube.getEnergyStored() / com.basic_energy_cube.getMaxEnergyStored() * 100 -- Измени на свое хранилище com._____.getEnergyStored()
- end
- while true do
- if getValue() >= 90 then
- red.setOutput(5, 15) -- (5)- Это сторона света редстоун контроллера
- elseif getValue() <= 10 then
- red.setOutput(5, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement