How to convert a string to all lowercase?

Started by TheCatalystGaming on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Nov 2015
Points:
916

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 47
How to convert a string to all lowercase?

I have various strings that are capitalised, and I would like to replace the capitals with lowercase letters. However the strings are of varying lengths and content. I could use "Replace x with y in z", but I would have to do that 26 times for every letter. Is there a better solution?

Active 3 years ago
Joined Nov 2018
Points:
979

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
String toLowerCase() Add a…
Sat, 11/21/2020 - 20:37

String toLowerCase()

Add a custom code snippet and add whatever the strings name is to ".toLowerCase()"

Active 3 years ago
Joined Nov 2018
Points:
979

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
E.g name.toLowerCase();
Sat, 11/21/2020 - 20:40

E.g name.toLowerCase();

Active 2 years ago
Joined Nov 2015
Points:
916

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 47
Thanks, this worked!
Sun, 11/22/2020 - 13:32

Thanks, this worked!

Active 3 years ago
Joined Nov 2018
Points:
979

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
:D
Sun, 11/22/2020 - 17:16

:D