简介
Attribute Setter 是一个简单轻量的模组,可以通过数据包修改任何生物或物品的默认属性。它灵感来源于 Jackiecrazy's Attributizer 和 Custom Item Attributes (CIA)。
此模组旨在帮助整合包制作人和服务器管理员轻松平衡生物与物品,例如调整生命值、伤害、跟随范围等属性。
支持 CuriosAPI
虽然目前我们(我)尚不支持 Trinkets(实现起来较为困难,因为 Trinkets 缺少我在 Curios 中使用的对应事件),但如果你想为任意 Curios 添加属性,只需将槽位名称设置为对应的属性名即可。
仅需服务端安装
如果你是服务器管理员,你的玩家不需要下载此模组。只需将其放入你的 mods 文件夹并按需配置即可。当然,它也适用于单人游戏,因为它内置了一个集成服务器。请注意,虽然更改后的属性仍然生效,但其他玩家将无法看到这些变更,他们看到的物品仍将显示原版默认属性。
客户端可选安装
如果安装在客户端,除了显示更改后的属性外,该模组还会将已存在的自定义属性合并到原版的“绿色属性”中。
| 原版行为 |
AttributeSetter |
 |
 |
示例
以下 attributes.json 文件会将所有苦力怕的生命值改为 100,而不是默认的 20。
{
"minecraft:creeper": [
{
"attribute": "minecraft:generic.max_health",
"value": 100,
"operation": "BASE"
}
]
}

有关如何配置 AttributeSetter 的更多信息,请访问 GitHub 页面 或加入 Discord。
如果你正在制作整合包
你可能对我为整合包设计的其他模组感兴趣:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
或者针对服务器/SMP 的 Claims n Raids!
Summary
Attribute Setter Is a simple lightweight mod that can change the default attributes of any living entity or item through datapacks, inspired by Jackiecrazy's Attributizer and Custom Item Attributes(CIA).
This mod was created for modpack creators and server owners to easily balance entities and items, changing their health, damage, follow range, etc...
Supports CuriosAPI
Although we(I) don't support trinkets yet(it's harder to implement, trinkets doesn't have the event that I use in Curios), if you want to add attributes to any curios, just set the slot to the appropriate name.
Server Side Only Required
If you are a server owner, your players DO NOT need to download this mod. Simply put it into your mods folder and configure it as you wish. Of course it works on singleplayer as it has an integrated server running. Although keep in mind that your players won't see the changed attributes, they'll still work, but the items will appear with their vanilla attributes.
Client Side Optional
If installed in client-side, besides showing the changed attributes, this mod also collapses item attributes into vanilla "green attributes" if they're already present
| Vanilla Behaviour |
AttributeSetter |
 |
 |
Example
The following file attributes.json will change all creepers' health to 100, instead of the normal 20.
{
"minecraft:creeper": [
{
"attribute": "minecraft:generic.max_health",
"value": 100,
"operation": "BASE"
}
]
}

For more info on how to configure AttributeSetter, visit the github page or the discord
If you are building a modpack
you might be interested in some of my other mods for modpacks:
AttributeSetter
RPGDamageOverhaul
FoodAttributes
Or Claims n Raids for servers/smp!
评论 0
登录后参与评分
还没有评论,来抢沙发吧