Posted January 17, 20187 yr I can't get minecraft to recognize the json or texture files for my mod everything appears to be in the right folders when I check the path the log files says its looking in. the ide is intelij IDEA 2017.3.3 Edited January 17, 20187 yr by mischief247 added pic didnt upload last time
January 17, 20187 yr Author theirs the json and the item files I can upload the rest as needed also I just tested it out of curiosity it finds the json file but not the textures if i run the client from command line ie. gradlew runClient as opposed to using the intelij run command package com.mischief247.alc.items; import com.mischief247.alc.AlchemyCraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ItemTest extends Item{ public ItemTest(){ setRegistryName("testitem"); setUnlocalizedName(AlchemyCraft.MODID+".testitem"); } @SideOnly(Side.CLIENT) public void initModel(){ ModelLoader.setCustomModelResourceLocation(this,0, new ModelResourceLocation(getRegistryName(), "inventory")); } } { "parent": "minecraft:item/generated", "textures": { "layer0": "alc:items/testitem" } } Edited January 17, 20187 yr by mischief247 moved code to tags (hopfully)
January 17, 20187 yr 18 minutes ago, mischief247 said: theirs the json and the item files I can upload the rest as needed also I just tested it out of curiosity it finds the json file but not the textures if i run the client from command line ie. gradlew runClient as opposed to using the intelij run command ItemTest.java testitem.json It's better to use the code tags, just a recommendation. They are < > in the editor.
January 17, 20187 yr Author 7 minutes ago, KittenKoder said: It's better to use the code tags, just a recommendation. They are < > in the editor. thanks for the tip
January 19, 20187 yr On 1/17/2018 at 6:59 AM, mischief247 said: theirs the json and the item files I can upload the rest as needed also I just tested it out of curiosity it finds the json file but not the textures if i run the client from command line ie. gradlew runClient as opposed to using the intelij run command package com.mischief247.alc.items; import com.mischief247.alc.AlchemyCraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ItemTest extends Item{ public ItemTest(){ setRegistryName("testitem"); setUnlocalizedName(AlchemyCraft.MODID+".testitem"); } @SideOnly(Side.CLIENT) public void initModel(){ ModelLoader.setCustomModelResourceLocation(this,0, new ModelResourceLocation(getRegistryName(), "inventory")); } } { "parent": "minecraft:item/generated", "textures": { "layer0": "alc:items/testitem" } } Are your textures in the <projectroot>resources/assets/<modid>/textures directory? The compiler looks in the resources directory for the assets directory. The root directory is where you are running Gradle from most of the time.
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.