How to display an NBT tag as text on an overlay?

Started by karstenvader on

Topic category: Advanced modding

Last seen on 03:21, 12. Feb 2020
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to display an NBT tag as text on an overlay?

I am working on a mod using a single item to store a variable in an NBT tag. This NBT tag, Mana, is used to determine what item, spells, etc the player can use, so its a pretty important value.
I want to know how I can display this value from the NBT tag onscreen as part of an overlay. Is there an easy way to do this? Is there any way? Is this an upcoming feature?

Thanks in advance.

Last seen on 00:51, 3. Nov 2020
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't know how to it with…
Wed, 02/12/2020 - 01:33

i don't know how to it with an overlay but with a procedure you can use the send message to provided entity block with action bar set to true and use a create text with block for the text and input the nbt there 

Last seen on 03:03, 6. Feb 2024
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
<NBT's:numerica:money> if…
Thu, 03/05/2020 - 08:30

<NBT's:numerica:money>

if your NBT tag is called money than just change last bit to the name of your tag and it should work