Simplify Tool Config Lib

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

869

Quick challenge

How far can you run before the mobs catch you?

Simplify Tool Config Lib

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))));

ADS