RaycastedAntiXray is a packet-level anti-xray plugin for Paper 1.21.11 that hides ores from the client until the player can legitimately see them. It rewrites outgoing chunk and block update packets using PacketEvents, replacing hidden ores with surrounding blocks like stone, deepslate, netherrack, or end stone. When a player gains real line of sight to an ore, the plugin uses server-side raycasting to reveal the actual block only to that player.
