Can't rename grassless dirt
josephcsible opened this issue · 4 comments
In 1.7.10, I tried to do the following to make grassless dirt distinguishable from regular dirt:
<minecraft:dirt:1>.displayName = "Grassless Dirt";
However, when I did this, both regular and grassless dirt got renamed. I note that podzol kept its name, so the problem seems to be related to items with shared names, rather than to metadata handling. Also, NEI.overrideName works right, but its effects are only visible while the inventory screen is open.
I did some more research on this. The problem is that regular dirt and grassless dirt have the same unlocalized name, and CraftTweaker renames items by editing the translations from unlocalized names to localized names. To fix this, CraftTweaker should instead create a new unlocalized name for the item, then add a translation to the specified localized name.
This wouldn't be possible since names are localized based on their unlocalized name, not the metadata, sorry :/
I think I see a way that I can make this work. Would you accept a pull request if I figure it out?
Yip! Just don't make it too hacky please :)
On Jul 19, 2016 4:53 PM, "Joseph C. Sible" [email protected] wrote:
I think I see a way that I can make this work. Would you accept a pull
request if I figure it out?—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/32#issuecomment-233658345,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xR184nJR27jKYxkVXxDztC7c4FOgks5qXOTngaJpZM4JKrAA
.