Documentation Error in Renaming
pap1723 opened this issue ยท 0 comments
Intro:
I was working with a script to change the Display Name of some things and came across a documentation error.
Issue Description:
https://crafttweaker.readthedocs.io/en/latest/#Vanilla/Items/Renaming/
On this page, it shows that the proper code for changing the display name is here:
'game.setLocalization(languageCode,unlocalizedName,newName);'
'game.setLocalization(tile.chest.name,"StorageBox Deluxe")`
It should read:
'game.setLocalization("tile.chest.name","StorageBox Deluxe")`
The quotes set it as a string otherwise it does not find the item.