get item display name but without the [ ]?

Started by Burner on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
get item display name but without the [ ]?

I'm creating a random attributes mod that adds a attributes name then the items name. But the problem I'm running into is that the get item display name adds [ ] at the start and end of my item's name. Is there any way around this?

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(substring: (get display…
Thu, 08/17/2023 - 08:51

(substring: (get display name of x) from position (1) to position ( (lenght of (get display name of x) - (1)))