Packet Diet

Quick rating

Packet Diet

No reviews yet

ZSTD packet compression and NBT scrubbing for Fabric — less traffic, less CPU.

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

PacketEdit

Network optimization for Fabric servers and clients. PacketEdit cuts network traffic and packet-processing CPU cost with two independent modules.

🗜️ ZSTD Packet Compression

Replaces vanilla's zlib packet compression with Zstandard (ZSTD) — a modern algorithm that compresses better and several times faster.

  • Same wire framing as vanilla ([VarInt size][payload]), only the algorithm changes — the rest of the pipeline is untouched.
  • Packets smaller than 256 bytes are passed through uncompressed (no wasted CPU on tiny packets).
  • Zero-copy native compression between off-heap buffers — no extra allocations on the Netty threads.
  • Full vanilla-style validation on decode (decompression-bomb protection, size checks).

⚠️ PacketEdit must be installed on BOTH the server and every client. A vanilla client cannot read a ZSTD stream. You can disable this module with the JVM flag -Dpacketedit.zstd=false.

✂️ NBT / Data Component Scrubber

The server strips heavy, purely-cosmetic item data from container packets before they are sent, when the item is not in the player's active hotbar:

  • minecraft:custom_data (custom NBT from mods/plugins — cosmetics, animations, markers)
  • minecraft:lore (huge lore walls)
  • Book contents (pages are not needed until the book is actually held)

Hotbar, offhand and armor slots always receive full data. As soon as an item is moved into the hotbar, the server automatically re-sends the slot with complete data — the client never ends up holding a "stripped" active item. Only whitelisted components are removed from a copy of the stack, so packets stay fully valid for the vanilla codec: no client-side patches, no inventory desync, no crashes.

This module is server-side only in effect and can be disabled with -Dpacketedit.scrubber=false.

Configuration (JVM flags)

Flag Default Description
-Dpacketedit.zstd true Enable ZSTD compression
-Dpacketedit.zstd.level 3 ZSTD compression level (1–3 recommended for realtime)
-Dpacketedit.zstd.threshold 256 Minimum packet size (bytes) to compress
-Dpacketedit.scrubber true Enable the packet scrubber

Requirements

  • Minecraft 1.21.11, Fabric Loader ≥ 0.19.3, Fabric API
  • Java 21+
  • Installed on both sides for ZSTD compression

🇷🇺 Кратко по-русски

PacketEdit — оптимизация сети: ZSTD-компрессия пакетов вместо ванильного zlib (быстрее и жмёт лучше) и срезание избыточного NBT (кастомные данные модов, огромный Lore, страницы книг) у предметов вне активного хотбара. Для ZSTD мод обязателен и на сервере, и на клиенте.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works