Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ptk2003 opened this issue Feb 26, 2023 · 1 comment
Open

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

ptk2003 opened this issue Feb 26, 2023 · 1 comment

Comments

@ptk2003
Copy link

ptk2003 commented Feb 26, 2023

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"?

@Mikaaah
Copy link

Mikaaah commented Jul 30, 2023

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":

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants