for inspiration,
block physics
https://vimeo.com/45405275
from this thread, After playing minecraft... page-22#post-971773
i think you could make up some simple fake algorithm to determine those values,
flood fill, path finding, 3d graphs… and it could be easily running in separate thread(s)/jobs/or lazy iterative updater…