The best antixray solution for everything including ores, entities, and tiles utilizes raytracing.
Fixed command permission requirement