Jump to content

[CLOSED] [UNSOLVED] [1.8] Item issues everywhere :/


LEGOlord208

Recommended Posts

So I've started on a private mod to my friends, and I get errors about items EVERYWHERE apokitfphmbjxkcfplnböfmjkhb

 

Sorry for that.

Anyways,

    First I got a lot of "Item model not found". I fixed that by making an Item.json and a lot of stuff.

    Finally I could go to this next step. But now I got File Not Found errors. I fixed that via adding a fix to the JSON file.

    But then: I get this error "

Unidentified item: (modid):item.(itemid), id 4096

"

 

Let's just say this: Sometimes the behind the scenes Minecraft updates sucks.aöpomgbrjdjböodtmk,xDäö

 

Ok sorry, I just got really upset :P

So my question to you is: Do you know how to fix the error?

 

PS: This is my code (some things are replaced, but yeah, nothing important. Only mod details.)

@EventHandler
    public void init(FMLInitializationEvent event){
    	Item item = (Item) new item();
    	registerItem(item, event);
    }
    
    public void registerItem(Item item, FMLInitializationEvent event){
    	if(event.getSide() == Side.CLIENT)
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0,
    				new ModelResourceLocation(MODID + item.getUnlocalizedName().substring(5), "inventory"));
    	
    	GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5));
    	System.out.println(item.getUnlocalizedName().substring(5));
    }

And if I ever helped anyone with anything, let me know

I am a noob in forge

Link to comment
Share on other sites

First: Init items and register them in the FMLPreInit Event.

2nd: Register item models in your ClientProxy.

I really suggest you to make a "helper" class to make things cleaner.

 

Maybe, but this mod is supposed to be quick.

So all the models and that is going to be Proxy-fyed? I've never heard of that in any other tutorial...

And if I ever helped anyone with anything, let me know

I am a noob in forge

Link to comment
Share on other sites

First: Init items and register them in the FMLPreInit Event.

2nd: Register item models in your ClientProxy.

I really suggest you to make a "helper" class to make things cleaner.

 

I made it to a Proxy, but it's still the exact same problem:

"There is 1 missing blocks and items in this save. bla bla bla... Backup... bla bla... Missing Blocks/Items:"

 

EDIT:

Sorry, I forgot to call the proxy. My bad. Now it's actually as in the beginning: No texture found for the item :/

And no errors in the console...

And if I ever helped anyone with anything, let me know

I am a noob in forge

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.