How to separate a string into multiple smaller strings?

Started by TheCatalystGaming on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to separate a string into multiple smaller strings?

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.

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.