How to use /give command with custom NBT

Started by Amomo.io on

Topic category: Help with Minecraft modding (Java Edition)

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 ?