How to save data from gui to block or item

Started by BlockyPenguin on Sat, 11/02/2019 - 03:35

Topic category: Help with MCreator modding

Last seen on 17:49, 10. Nov 2019
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to save data from gui to block or item
Sat, 11/02/2019 - 03:35

Hi!

So I' making a mod where, when you right click on a block, the GUI opens. What I need is for the block to be able to get the text inputted from the GUI, and store it, either in an item given to the player, or in the block itself. Please bear in mind that the text may contains spaces and new lines. Is there any way of doing this?

TIA,

~Blocky

Last seen on 04:23, 14. Nov 2019
Joined Jun 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I don't think it is possible…
Sat, 11/02/2019 - 08:32

I don't think it is possible yet :(

Last seen on 17:49, 10. Nov 2019
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Aww ok. :( Thanks for saying…
Sat, 11/02/2019 - 10:47

Aww ok. :( Thanks for saying though.

Last seen on 04:23, 14. Nov 2019
Joined Jun 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
No prob   
Sat, 11/02/2019 - 10:48

No prob 

 

Last seen on 20:26, 13. Nov 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I think you can, actually…
Mon, 11/04/2019 - 16:00

I think you can, actually. You can store the text input dependency then turn it into a string variable. But I don't know if are there nbt string variables too...

Last seen on 17:49, 10. Nov 2019
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
@RaolTheBest No, not as far…
Fri, 11/08/2019 - 08:49

@RaolTheBest No, not as far as I'm aware...