跳到正文

AttributeSetter

作者:httpedor

A lightweight mod that changes entities' and items' default attributes through datapacks

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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"
        }
    ]
}

Creeper has spawned with 100 health

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!

常见问题

AttributeSetter 支持哪些 Minecraft 版本?

AttributeSetter 支持 Minecraft Java 版 1.20–1.21.8,共 16 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

AttributeSetter 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

httpedor 的其他作品

查看全部 →