ContentTweaker icon indicating copy to clipboard operation
ContentTweaker copied to clipboard

[1.18.2] missing documentation. display name for created items.

Open ptk2003 opened this issue 2 years ago • 1 comments

examples generate files where all items have name "Custom Item" CF page have wrong link: https://crafttweaker.readthedocs.io/en/latest/#Mods/ContentTweaker/ContentTweaker/ (The page you were trying to reach could not be found!)

from example: <factory:item> .typed<Basic>() .tab(examplesTab) .rarity(<constant:minecraft:item/rarity:uncommon>) .build("very_basic_item"); so, how change name form "Custom Item"?

ptk2003 avatar Feb 26 '23 14:02 ptk2003

You'll need to add a lang file via a resourcepack. Folder structure for the Lang file would be as followed,

assets - contenttweaker - lang - en_us.json Then within that file to name for instance very_basic_item, you would use

"item.contenttweaker.very_basic_item": "This is now named" As for a block you would use "block.contenttweaker.custom_block": instead of item and for creative tabs it would be "ItemGroup.examplesTab":

Mikaaah avatar Jul 30 '23 15:07 Mikaaah