#Make Display Name 1st letter capital?

5 messages · Page 1 of 1 (latest)

lone geode
#

I make things like Sheetmetal, which have registry names that don't match their display name from the original mod. So I add the registry id like how IE does it:

.create(`sheetmetal_${mat}`)
.displayName(`${mat} Sheetmetal`)
```The problem with that is, I keep strings in the var (Const mat of a global var, with the strings) lowercase completely, which makes the material lowercase. So I'm wondering if there's a way to make them properly uppercase.
https://github.com/FooterMan15/KJS-Datagen-Scripts/blob/main/startup_scripts/sheetmetal.js
wet plumeBOT
#

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

woven drum
#
`${mat.charAt(0).toUpperCase() + mat.slice(1)} Sheetmetal`
oak ivy
lone geode