make checking for block types more runtime-y (useful for future lua stuff)