KubeJS (Old)

KubeJS (Old)

3M Downloads

Ability to add the "flavor text" to custom upgrade/trim templates

generikb opened this issue · 5 comments

commented

Describe the feature

Hello!

Would be great to be able to add the "Applies To", "Ingredients", "Title", "Base Slot", and "Additions Slot" descriptions to custom upgrade/trim template items. (see screenshot below)

image

thanks!

Additional info

No response

commented

Nice! Thanks all!

commented

Can’t you just use the ItemEvents.tooltip event?

correct me if I’m wrong I don’t know shit about 1.20 :hih:

commented

Yes, you could just use the tooltip event, however having an item type would make it easier to match the formatting and in the case a mod uses instanceof SmithingTemplateItem to determine something then custom smithing templates would support that.

commented

After working on this I have also realised that the tooltip event doesn't allow you to set the custom text and icons in the smithing table. There may be a way to work around that, but a smithing template item type is the easiest way to add that behaviour.

commented

Implemented by @ChiefArug in #768 \o/