Posted September 27, 20204 yr 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
September 28, 20204 yr 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?
September 28, 20204 yr Author 5 hours ago, Danebi said: A link to what? A link to a forum or something that shows me how to do it
September 28, 20204 yr 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.
September 28, 20204 yr 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?
September 28, 20204 yr 10 minutes ago, BandytBoss said: Where do i find the class? In the source within your IDE.
September 28, 20204 yr 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 October 7, 20204 yr 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.