get item display name but without the [ ]?

Started by Burner on

Topic category: Help with modding (Java Edition)

Last seen on 13:30, 8. Jun 2023
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?

Last seen on 13:50, 21. Mar 2024
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)))