Rewrite utils flag check to separate  block and entity check