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

Started by BIoodheaven on Sun, 03/21/2021 - 21:44

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to get NBT Tags from Player Inventory and so on?
Sun, 03/21/2021 - 21:44

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 21:29, 1. Jul 2021
Joined Aug 2020
Points:

User statistics:

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