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

Started by karstenvader on Wed, 02/12/2020 - 01:11

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to display an NBT tag as text on an overlay?
Wed, 02/12/2020 - 01:11

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 06:39, 24. Apr 2020
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:18, 3. Jun 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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