Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tank = peripheral.wrap(<side in quotes>)
- local tankInfo = tank.getTankInfo("unknown")
- local tankStats = tankInfo[1]
- if not tankStats.contents then --# tankStats.contents instead of tank.contents
- print( "No fluid" )
- else
- print( "Amount: " .. tankStats.contents.amount ) --# tankStats.contents.amount instead of tank.contents.amount
- end
Add Comment
Please, Sign In to add comment