Attribute Limiter
A Minecraft NeoForge/Forge mod about the Attribute Limiter
Usage
Place the mod JAR file into your mods folder and launch the game.
The configuration file is located at config/attribute_limiter.json.
Example configuration:
{
"generic.movement_speed": 0.30
}
By default, a limit for movement speed is generated automatically. For other attributes, you need to add them manually to the configuration file.
To obtain a list of all attributes available in your current modpack, run the following command: /neoforge dump registry minecraft:attribute true
To check the base value of a specific attribute (e.g., movement speed), use: /attribute @p minecraft:generic.movement_speed base get To see the current value (with all modifiers applied), use: /attribute @p minecraft:generic.movement_speed get
When adding an attribute to the config file, copy only the part after the colon (e.g., generic.movement_speed). Do * not* include the minecraft: prefix.
Note: Minecraft’s attribute values may behave unexpectedly. For example, a value of
0.1corresponds to 100% speed (base). The default limit0.3equals 300% speed. You will need to determine appropriate limits for other attributes by yourself.
PS
- This mod limit the maximum attribute. That is to say, no matter what kind of creature it is, it will be restricted. The movement speed is limited by 300%. While the player's speed will not exceed 300%, the maximum movement speed of the monster will also not exceed 300%.
属性限制器
一个关于属性限制器的NeoForge/Forge mod
用法
- 将mod添加至mods文件夹中然后运行游戏
- 配置文件位于
config/attribute_limiter.json - 配置文件示例:
{
"generic.movement_speed": 0.30
}
默认会生成关于速度属性的限制,其他属性的限制需要自行配置。
其他属性可以通过 /neoforge dump registry minecraft:attribute true 命令就能获得你当前包里的所有属性了。
如果想要针对性获取或查看就需要使用 /attribute @p minecraft:generic.movement_speed base get 这条就是查看速度的基础值,看当前值则是 /attribute @p minecraft:generic.movement_speed get
可以根据基础值进行修改配置文件的值,只需要复制冒号后面的就行了,比如速度限制就是generic.movement_speed而不要填写 minecraft:generic.movement_speed
MC的各种参数值有些许怪异,比如速度
0.1则是对应100%的速度,默认限制在0.3也就是300%的速度,其余想要限制的属性需要自己填写。
注
- 本mod会限制最大值,也就是无论什么生物,都会被限制,限制了300%的移速,玩家速度不会超过300%的同时怪物的移速最大也不会超过300%,
