How do the NBT functions work?

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 do the NBT functions work?

Hi,

I'm wondering how the NBT functions work with the Get NBT from string or Set NBT from string to value.
Can the Get NBT be used for vanilla NBTs and if so how do you do it?

I suggest you check our…
Wed, 03/24/2021 - 10:53

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did watch some of them…
Wed, 03/24/2021 - 17:32

I did watch some of them regarding the topic NBT.
However is it possible to change vanilla nbts or get them via String output?

I just want to get the Item I have selected with my hand with the full id.

I tried to use NBT Get String >SelectedItem< to maybe gain access to the id but NBT can't find the value because it probably looks for >ForgeData:SelectedItem<.

I'm struggling to solve this, I want to summon a Armor_Stand with the selected Item on it but I need to have id of minecraft:stone | mymodid:customblock instead of stone | customblock. Is there any way to do this?

/data get .... isnt an option because it cant store value to use it later on my /summon command or can it?

However is it possible to…
Sat, 03/27/2021 - 20:31

However is it possible to change vanilla nbts or get them via String output?

Without code, not yet

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Got ya, I used the File…
Tue, 03/30/2021 - 17:08

Got ya, I used the File Manager Plugin in order to achieve my plan, works perfectly now.