Let’s add a tool tip to our item and our blocks Minecraft modding courses with close to 100 topics ranging from Custom tools and armor to custom block entities all the way to custom mobs Linked In the description below oh right we finish this back in general once more and in This tutorial we’re gonna be adding a custom tool tip to our item and also a block here in this case now for a custom tool tip what you will need is a custom item class so for example the metal detector item is absolutely perfect for this and literally the only thing you Need to do is you need to override the append hover text method over here and then add a component to the tooltip components list over here and that is it that will basically get you a custom tool to when you hover over this so we can say the tooltip components.ad and Passing in component dot either literal or translatable in this case I’m going to show a translatable one and in the soundblog I will show a literal one the translatable just means that we have to define a key so for example tooltip.tutorial mode dot metal underscore detector Dot tooltip Something like that and then this key has to be translated in the Ian underscore us Json file or of course in another language that is the idea so this one defines valuables underground there we go and you can now use this key as well for translating it into other Languages that’s why the components are translatable usually is the better option if you have something displayed and for the sound block let’s just also go in here and well override the append hovertex method same thing we are going to say the tooltip.ad and we’re going to add a component that literally here in This case and this is going to be makes sweet sounds when right clicked and of course the disadvantage over here in this case is that this is going to be displayed the same way for each language so even if we were to change the language this would always be in English Most of the morning Community probably plays in English but regardless it is quite easy to use the translatable so I do recommend using that but that is actually all that we need so let’s jump into the game and see if it works alright fans that’s back in Minecraft And let’s take a look if I hover over the metal detector you can see finds valuables underground and the sound block makes sweet sounds when right click absolutely fantastic and that is Custom Tool tips added to your mod and that’s it for this tutorial right here Next time we will take a look at tags right here hope to see you there so yeah Video Information
This video, titled ‘Forge Modding Tutorial – Minecraft 1.20: Custom Tooltips | #10’, was uploaded by Modding by Kaupenjoe on 2023-08-02 14:59:48. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
In this Minecraft Modding Tutorial for Forge, we are adding custom tooltips to a custom Item and a custom Block == MODDING …