Jump to content

[SOLVED]Change in original tools' harvest level doesn't work


Recommended Posts

Posted

Hello, I'm new both to the forums and modding, but I've gone through several tutorials and I think I've got the basics down.

 

My problem is that I tried to change the original tools in Minecraft to rebalance them, but I can't seem to change the harvest level for the GOLD EnumToolMaterial. The weird thing is that all the other changes do take effect (I changed durabilities and mining speed). I wanted to make gold tools as strong as iron, but whatever I do, it keeps acting as harvest level 0 instead of 2.

 

That's the only thing I really want to do so, I haven't written anything else besides modifying those values.

 

EDIT: Added code to clarify my problem:

 

public enum EnumToolMaterial
{
    WOOD(0, 100, 3.0F, 0, 15),
    STONE(1, 200, 5.0F, 1, 5),
    IRON(2, 350, 6.0F, 2, 14),
    EMERALD(3, 1600, 8.0F, 3, 10),
    GOLD(2, 600, 12.0F, 2, 22);

 

This makes every change work except the harvest level. I tried changing the other harvest levels and they don't work either.

Posted

    WOOD(0, 59, 2.0F, 0, 15),

    STONE(1, 131, 4.0F, 1, 5),

    IRON(2, 250, 6.0F, 2, 14),

    EMERALD(3, 1561, 8.0F, 3, 10),

    GOLD(0, 32, 12.0F, 0, 22);

change to

    WOOD(0, 59, 2.0F, 0, 15),

    STONE(1, 131, 4.0F, 1, 5),

    IRON(2, 250, 6.0F, 2, 14),

    EMERALD(3, 1561, 8.0F, 3, 10),

    GOLD(2, 250, 12.0F, 2, 22);

The Korecraft Mod

Posted

I think you misunderstood my problem, I had already changed that, but the changes on the harvest level do not take effect, while every other change, like durability and mining speed do change.

 

this is what I wrote in the EnumToolMaterial

 

public enum EnumToolMaterial
{
    WOOD(0, 100, 3.0F, 0, 15),
    STONE(1, 200, 5.0F, 1, 5),
    IRON(2, 350, 6.0F, 2, 14),
    EMERALD(3, 1600, 8.0F, 3, 10),
    GOLD(2, 600, 12.0F, 2, 22);

 

I already tried changing the other harvest levels, and they do not change in game neither... anyone have any idea of what this could be?

Posted

Well, it seems no one wanted to help me with this one, but I think I worked out the problem.

The changes doesn't take ffect because they are listed in ForgeHooks with their original harvest levels.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried do download the essential mod to my mod pack but i didnt work. I paly on 1.21 and it should work. I use neoforge for my modding. The weird things is my friend somehow added the mod to his modpack and many others that I somehow can´t. Is there anything i can do? 
    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.