StatTweaks
平衡你的游戏。由你制定规则。
StatTweaks 是一款功能强大且灵活的模组,允许你使用简单的 JSON 配置文件完全自定义物品和实体。
无论你是正在制作整合包,还是希望微调游戏体验,StatTweaks 都能让你对属性、机制和行为拥有完全的控制权——无需编写一行代码。
✨ 你可以做什么
? 重新平衡任何物品 修改伤害、速度、护甲、耐久度、堆叠数量等属性。
? 修改实体 调整基础属性,如生命值、攻击伤害和移动速度。
? 使用现代数据组件 (Data Components) 直接使用 Minecraft 的组件系统控制内部物品行为。
? 条件修饰符 根据特定条件(例如维度)创建动态加成效果。
? 支持的属性(物品与实体)
StatTweaks 支持游戏中注册的任何属性(原版或模组添加)。
以下是常见示例(但不限于此):
| 属性 ID |
游戏内效果 |
minecraft:generic.attack_damage |
增加攻击实体时造成的伤害。 |
minecraft:generic.attack_speed |
控制玩家的攻击频率(数值越高 = 攻击越快)。 |
minecraft:generic.max_health |
改变总生命值(主要用于实体)。 |
minecraft:generic.movement_speed |
影响行走/奔跑速度。 |
minecraft:generic.armor |
穿戴时减少受到的伤害。 |
minecraft:generic.armor_toughness |
降低高伤害攻击的效果。 |
minecraft:generic.knockback_resistance |
减少被击中时被击退的距离。 |
minecraft:generic.attack_knockback |
增加对敌人施加的击退力度。 |
⭐ 特殊 StatTweaks 属性
| 属性 |
效果 |
stattweaks:durability |
设置物品耐久度(损坏前的使用次数)。 |
stattweaks:efficiency |
修改工具的挖掘速度和行为。 |
? 数据组件(高级自定义)
StatTweaks 支持任何注册的数据组件,包括模组添加的组件。
以下是常见示例:
| 组件 ID |
游戏内效果 |
minecraft:max_stack_size |
改变每个槽位中物品可堆叠的数量。 |
minecraft:max_damage |
定义可损坏物品的耐久度上限。 |
minecraft:rarity |
改变物品名称的颜色(普通、稀有、史诗等)。 |
minecraft:food |
将物品转化为具有饥饿/饱和度效果的食物。 |
minecraft:enchantments |
直接为物品附加附魔。 |
minecraft:stored_enchantments |
用于附魔书。 |
minecraft:unbreakable |
防止物品损失耐久度。 |
minecraft:tool |
定义工具的挖掘规则和效率。 |
minecraft:weapon |
在内部定义武器的行为。 |
minecraft:damage |
追踪当前的耐久度损耗。 |
minecraft:use_cooldown |
在使用之间添加延迟。 |
minecraft:use_remainder |
定义使用后剩余的物品。 |
minecraft:tooltip_style |
控制工具提示的外观。 |
minecraft:tooltip_display |
控制在工具提示中如何显示属性。 |
⚠️ StatTweaks 不限制组件 —— 只要 JSON 符合其编解码器要求,任何有效组件均可使用。
? 实体自定义
修改实体的基础属性:
- 生命值 (
max_health)
- 伤害 (
attack_damage)
- 速度 (
movement_speed)
✔ 支持原版和模组添加的实体 ⚠️ 不会修改 AI 或行为逻辑
⚙️ 简单配置
所有更改均在以下文件中完成:
config/CPT_StatTweaks_Config.json
结构如下:
{
"tooltip_mode": "relative",
"items": { ... },
"entities": { ... }
}
工具提示模式
"relative" → 显示修正值(例如 +5 伤害)
"base" → 显示最终数值
? 完美适用于
✔ 整合包制作者 ✔ 游戏平衡调整 ✔ 进度调优 ✔ 跨模组兼容性修复 ✔ 自定义游戏体验
⚠️ 注意事项
- 某些更改(如耐久度或堆叠数量)可能需要重启游戏才能生效
- 在某些版本中,你可能需要离开并重新进入世界(或完全重启游戏),更改才能正确应用
- 请使用完整 ID,例如
minecraft:generic.attack_damage
- 无效的组件格式可能无法正确应用
- 更多详细信息、示例和更新,请查看项目的 GitHub 仓库
StatTweaks
Balance your game. Your rules.
StatTweaks is a powerful and flexible mod that lets you fully customize items and entities using a simple JSON config file.
Whether you're building a modpack or fine-tuning gameplay, StatTweaks gives you complete control over attributes, mechanics, and behavior — all without writing a single line of code.
✨ What You Can Do
? Rebalance any item Modify stats like damage, speed, armor, durability, stack size, and more.
? Modify entities Adjust base stats like health, attack damage, and movement speed.
? Use modern Data Components Directly control internal item behavior using Minecraft’s component system.
? Conditional modifiers Create dynamic bonuses depending on conditions (e.g. dimension).
? Supported Attributes (Items & Entities)
StatTweaks supports ANY attribute registered in the game (vanilla or modded).
Below are common examples (not limited to):
| Attribute ID |
Effect in-game |
minecraft:generic.attack_damage |
Increases the damage dealt to entities when attacking. |
minecraft:generic.attack_speed |
Controls how fast the player can attack (higher = faster hits). |
minecraft:generic.max_health |
Changes total health (mainly used for entities). |
minecraft:generic.movement_speed |
Affects walking/running speed. |
minecraft:generic.armor |
Reduces incoming damage when worn. |
minecraft:generic.armor_toughness |
Reduces effectiveness of high-damage attacks. |
minecraft:generic.knockback_resistance |
Reduces how far entities are pushed when hit. |
minecraft:generic.attack_knockback |
Increases knockback dealt to enemies. |
⭐ Special StatTweaks Attributes
| Attribute |
Effect |
stattweaks:durability |
Sets item durability (number of uses before breaking). |
stattweaks:efficiency |
Modifies tool mining speed and behavior. |
? Data Components (Advanced Customization)
StatTweaks supports ANY registered Data Component, including modded ones.
Below are common examples:
| Component ID |
Effect in-game |
minecraft:max_stack_size |
Changes how many items can stack in one slot. |
minecraft:max_damage |
Defines durability for damageable items. |
minecraft:rarity |
Changes item name color (common, rare, epic, etc.). |
minecraft:food |
Turns item into food with hunger/saturation effects. |
minecraft:enchantments |
Applies enchantments directly to the item. |
minecraft:stored_enchantments |
Used for enchanted books. |
minecraft:unbreakable |
Prevents item from losing durability. |
minecraft:tool |
Defines tool mining rules and effectiveness. |
minecraft:weapon |
Defines weapon behavior internally. |
minecraft:damage |
Tracks current durability damage. |
minecraft:use_cooldown |
Adds delay between uses. |
minecraft:use_remainder |
Defines item left after use. |
minecraft:tooltip_style |
Controls tooltip appearance. |
minecraft:tooltip_display |
Controls how stats are shown in tooltips. |
⚠️ StatTweaks does not limit components — any valid component can be used as long as the JSON matches its codec.
? Entity Customization
Modify entity base attributes:
- Health (
max_health)
- Damage (
attack_damage)
- Speed (
movement_speed)
✔ Works with vanilla and modded entities ⚠️ Does not modify AI or behaviors
⚙️ Simple Configuration
All changes are made in:
config/CPT_StatTweaks_Config.json
Structure:
{
"tooltip_mode": "relative",
"items": { ... },
"entities": { ... }
}
Tooltip Modes
"relative" → shows modifiers (e.g. +5 Damage)
"base" → shows final values
? Perfect For
✔ Modpack creators ✔ Game balance adjustments ✔ Progression tuning ✔ Cross-mod compatibility fixes ✔ Custom gameplay experiences
⚠️ Good to Know
- Some changes (like durability or stack size) may require a game restart
- In certain versions, you may need to leave and re-enter the world (or fully restart the game) for changes to apply correctly
- Use full IDs like
minecraft:generic.attack_damage
- Invalid component formats may not apply correctly
- For more details, examples, and updates, check the project’s GitHub repository
评论 0
登录后参与评分
还没有评论,来抢沙发吧