Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function chkFuel()--checks on the fuel level and adds coal as needed
- local g = component.generator
- print(g.count())
- robot.select(16)
- if g.count() == 0 then g.insert(1) end
- if g.count() <= 10 then
- g.insert(10 - g.count())
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement