How to separate a string into multiple smaller strings?

Started by TheCatalystGaming on Fri, 11/13/2020 - 20:27

Topic category: Help with modding (Java Edition)

Last seen on 19:45, 26. Jan 2021
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to separate a string into multiple smaller strings?
Fri, 11/13/2020 - 20:27

I'm creating a Dungeon Management System for my mod, and part of it is "linking" dungeon-related blocks like teleporters, etc. to the main Dungeon Manager block. The user would enter the coordinates of a block they want to connect into a textfield in a format like this:   x,y,z   I'm unsure how to separate this string into three smaller strings, using the commas as dividers. Any help would be greatly appreciated.

Last seen on 11:11, 26. Jan 2021
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could make seperate text…
Fri, 11/13/2020 - 20:53

You could make seperate text fields for x y and z.