本模组库通过修改部分工具数值来简化工具的配置。如果你的模组包含工具、剑等物品,使用本模组后,你只需在每个工具属性中设置一个值,并将某些 Minecraft 原始工具数值重置为“0”。此模组修复了某些无法精确设定数值的类型(如 int/float),主要影响“攻击伤害”等数值。你只需直接在所选工具物品的代码中填入一个数值,无需在代码中添加其他额外参数。
示例:默认攻击伤害为“1”,默认攻击速度为“4”。
若要在你的模组中集成此模组,我提供了以下方法:
直接集成 - 前往 GitHub 下载 Java 文件并将其添加到你的项目文件中,然后重新映射“imports”(导入语句)。
本地集成 - 下载本模组并在“build.gradle”文件的 dependencies 部分添加以下内容:
dependancies {
modImplementation(fileTree("Local File Path"))
}
示例代码:
自定义工具材质:
//Minecraft 1.20.1 版本方法
public enum CustomToolMaterials implements FixToolMaterial {
CUSTOM( 挖掘等级, 物品耐久度, 挖掘速度, 附魔能力, Ingredient)
...
自定义工具物品(大致代码):
... CUSTOM_TOOL = register( "custom_tool" , new SimplifySwordItem( materials, float Damage, float Speed, new FabricItemSettings()));
//Minecraft 1.20.6 版本方法
public static CustomToolMaterials impleement Tier {
CUSTOM( BlocksTags... , 耐久度, 附魔价值, 修复 Ingredient);
...
Item CUSTOM_TOOL = register( "custom_tool", new Fix...Item( material, new Item.properties().attribute(Fix...Item.createAttributes(damage, speed))));
This mod library changes some Tools values to simplify Tools configuration. If your mod has tools or sword & other. With this mod, You need juste to put one value on each tool properties and restore some Minecraft tool values to "0". It's fix somme values ( int/ float) prevented giving precise values, mainly on "attack damage" value. You just put one value directly on your tool items of your choice without additionals values away in the code.
Example: on attack damage in default "1" and attack speed in default "4".
If you want to implements this mod in your mod, I have methods.
Directly implement -Go to Github and download java files and add on your project files and remap "imports".
Local Implementation -Download this mods and add in "build.gradle" file on section dependencies:
dependancies {
modImplementation(fileTree("Local File Path"))
}
Example code to add:
Custom ToolMaterials:
//Minecraft version 1.20.1 method
public enum CustomToolMaterials implements FixToolMaterial {
CUSTOM( miningLevel, itemDurability, miningSpeed, enchantability, Ingredient)
...
Custom ToolItems (pretty much the code):
... CUSTOM_TOOL = register( "custom_tool" , new SimplifySwordItem( materials, float Damage, float Speed, new FabricItemSettings()));
//Minecraft version 1.20.6 method
public static CustomToolMaterials impleement Tier {
CUSTOM( BlocksTags... , durability, enchantementValue, Repair Ingredient);
...
Item CUSTOM_TOOL = register( "custom_tool", new Fix...Item( material, new Item.properties().attribute(Fix...Item.createAttributes(damage, speed))));
下载 Simplify Tool Config Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simplify Tool Config Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simplify Tool Config Lib
下载 Simplify Tool Config Lib
下载 Simplify Tool Config Lib
下载 Simplify Tool Config Lib
下载 Simplify Tool Config Lib
- 更新适用于 Minecraft 26.3 的库
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧