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

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

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.