Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tankName = 'openblocks_tank_0'
- local tank = peripheral.wrap(tankName)
- local function tankInfo()
- -- available keys are rawName (localized name), amount (mB), capacity (mB), name (internal name), id (liquid id)
- return tank.getTankInfo('')[1]
- end
- rs.setOutput('back',true)
- while tankInfo() == nil or tankInfo().amount == nil or tankInfo().amount < 8000 do
- sleep(0.2)
- end
- rs.setOutput('back',false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement