MCreator-Examples / Feedback

The Feedback Repository is a place where the community can suggest ideas for future videos. In some cases, I will pick things from this repository if I feel motivated or have an idea of how to add them.
https://github.com/MCreator-Examples
6 stars 0 forks source link

Locating Substring Position #143

Closed BigMartin58 closed 1 year ago

BigMartin58 commented 1 year ago

I believe it would be useful to do a tutorial on locating the position of a substring.

Here is my youtube comment for reference:

Is it possible to get the location of a substring within text in order to replace or trim a substring dynamically? For example, I send a message of "Get block at X Y Z" but trim/replace the registry. So, "Get block at X Y Z" = "minecraft:oak_planks", but trimmed = "oak_planks" OR "mekanism:energy_cube" = "energy_cube". It seems possible, but I'm having trouble figuring out the method.

I don't know how to label as tutorial request.

northwesttreesgaming commented 1 year ago

I will work on that when I have what I have in the works done.

northwesttreesgaming commented 1 year ago

The tutorial will be posted here. https://youtu.be/hDgzMacOXHs