#Renaming mod isn't working

6 messages · Page 1 of 1 (latest)

quiet harness
#

I'm trying to rename the mod create_things_and_misc, and it is not working. Here is the relevant startup script:js // Fix capitalization in Create Things & Misc's name as it appears in tooltips Platform.mods.create_things_and_misc.setName("Create: Things & Misc") I have also tried```js
// Fix capitalization in Create Things & Misc's name as it appears in tooltips
Platform.mods.create_things_and_misc.name = "Create: Things & Misc"

What am I doing wrong?
scenic reefBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

quiet harness
#

I added some logging lines to see if the mod name is being fetched correctly, and if it's being changed correctly:js // Fix capitalization in Create Things & Misc's name as it appears in tooltips console.log(Platform.mods.create_things_and_misc.name) Platform.mods.create_things_and_misc.name = "Create: Things & Misc" console.log(Platform.mods.create_things_and_misc.name) The log yielded this:```
[15:06:33] [INFO ] Loaded script startup_scripts:item_modification.js in 0.121 s
[15:06:33] [INFO ] startup_scripts:mod_rename.js:2: create: things and misc
[15:06:33] [INFO ] startup_scripts:mod_rename.js:4: Create: Things & Misc
[15:06:33] [INFO ] Loaded script startup_scripts:mod_rename.js in 0.01 s
[15:06:33] [INFO ] Loaded 2/2 KubeJS startup scripts in 1.042 s

scenic reefBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

quiet harness
#

So I have no idea why it doesn't appear changed in game-

quiet harness
#

I tested the script with just JEI, Jade, KubeJS, the mod I'm trying to rename and their dependencies- the name still doesn't change in game.