How to make an overlay that displays an NBT tag of the item in hand?

Started by TheCatalystGaming on Sun, 11/08/2020 - 20:42

Topic category: Help with modding (Java Edition)

Last seen on 16:34, 18. Jan 2021
Joined Nov 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make an overlay that displays an NBT tag of the item in hand?
Sun, 11/08/2020 - 20:42 (edited)

An overlay that can display a specific NBT tag of the item in the players main hand would be really useful for testing purposes.

Edited by TheCatalystGaming on Sun, 11/08/2020 - 20:42
Last seen on 08:26, 19. Jan 2021
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You will need to write item…
Mon, 11/09/2020 - 08:53

You will need to write item data to player variable on player tick if it has your item in hand and then display this data. There is no direct link from item to player's overlay.