Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • 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 by mischief247
moved code to tags (hopfully)

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. 

  • 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

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.