Mod

NATS Player Data Bridge

Quick rating

NATS Player Data Bridge

No reviews yet

Sync player data across Minecraft servers using NATS.

Storage & Organization
Mod Loaders
Fabric
Minecraft
26.2

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 Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

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

About

Description

NATS Player Data Bridge

Status

This project is in its early stages and undergoing active development. Please report any issues on GitHub or join the community on Discord. Any feedback is valuable and greatly appreciated!

A server-side Fabric mod that synchronizes player inventories, ender chests, health, XP, statistics, and advancements across multiple Minecraft servers using NATS JetStream.

When a player leaves, their data is saved to a NATS Key-Value bucket. When they join another server in the same cluster, that data is fetched and applied before they spawn.


Requirements

  • NATS server with JetStream enabled.
  • Fabric API.

Installation

  1. Drop the mod jar into your mods/ folder.
  2. Start the server once to generate two config files.
  3. Configure config/nats-fabric.json with your NATS server URL, auth token, and a unique name for this server.
  4. Restart.

Setting up the NATS Server

When setting up your NATS server, create a new text file named nats-server.conf and paste the following minimal configuration into it:

port: 4222

authorization {
  token: "your_secret_token_here"
}

jetstream {
  store_dir: "./jetstream-data"
}

Then, start your NATS server by pointing it to the configuration file you just created:

  • Linux/macOS: ./nats-server -c nats-server.conf
  • Windows: nats-server.exe -c nats-server.conf

Ensure the auth token in config/nats-fabric.json matches what you have set here.


Velocity Proxy Support

If you are running Velocity, set "proxyMode": true in config/nats-player-data-bridge.json. Without this, overlapping logins are rejected outright, which will break server switching.

If you are also using FabricProxy-Lite, you must set hackEarlySend = true in FabricProxy-Lite.toml for the mod to work correctly.


Configuration (config/nats-player-data-bridge.json)

Key Default Description
proxyMode false Enable RPC lock handoff for Velocity proxy setups.
rpcTimeoutSeconds 15 The timeout in seconds for cross-server RPC requests (e.g., during proxy transfers).
syncStats true Sync player statistics.
syncAdvancements true Sync advancements.
filterMode "whitelist" "whitelist" syncs only listed NBT keys. "blacklist" syncs everything except listed keys.
filterKeys Inventory, health, XP, etc. The NBT keys to include or exclude depending on filterMode.
backupHistoryCount 20 The number of historical snapshots to keep per player in the backup bucket.
autoBackupPolicies [DEATH, DIMENSION_CHANGE] List of triggers that automatically create snapshots.

Admin Commands

All commands require operator permissions.

Command Description
/nats sync [player] Manually push a player's data to the cluster.
/nats sessions list [page] View DIRTY session locks in the cluster (paginated).
/nats sessions clean <player/uuid> Clear a stuck session lock for a specific player by name or UUID.
/nats backup push <player> Create a manual snapshot of a player's data.
/nats backup list <player> View snapshots. Hover over entries for tags (death, dim_change, etc).
/nats backup restore <player> <rev> Stage a restoration. Requires /nats backup confirm to execute.
/nats backup confirm Execute a staged restoration. The player will be kicked to apply data safely.

Data Handling

The bridge is built for environments where data integrity and network stability are critical.

  • Cluster-Wide Locking: Each player session is assigned a unique lock. A server can only write data if it holds that lock.
  • Fail-to-Safety (Vaulting): If NATS is unreachable, player data is saved to a local disk vault (nats-player-data-bridge/pending_sync/) and automatically synced back when the connection is restored.
  • Self-Healing: Servers perform a recovery step on startup to reconcile orphaned locks and clear any local vault data.
  • Auto-Backups: Configurable triggers (Death, Dimension Change) create snapshots automatically.
  • Binary Format: Data is packed into a CBOR binary format with Zstd compression for minimal network overhead.
  • Readiness Gating: Servers block player joins until background synchronization and healing are 100% complete.

License

MIT

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
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync