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 want to add coins in minecraft and i want the texture to change depending of the ammount but im really new and i cant find a tutorial that teaches u how to do it step by step so please help me

image.png

kompreya-burton-minecraft-coins.jpg

  • Author
18 hours ago, diesieben07 said:

Look at how the bow changes texture based on the pull amount. You need to register an IItemPropertyGetter to ItemModelsProperties.

Do u have a link?

 

  • Author
5 hours ago, Danebi said:

A link to what?

A link to a forum or something that shows me how to do it

 

18 minutes ago, BandytBoss said:

A link to a forum or something that shows me how to do it

Maybe look inside the class itself. That could always help.

Don't ever try and take the easy way out by trying to find some tutorial that tells you exactly what you need to copy-paste. Apply your knowledge in Java and adapt to the current situation.

  • Author
1 hour ago, ChampionAsh5357 said:

Maybe look inside the class itself. That could always help.

Don't ever try and take the easy way out by trying to find some tutorial that tells you exactly what you need to copy-paste. Apply your knowledge in Java and adapt to the current situation.

Where do i find the class?

 

This post helped me when I was also tackling ItemModelProperties. You want to create a method in your item class that designates each itemstack change with a float, and register it with:

DeferredWorkQueue.runLater(() -> {
    ItemModelsProperties.func_239418_a_(
            ModItems.YOUR_ITEM, new ResourceLocation(MOD_ID, "your_item"),
            (stack, world, entity) -> YourItemClass.yourMethod(stack));
});

And then specify the texture overrides in your item model json. Also you can find vanilla classes in External Libraries => Gradle net.minecraftforge:forge:[version]

Edited by urbanxx001

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.