What are you searching for?

AttributeFix-Sync

AttributeFix-Sync

Syncs AttributeFix limits from server to client.

download 6 Downloads · favorite 0 Followers · Updated 6 days ago
Neoforge Optimization 1.21.1

Versions

inventory_2
AttributeFix-Sync 0.0.2

0.0.2 · 6 days ago · 25.27 KB

Release download
Neoforge 1.21.1

About

AttributeFix Sync

License NeoForge

AttributeFix Sync is an unofficial addon for the AttributeFix mod, designed to solve the synchronization issue where modified attribute limits on the server are not reflected on the client.

The Problem

In the original AttributeFix, if you modify the upper limit of an attribute (e.g., generic.max_health or generic.attack_damage) in the server configuration:

  1. The Server correctly calculates damage and health based on your config (e.g., capped at 5000).
  2. The Client still uses the default limit (e.g., 1,000,000).
  3. Result: Mods like Jade, WTHIT, or the vanilla health bar display incorrect values because the client isn't aware of the stricter limit enforced by the server.

Features

This mod solves the above problem via packet synchronization:

  • Automatic Synchronization: When a player joins the server, the mod automatically sends all attribute limits (Max Values) configured on the server to the client.
  • In-Memory Patching: Upon receiving the data, the client dynamically modifies the attribute definitions in memory via Mixin.
  • Correct Visualization: Jade, WTHIT, and vanilla bars will now correctly display values based on the actual server limits.
  • Pollution-Free: When the player disconnects, the mod automatically restores the client's attribute limits to their original state, ensuring single-player worlds or other servers are not affected.

Installation & Usage

Dependencies

  • Minecraft: 1.21.1
  • Loader: NeoForge
  • Required Mod: AttributeFix

Usage

  1. Server: Required. No configuration needed. It automatically reads the final values from AttributeFix and sends them to players.
  2. Client: Required. Necessary to receive the synchronization packets.

Configuration

The client configuration file can be found at config/attributefixsync-client.toml.

Option Default Description
enableSync true Whether to accept attribute limit synchronization from the server.
showSyncMessages true Whether to show a chat message when attributes are synchronized.

Note: To change the actual attribute limits (e.g., max health), please edit the AttributeFix config files located in config/attributefix/.

License & Credits

This project is licensed under the MIT License.

  • Core logic is based on the Minecraft NeoForge API.
  • Special thanks to Darkhax for developing the original AttributeFix mod. This mod exists solely as a supplementary tool for it.

This is not an official work by Darkhax. If you have issues related to synchronization, please report them to this repository, not the original author.

open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Required
gavel MIT

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 118.2M
favorite 32,788
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 84.0M
favorite 13,759
lock Cookie consent

SkinMC uses cookies to provide functionality and features.