Jump to content

Recommended Posts

Posted

Hello, I am currently implementing data generator for my mods and ran into some problem when trying to generate block models.

 

My mod has two mod dependencies that are mandatory. One is from me (EmbellishCraft), another one is not (Biomes O'Plenty).  The dependencies are defined in the build.gradle.

The problem comes when I want to generate a block model that uses a texture from one of the dependencies. The generator can't find them and throw this error:

Quote

Caused by: java.lang.IllegalArgumentException: Texture biomesoplenty:block/cherry_planks does not exist in any known resource pack

The texture exists in the BOP jar that is listed in my Eclipse project and a block model manually created by me and using the texture will work so Minecraft can load them fine. It's just the generator that can't and I can't figure out how to tell it to use the jar dependencies.

Same problem when trying to use a parent model from my other mod, it will crash because it doesn't find it while the files are in the jar as well.

 

For now the only way I found is to place the files in my own src/main/resources folder. But that's clearly not the best at all. How can I tell the generator to check the files in the mod dependencies so it won't crash when running?

  • 3 weeks later...
Posted

When you launch the game are those mods loaded (i.e. are the mods in your libs/mods folder)?

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

The mods are added using gradle dependencies. So they won't be in the mods folder. They're stored somewhere else but I don't know, probably in the .gradle folder in the user folders. And that's probably why the files can't be found.

 

For now I did a workaround by overriding the ExistingFileHelper exists() method and making sure it returns true when the modid is one of the mods. Not the best practice but better than duplicating files in the resources folders.

Posted
1 hour ago, KillerMapper said:

The mods are added using gradle dependencies. So they won't be in the mods folder. They're stored somewhere else but I don't know, probably in the .gradle folder in the user folders. And that's probably why the files can't be found.

Do they get loaded when you run the game though?

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

If the textures are there normally but not when you run data generators you might want to make a GitHub issue after confirming that this isn’t intended behaviour.

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)

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



×
×
  • Create New...

Important Information

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