A Minecraft NeoForge/Forge mod about the Attribute Limiter
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.
一个关于属性限制器的NeoForge/Forge mod
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%的速度,其余想要限制的属性需要自己填写。