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 21:45, 23. Sep 2021
Joined Nov 2015
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
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.