Remove first and last letter of string?

Started by Drake__archer on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Sep 2021
Points:
973

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 118
Remove first and last letter of string?

I want to use the display name of the item the player is holding for something, but i want to get rid of the [ at the beginning and the ] at the end, so how would i do this?

 

A picture of a procedure would be nice

Active 3 months ago
Joined Sep 2021
Points:
973

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 118
nvm, i figured it out
Tue, 10/17/2023 - 22:24

nvm, i figured it out

Active 10 months ago
Joined Jan 2024
Points:
122

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
How does one do this?
Tue, 09/17/2024 - 15:14

How does one do this?

Active 6 months ago
Joined Dec 2022
Points:
318

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
you can solve the "[]" case…
Fri, 03/07/2025 - 06:38

you can solve the "[]" case by using the "Replace" text procedure. You replace the "[" with an empty space, "".Replace: "]" with: "" on: [Replace: "[" with: "" on: Get display name of [Provided itemstack]]