(solved) Keeping sentences written in the GUI

Started by wowwowwow on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(solved) Keeping sentences written in the GUI
Wed, 02/19/2025 - 14:23 (edited)

Hello, I used a translator, so English sentences can be strange.

I want to make sure that the strings in the GUI input window, like a command block, stay in place even if the GUI is closed and reopened once. But no matter how hard I tried, I didn't succeed at it. What can I do to succeed in this?

Edited by wowwowwow on Wed, 02/19/2025 - 14:23
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Save the string to an NBT…
Wed, 02/19/2025 - 17:02

Save the string to an NBT tag then copy the text back into the input field using the "When this GUI is opened" event