replaced block id check to a TileEntity Check