SHOW:
|
|
- or go back to the newest paste.
| 1 | local tank = peripheral.wrap("left")
| |
| 2 | local tankTable = tank.getTankInfo()[1] | |
| 3 | local contentsTable = tankTable["contents"] | |
| 4 | local quantity = contentsTable["amount"] | |
| 5 | while true do | |
| 6 | ||
| 7 | if quantity > 1296 then | |
| 8 | print(quantity) | |
| 9 | redstone.setOutput("front",true)
| |
| 10 | sleep(5) | |
| 11 | redstone.setOutput("front",false)
| |
| 12 | print(quantity) | |
| 13 | sleep(5) | |
| 14 | end | |
| 15 | ||
| 16 | end |