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

When using ModelLoader.setCustomModelResourceLocation it requires a Meta value, but if I want to create an item like the clock or compass with a huge amount of Textures for one item, how would I do it?

 

I've been reading through the compass and clock item classes but can't seem to get a grip of it. Is minecraft doing something else than using this.addPropertyOverride(new ResourceLocation("time"), new IItemPropertyGetter() to change the texture of the item based on a variable? I am calculating the variable based on an nbttag of the item that is to change textures of that helps.
 

Do i need to update the item constantly for it to change textures?

  • Author
5 hours ago, diesieben07 said:

No, that is fine. Alternatively, if you don't want property overrides, but actual different models, you can use ModelLoader.setCustomMeshDefinition instead of setCustomModelResourceLocation and call ModelBakery.registerItemVariants with every model you return from the mesh definition.

 

Please clarify what you mean by "update".


I mean send it some input to know that it changed and has to rerender or something in that manner.

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.