Remove all text before a colon in a string

Started by Stevenator155 on

Topic category: Help with modding (Java Edition)

Last seen on 22:33, 28. Feb 2024
Joined Jul 2018
Points:

User statistics:

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

Last seen on 22:33, 28. Feb 2024
Joined Jul 2018
Points:

User statistics:

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

bump