Posted January 15, 20214 yr 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 } } }
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.