Jump to content

Recommended Posts

Posted

The error that I am getting is:

 

[main/ERROR] [FML]: Exception loading model for variant levoment_hammertools:itemwoodsuperaxe#inventory for item "levoment_hammertools:itemwoodsuperaxe", normal location exception: 

 

and attached to it

Caused by: java.io.FileNotFoundException: levoment_hammertools:models/item/itemwoodsuperaxe.json

 

This is my repository.

 

Why is it looking for a JSON in that place when it should be looking for the Blockstate JSON and then load the OBJ from the path in the Blockstate resource JSON?

Posted

Your folder is named assets.modid

it needs to be 2 folders (/assets/modid/)

You also have to register your modid with the ObjLoader IIRC.

- A common proxy doesn’t make sense

- You MUST instantiate your objects in the appropriate registry events. Not doing this can lead to a number of bugs and/or crashes

- you’re using a bunch of other bad/outdated code practices that don’t work on modern forge versions

  • Like 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Thanks. That was the problem. The MODID value was incorrect and I needed 2 folders in the resources.

 

Now the models load and display properly.

 

May I ask why a Common Proxy doesn't make sense? I always thought that if a code needs to be executed on both, ClientProxy and ServerProxy, one could always do it from a common place instead of writing the code in each side separately. Plus one could always override methods in subclasses of a Common Proxy.

 

All in all, even though it works now, I think you are right. I must re-write the whole thing from scratch. This is a mod that started in 1.10.2 which I then ported to 1.11.2 and now finally I port it to 1.12.2. But I guess most of the things that most modders did back in the day have changed.

Posted (edited)

You might want to look at https://github.com/Cadiboo/Example-Mod/ as it explains stuff like CommonProxy. It also has links at the bottom of the README to other mods (VoidWalker’s mods probably use obj models)

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
3 hours ago, Colored Sheep said:

May I ask why a Common Proxy doesn't make sense? I always thought that if a code needs to be executed on both, ClientProxy and ServerProxy, one could always do it from a common place instead of writing the code in each side separately. Plus one could always override methods in subclasses of a Common Proxy.

If code needs to be executed on both, then it shouldn't be in a proxy at all.

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 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  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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