Started by
SparkleArts
on
Topic category: Help with MCreator software
I want to make an Mod with Text Input with NUM tag but I don't know how it is works. Can someone help?
Topic category: Help with MCreator software
I want to make an Mod with Text Input with NUM tag but I don't know how it is works. Can someone help?
There is a procedure in GUI section that gets the text value of the text field, you can then use string to number procedure block.
This procedure does not work for me, am I doing something wrong?
When I test it in game, whenever I press the button that calls the action, the text I put does not appear, it stays blank.
I can confirm that the "when this GUI opened" doesn't allow the text in the textfield to be added, but GUI open tick does. No amount of waiting ticks before running the procedure works either, I believe this to be a genuine bug. This is my first comment lol, I have run into the same problem and made an account. If I find a way around it, I'll let you know.
Setting text in GUI is client-side only procedure
What, the only part of that I see as relevant to this is my comment on wait ticks, the standard wait block is serverside, however I made one for client side use as a large part of my mod is handled client side. I'm simply saying that the guiopen procedure either does not run, or doesn't talk to the GUI. I have found a way around it by using the tick while open procedure printing text into a hidden, empty text box and if textbox isn't empty, the if condition to put the text in the visible box is passed, only running it once