Remove all text before a colon in a string

Started by Stevenator155 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jul 2018
Points:
688

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Remove all text before a colon in a string

Im trying to replace a block with a falling block while also applying motion to it, and to do that I need the blocks registry name but

when I get the registry name of a block it also has "minecraft:" or "mod_name:" behind it, and to summon a falling block that won't work if it has those behind it.

So I need to remove all of the text before and including the ":"

Im open to code suddgestions, Ive already looked up to see if I could find something but Im not one to know where to look.

Active 1 year ago
Joined Jul 2018
Points:
688

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
bump
Mon, 09/18/2023 - 20:39

bump