AttributeFix-Sync 图标

AttributeFix-Sync

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.0.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/attributefix-sync
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: optimization

资源介绍

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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Lion Coin

价格:0 墨喵币
下载量:0

查看详情
Bare Armors (Bare Bones X Immersive Armors)

价格:0 墨喵币
下载量:0

查看详情
Spooky Scary Skeletons

价格:0 墨喵币
下载量:0

查看详情
Comfy Touhou

价格:0 墨喵币
下载量:0

查看详情