How do i add nbt tags

Started by Justerfrog5557 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i add nbt tags

No matter what i do, i can't figure out how to give an nbt tag to a block. i can't find any online tutorials for it. the area that looks like it should have them only has block inventory. please help!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's probably too late to…
Mon, 08/10/2020 - 12:58

It's probably too late to help but I found this while trying to figure out the same problem. It turns out that all you need to do to add an nbt tag to a block, entity or item, is give it a value. To do this for a block go to the "Block Procedures" tab and scroll down until you see six blocks that say:

(set/get) nbt (logic/number/text) tag ("tag name") of block at (xyz) if it has tile entity

If you then put one of the set blocks in your procedure when it gets run it should create a nbt tag for the block of the name that you put in the ("tag name") parameter. To read the value of the nbt tag, just use the get block. To give an nbt tag to an entity or item you can just use similar blocks in entity/item procedures. 

You can find some more information about this on the Variables MCreator page found at this link: https://mcreator.net/wiki/variables. The very last video titled "MCreator Tutorial: How to use NBT Variables | 2020.2" helped me figure this out.

If you have any questions, don't hesitate to ask!

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is too late but thanks…
Wed, 08/12/2020 - 02:11

It is too late but thanks anyway.