forked from Azanor/Baubles
-
Notifications
You must be signed in to change notification settings - Fork 2
Items
darktire edited this page Mar 24, 2026
·
2 revisions
- 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
itemsjsonto set the files you want to load in your game
{
"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"
]
}
}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"
}
}- you can create a customized model for your baubles with this function
-
armormeans model and texture from an existing armor -
nativemeans an item existing. you can load its inventory model or its variant model bymodid:item#{$variant} -
loadmeans a model from a json. if you set the path totest:test#inventory, you should put the json inassets/test/models/item/test.jsonand make sure this folder or zip has been loaded
- the baubles are by default supported for enchantment types of
wearableandall - if you added
enchantmentsin the item_block, the baubles in the content will be adjusted to support these enchantments