Skip to content
darktire edited this page Mar 24, 2026 · 2 revisions

Description

  • this json is used to customize items, about how they will perform as baubles
  • your items_json files should be located in your_minecraft_folder/config/baubles/*
  • edit the cfg option itemsjson to set the files you want to load in your game

Format

{
  "name for the block": {
    "content": [
      "modid:item0:meta:{nbt}",
      "modid:item1:meta:{nbt}"
    ],
    "types": [
      "baubles:body",
      "baubles:elytra"
    ],
    "modules": [
        "name of the module",
        {
//            anonymous module
        }
    ],
    "addition": [
        "remove"
    ],
    "render": [
      {
        "from": "armor",
        "path": "minecraft:diamond_helmet"
      },
      {
        "from": "native",
        "path": "minecraft:pumpkin#inventory",
        "pos": "head"
      },
      {
        "from": "load",
        "path": "test:test#inventory",
        "pos": "head"
      }
    ],
    "enchantments": [
      "modid:enchantment"
    ]
  }
}

Example

Set baubles' types:

{
    "items": {
        "content": [
            "minecraft:elytra",
            "baubles:tire"
        ],
        "types": [
            "baubles:body",
            "baubles:trinket"
        ]
    }
}

Set a complex item as a bauble:

{
  "sword": {
    "content": "minecraft:diamond_sword:0:{ench:[{lvl:5S,id:16S}]}",
    "types": "baubles:trinket"
  }
}

Make an item not a bauble:

{
  "unused": {
    "content": "minecraft:elytra",
    "addition": "remove"
  }
}

Render

  • you can create a customized model for your baubles with this function
  • armor means model and texture from an existing armor
  • native means an item existing. you can load its inventory model or its variant model by modid:item#{$variant}
  • load means a model from a json. if you set the path to test:test#inventory, you should put the json in assets/test/models/item/test.json and make sure this folder or zip has been loaded

Enchantment

  • the baubles are by default supported for enchantment types of wearable and all
  • if you added enchantments in the item_block, the baubles in the content will be adjusted to support these enchantments

Clone this wiki locally