Skip to content

Configuration

The config.yml file lives in plugins/RayTraceAntiXray/. Global scheduler settings are under settings.anti-xray; per-world overrides live under world-settings.<world>.anti-xray (all worlds inherit from default).

New to the plugin? Start with Recommended setup — copy-paste Paper Anti-Xray + plugin presets for production.

Click any option or category below to view additional information.

Apply changes without a restart

After editing config.yml, run /raytraceantixray reload to apply changes. A full restart is still required for JAR or dependency updates.

settings:
anti-xray:
update-ticks:1
ms-per-ray-trace-tick:50
ray-trace-threads:2
world-settings:
default:
anti-xray:
ray-trace:true
ray-trace-third-person:false
ray-trace-distance:80
rehide-blocks:false
rehide-distance:.inf
section-leap:false
max-ray-trace-block-count-per-chunk:100
ray-trace-blocks:

Per-world example

Disable ray tracing in a lobby world while keeping it enabled elsewhere:

yaml
world-settings:
  default:
    anti-xray:
      ray-trace: true
  lobby:
    anti-xray:
      ray-trace: false

Full example

yaml
settings:
  anti-xray:
    update-ticks: 1
    ms-per-ray-trace-tick: 50
    ray-trace-threads: 2
world-settings:
  default:
    anti-xray:
      ray-trace: true
      ray-trace-third-person: false
      ray-trace-distance: 80.0
      rehide-blocks: false
      rehide-distance: .inf
      section-leap: false
      max-ray-trace-block-count-per-chunk: 100
      ray-trace-blocks: []

See the commented example in the plugin source for additional block-list presets (diamond ore, emerald ore, etc.).