get item display name but without the [ ]?

Started by Burner on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Dec 2022
Points:
382

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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?

Active 3 months ago
Joined Jun 2022
Points:
538

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 60
(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)))