Get item or entity display name procedures putting brackets

Started by CyncWolf on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Sep 2019
Points:
695

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
Get item or entity display name procedures putting brackets

I have troubles using the get display name of entity or item procedures, when i use the text i get from these procedures the name are between brackets, and I wouldn't want that, is there another way than taking the text and removing the brackets with the replace procedure ?

Active 2 years ago
Joined Mar 2020
Points:
679

User statistics:

  • Modifications: 2
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
I believe you could probably…
Mon, 05/01/2023 - 00:25

I believe you could probably just do this 

Replace "{" with "" (empty string) on: whatever
Replace "}" with "" on: whatever
Active 1 day ago
Joined Feb 2018
Points:
2015

User statistics:

  • Modifications: 1
  • Forum topics: 166
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 795
Use Substring Procedure…
Tue, 05/02/2023 - 15:23

Use Substring Procedure Block.

Set from Position to 1 and to Position to length of get Display Name - 1