跳到正文

Simplify Tool Config Lib

作者:RayvaxLux1206

Simplify your modded tools configuration with a single value on each tool properties.

收藏

截图

介绍

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

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 支持哪些 Minecraft 版本?

Simplify Tool Config Lib 支持 Minecraft Java 版 1.20–26.3,共 24 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Simplify Tool Config Lib 怎么安装?

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

评论

登录后评论和评分

RayvaxLux1206 的其他作品

查看全部 →