Home›Java›Mods›Raytrace
Raytrace
ModsJava

Raytrace

Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.

by mishakorzik · on Modrinth

⬇ Download on Modrinth

Raytrace

Raytrace is a self-contained packet-level anti-ESP and anti-freecam plugin for Paper, Folia and Canvas 1.21.4+ / 26.x. It does not add blocks, commands for players, or dependencies; it rewrites the packets already sent to each client.

What it does

Video

Watch the showcase

Compatibility

Commands and permissions

Command Permission Purpose
/raytrace reload raytrace.admin Reload config.yml, clear caches and rescan players.

How the mask is built

For every loaded chunk, Raytrace resolves a per-column ceiling from the configured layer bands and the live height map. Everything below that ceiling is encoded as the fake block for that Y band. surface-buffer keeps the top few blocks of natural soil real for a smooth coastline and tree line. A second, un-buffered cutoff is used for ores, chests, spawners and block entities, so with a fine grid (for example grids.blocks.size: 2) a shallow ore four blocks below the surface is still hidden even when the surrounding dirt is real. Lower the buffer if you want an even stricter surface.

When a player looks at a cell, the ray walk records the grid cells it passes through. Cells within the occlusion allowance are marked visible for that player. The real block data for those cells is sent with a normal multi-block change, so the client keeps correct collision and does not see fake blocks where it has line of sight.

Configuration notes

Performance:

If your server already has a config.yml, the new defaults are not applied to it: set scan-ticks: 2, target-total-rays: 1600, max-steps-per-scan: 80000 and add max-scan-micros: 1000 (or delete the file and let it regenerate). The new hide-* keys default to true when missing.

Performance and bandwidth

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more