HomeJavaModsAnti Pie
Anti Pie
ModsJava

Anti Pie

A Fabric server-side mod that stops certain hidden block entities from being sent to players to prevent the pie chart from working.

⬇ Download on Modrinth

Anti Pie

Anti Pie is a Fabric server-side mod that stops certain hidden block entities from being sent to players. This keeps them from showing up on the debug pie chart, making it harder to use the pie chart to find hidden bases.

How it works

Performance

Most packets only do a few simple type checks. Visibility checks are limited by visibilityChecksPerPass (32 by default): four times per second while a player is moving and once per second while standing still. When chunks first load, visibility checks are also limited to 64 per player each tick.

Each visibility check first tests the center of the block. If needed, it checks the exposed faces. Most blocks only need one raycast, while the worst case is 31 raycasts. Hidden positions are stored as packed longs to keep memory usage low.

The client does not run any mod code. Initial chunk packets are the same size or smaller because hidden block entity data is removed. When a hidden block becomes visible, the server sends one replacement chunk packet for the affected chunk. This can briefly use a little more bandwidth and cause the client to rebuild the chunk, but normal gameplay is usually lighter because the client has fewer block entities to process.

Configuration

Anti Pie creates an anti-pie.json5 file in your server's config folder the first time it starts.

From this file you can:

The config uses the JSON5 format for comments to make it easier to read and customize.

License

CC0-1.0. The code is original, but the packet-filtering idea was inspired by orbyfied/AntiPieRay.

Verified by MCModsHub

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

Explore more