We need TranslationTextComponent

Started by Kuri_Pa on

Topic category: Feature requests and ideas for MCreator

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
We need TranslationTextComponent

Add a check box in the Special information
Can change "import net.minecraft.util.text.StringTextComponent;" to "import net.minecraft.util.text.TranslationTextComponent;"
and change "list.add(new StringTextComponent("some strings"));" to the "list.add(new TranslationTextComponent("item.modname.itemname.tooltip_1"));"
and join the TranslationKey(item.modname.itemname.tooltip_1)to the lang.json