Jump to content

[1.12.2] unable to get textures/json to load


mischief247

Recommended Posts

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

idea64_2018-01-17_08-38-17.png

Edited by mischief247
added pic didnt upload last time
Link to comment
Share on other sites

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 by mischief247
moved code to tags (hopfully)
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

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.