How to get NBT Tags from Player Inventory and so on?

Started by BIoodheaven on

Topic category: Help with modding (Java Edition)

Last seen on 11:58, 5. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get NBT Tags from Player Inventory and so on?

Hello,

I'm trying to get NBT Tags and their value output to be stored in a String variable to later Substring it and use it elsewhere.
in a /execute Command function. 

This is the NBT function I try to use

NBT

Whenever I try to output a Message with this function it returns just nothing, SelectedItem is a valid NBT Tag for the Player, why do I not get any results, do I miss something? It drives me real crazy. Like you cant even store freshly made Entities / Blocks in the procedures after you created them or am I just stupid?

Last seen on 14:30, 2. Aug 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It sounds to me like what…
Wed, 04/21/2021 - 10:44

It sounds to me like what you're doing should work... Could you include more of the code you're trying to make?