How to use NBT text tag in a GUI?

Started by LeNanic0 on

Topic category: Help with modding (Java Edition)

Last seen on 14:42, 26. May 2020
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to use NBT text tag in a GUI?

How can I use the new NBT text tag in a GUI?

I need to show some informations that use NBT text tag, but it does not to appear a option in the GUI to show this kind of features, someone can help me?

Last seen on 13:50, 6. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It depends on your version…
Fri, 03/27/2020 - 19:49

It depends on your version of MCreator. You need to use MCreator 2020.2 and then you create a GUI. In the GUI, you create a text and it'll show u a little arrow next to the text, click on it and select the NBT tag you want (either a entity/player NBT tag so it will be <ENBT:number/...:name> and replace "name" by the name of your NBT tag. If it's a block's NBT tag, it will just be BNBT instead of ENBT

Last seen on 14:42, 26. May 2020
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using MCreator 2020.2…
Sat, 03/28/2020 - 12:48

I'm using MCreator 2020.2 and, in the GUI editor, there is no option to use the NBT tag for text, but I solved it with some easy coding

Here is the image of the code modification compared to the original generated by MCreator:
https://drive.google.com/open?id=1bSUVaRLSG8yIfjf5d0l6PGV2sE5rlBPS

I changed the double, getDouble and 0, generated by the code, to String, getString and "" respectively.

 

Last seen on 13:50, 6. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You don't have this?…
Sat, 03/28/2020 - 12:51

You don't have this? Seriously? Are you sure you're in MCreator 2020.2?
test

Last seen on 14:42, 26. May 2020
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I do have it and I am using…
Sun, 03/29/2020 - 00:15

I do have it and I am using MCreator 2020.2, but do you see in some of these fields for BNBT saying that it is for a "String" or a text?
I don't think you understand what I said. But you can do an example to show me how I can get the information in an NBT tag text with these options in the GUI

Last seen on 13:50, 6. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well just replace "number"…
Sun, 03/29/2020 - 00:47

Well just replace "number" or "integer" by "string" and see if it works

Last seen on 14:42, 26. May 2020
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried this and it didn't…
Sun, 03/29/2020 - 01:15

I tried this and it didn't work, so I had to do some coding, but it was simple. Anyway thanks for trying to help me, whenever I ask for information people never help me, but you tried ... thank you very much ^^

Last seen on 15:54, 6. Jun 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you do the Code?
Sun, 03/29/2020 - 12:38

How did you do the Code?