Why isn't this procedure working (Number from Text)

Started by Twebster9000 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why isn't this procedure working (Number from Text)

I have been working on this one procedure for the better part of a week now and I cannot figure out why it doesn't do what it's supposed to.

https://imgur.com/a/W1OlYb7

Here's what I think it should be doing: When Player sends chat, for instance "Kaioken 2", it will detect that the text contains the world "Kaioken" (this part works). It will then set number global variable "Kaioken" to the number within the chat. Then to see if it worked I added a message including the raw number from the chat as well as the current number in the variable.

Can someone please tell me why this isn't working?