Started by
_Ness
on
Topic category: Advanced modding
I'm trying to add lore/item information on armor pieces via code editing, but I can't figure out what I have to do. Can someone please help me on that ?
Topic category: Advanced modding
I'm trying to add lore/item information on armor pieces via code editing, but I can't figure out what I have to do. Can someone please help me on that ?
override the addInformation method in your item's class
Could you be a bit more precise please ? I don't understand completely...
after you created the armor element, save it and go to the main window where all your mod elements are displayed.
on the left of the window click the button "Edit code of selected mod element".
you will see in the code lines like this:
elements.items.add(() -> new ItemArmor(enuma, 0, EntityEquipmentSlot.HEAD) { .... }
there's code blocks like this for each of your armor pieces. in the one you want to add text info, add this method: