Jump to content

[1.16.4] Data Generator won't find resources folder


kiou.23

Recommended Posts

I'm using Data Generators to generate the models and block states files, however, when I run runData, it errors with IllegalArgumentException, "Texture effetewood:block/effete_planks does not exist in any know resource pack". Even tho there's a png with the correct name in the textures/block folder.

this is the registerStatesAndModel:

@Override
    protected void registerStatesAndModels() {

        ResourceLocation name = ModBlocks.EFFETE_PLANKS.get().getRegistryName();
        Main.LOGGER.info(name.getNamespace() + ":" + ModelProvider.BLOCK_FOLDER + "/" + name.getPath());

        simpleBlock(ModBlocks.EFFETE_PLANKS.get());

        logBlock(ModBlocks.EFFETE_STEM.get());
        logBlock(ModBlocks.STRIPPED_EFFETE_STEM.get());
    }

and this is the data section in the build.gradle:

data {
  workingDirectory project.file('run')

    // Recommended logging data for a userdev environment
    property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'

    // Recommended logging level for the console
    property 'forge.logging.console.level', 'debug'

    // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
    args '--mod', 'effetewood', '--all',
      '--existing', file('src/main/resources/').toString(),
      '--existing', file('src/generated/resources/').toString(),
      '--output', file('src/generated/resources/')

    mods {
      effetewood {
      	source sourceSets.main
      }
    }
}

 

Link to comment
Share on other sites

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.