CraftTweaker

CraftTweaker

186M Downloads

Using .displayName doesn't work for some items.

moil-73 opened this issue ยท 2 comments

commented

Issue description

Ok so I'm trying to change the names of items so that they match better within their set, and for most items, like ae2 storage components, ender io conduits, and extra cells cells and components. for the conduits, it works fine, and for the ae2 stuff, it also works fine. only the fluid and gas storage cells added by AE Additions dont get their name changed. well they do, its just that from 1k to 4096k for gas, all of them have the name for the just the 4096k version. for the fluid cells, since 1k to 64k are added by ae2, and im trying to get the names matched with the ae2 stufff, only the 256k to 4096k have their names changed, and again, they all have the name for the 4096k version. At first, i thought it was a problem with the mod, but the item storage cells have their names changed to fit, and it all works great. its just the fluid and gas CELLS and the item storage COMPONENTS (same problem for those, all of them have the 16384k name)

Steps to reproduce

Run Minecraft version 1.12.2 Forge on Curseforge Launcher
Install Applied Energistics 2 (im using AE2UEL but that shouldnt change anything because its the same base mod)
Install AE Additions - Extra Cells 2 Fork
-If they need library mods, install those too
-I have more mods installed as well, I can send modpack file if you want
Change the names of the items using .displayName
See if it's broken

Script used

https://pastebin.com/GQE0JmGM

The crafttweaker.log file

https://pastebin.com/DCBxXS0a

Minecraft version

1.12

Modloader

Forge

Modloader version

14.23.5.2859

CraftTweaker version

4.1.20.703

Other relevant information

you can probably ignore the recipe removes for wyvern armor and grout, they most likely arent the reason for this problem, i just have them in the same text file. Also, same thing with the errors for content tweaker, the errors dont affect gameplay, as the items are still added.

I used a gist for latest.log because it exceeded pastebin's 512kb limit

The latest.log file

https://gist.github.com/moil-73/073b86d8dd86ba53de422dce432d56ab

commented

let me know if you need any more information

commented

The way that .displayName works is by overriding the translation key used by the item, however mods can override the getItemStackDisplayName() method in Item to not use the translation key at all, so there is nothing that can be done to solve this.