Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tank = peripheral.wrap('back')
- while true do
- if (tank.getTankInfo()[1].contents == nil) then
- print('Tank is empty.')
- print('Attempting to drain basins...')
- redstone.setOutput('left', true)
- sleep(0.5)
- redstone.setOutput('left', false)
- sleep(4)
- else
- print("Tank isn't empty.")
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement