Jump to content

Recommended Posts

Posted

So updating to 1.8 was overall not that difficult for me.

Only problem i encountered was with the way rendering works now.

I am currently trying to allow my item to have a custom model.

 

I have created a JSON model in BDCraft Cubik PRO so im assuming there aren't any problems with the model.

 

The problem im having now is that i dont get any errors but the model isn't showing.

So in my client proxy i have this:

public void postInitialize(){

	registerItemModel(FishingItems.crabCage, new ModelResourceLocation(Fishing.ID + ":models/", "crab_cage"));

	super.postInitialize();
}

public void registerItemModel(Item item, ModelResourceLocation model){
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, new ItemMeshDefinition(){

		@Override
		public ModelResourceLocation getModelLocation(ItemStack stack) {
			return model;
		}

	});
}

 

So i dont know where to start since im still new to 1.8 and got no errors and the methods are getting called aswell.

 

*I noted that i doesnt matter if i change the name in my model resource location, it always goes points the the unlocalized name of the item

 

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.