We need TranslationTextComponent

Started by Kuri_Pa on Mon, 05/09/2022 - 03:47

Topic category: Feature requests and ideas for MCreator

Last seen on 14:11, 23. Jun 2022
Joined May 2022

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
We need TranslationTextComponent
Mon, 05/09/2022 - 03:47

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