How to use /give command with custom NBT

Started by Amomo.io on

Topic category: Help with modding (Java Edition)

Last seen on 13:59, 13. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to use /give command with custom NBT

I'm coding a mod that adds runes to items. They work like enchantments. To do that, I'm using custom NBT tag with the block "SET NBT TAG...". It works, but i can't /give myself an item with this custom tag.

Here is the command I tried : /summon item ~ ~1 ~ {Item:{id:netherite_chestplate,tag:{Rune:Resistance}},Count:1}         I wrote it correctly.

Is this even possible ?