MR InvSync
This is a Fabric mod that enables synchronization of player inventories, health, hunger levels, experience, scores, status effects, and advancements across multiple Minecraft servers or single-player worlds.
Supported Databases
The mod supports three popular data storage systems: SQLite for local use, as well as MySQL and PostgreSQL for network solutions.
Functional Capabilities
You can configure synchronization for only the parameters you need. The following options are available:
- Player inventory
- Ender chest contents
- Health and hunger levels
- Experience level and scores
- Active status effects
- Earned achievements
All synchronization management settings are easily configurable through the configuration file.
Installation and Requirements
For the mod to work, Fabric Loader and Fabric API are required. Make sure the database configuration is identical on all servers where inventory synchronization should occur.
Configuration Example
File location: /config/InvSync.mcfg
# Database type
DATABASE_TYPE=SQLITE
# Debug settings
DEBUG_DELETE_TABLES=false
# SQLite path
SQLITE_PATH=./InvSync.db
# MySQL settings
MYSQL_DATABASE=InvSync
MYSQL_ADDRESS=mysql-host
MYSQL_PORT=3306
MYSQL_USERNAME=username
MYSQL_PASSWORD=password
# PostgreSQL settings
POSTGRES_DATABASE=InvSync
POSTGRES_ADDRESS=postgres-host
POSTGRES_PORT=5432
POSTGRES_USERNAME=username
POSTGRES_PASSWORD=password
# Synchronization options
SYNC_INVENTORY=true
SYNC_ENDER_CHEST=true
SYNC_HEALTH=true
SYNC_FOOD_LEVEL=true
SYNC_XP_LEVEL=true
SYNC_SCORE=true
SYNC_STATUS_EFFECTS=true
SYNC_ADVANCEMENTS=true
# Synchronization delay parameters
SYNCHRONIZATION_DELAY=true
SYNCHRONIZATION_DELAY_SECONDS=1
SYNCHRONIZATION_DELAY_METHOD=SLEEP
# Initial sync parameters
INITIAL_SYNC_OVERWRITE_ENABLED=true
INITIAL_SYNC_SERVER_NAME=ServerA
This flexible configuration system allows adapting the mod to any gaming environment.
The project is licensed under the MIT license.