Store different information in equal blocks (GUI)

Started by HorizonGamma on

Topic category: Help with modding (Java Edition)

Last seen on 06:37, 18. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Store different information in equal blocks (GUI)
Fri, 01/19/2024 - 03:07 (edited)

Hello, I need help...

I have a GUI linked to a block that only has a text box and a label text that shows what I write in the text box. How do I make that each block has its own information stored in its text box? i.e. if I place 2 equal blocks and in one of the blocks I write "Hello" it does not appear in the other one? This behavior already exists, it is one of the characteristics that the command block has.

I have already tried with local variables (they are restarted when closing the GUI), with global variables (being global they are seen in all the blocks that have the GUI), with NBT and with java using variables from other files (it has the same behavior of the global ones). 

If there is any spelling mistake I apologize, English is not my native language. Thank you very much for your time.

Note: I am using MCreator 2022.2

(https://imgur.com/a/zRAkZMY)

 

Edited by HorizonGamma on Fri, 01/19/2024 - 03:07