For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom item NBT

Adding custom NBT attributes to the item

You can specify custom NBT attributes to be merged into the custom item.

Inject NBT properties from file

This is a new feature of ItemsAdder 4.0.8

my_item_file.yml
info:
  namespace: test
items:
  test_inject_nbt_from_file:
    display_name: "Test inject NBT from file"
    components_nbt_file: "test_inject_nbt_from_file.json"
    resource:
      material: IRON_CHESTPLATE
      generate: false
      model_path: minecraft:item/diamond

Old method, inject from NBT string

NOTE

Example custom attribute

For example I want to merge these tags into my item: nbt: '{my-custom-nbt-tag:"hello this is a custom tag", another-tag:"useless"}'

Custom NBT + name Component

nbt: "{components:{"minecraft:custom_name":'{"text":"TEST", "font": "alt", "italic":false}', "minecraft:custom_data": {"bro":'asd'}}}"

Old 1.20.4 Component - don't use this

nbt: "{display:{Name:'{"text":"TEST", "font": "alt", "italic":false}'}}"

最終更新