feat: use item model definition to change model

use the item_model component instead of overriding a vanilla item model
definition to make the datapack/resourcepack more compatible with other
resourcepacks

created a javascript script to genenrate the item model, recipes and
translated text of items to streamline creation

changed returned item to poisonous potato since it doesn't has a use
This commit is contained in:
Guz
2026-04-25 19:55:35 -03:00
parent 9d68e3e1b1
commit af5bcd9ef8
25 changed files with 530 additions and 300 deletions

View File

@@ -1,29 +1,32 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:black_dye",
"B": "minecraft:leather_helmet",
"C": "minecraft:bone"
"B": "minecraft:bone",
"#": "minecraft:leather_helmet"
},
"pattern": ["A A", " B ", " C "],
"pattern": [
"A A",
" # ",
" B "
],
"result": {
"count": 1,
"id": "minecraft:bone",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "GUZ_EARS"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:guz_ears",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.guz_ears",
@@ -38,9 +41,15 @@
"translate": "sixsides_cosmetics.item.guz_ears.lore",
"fallback": "Are you a furry?",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}

View File

@@ -1,29 +1,32 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:bone",
"B": "minecraft:leather_helmet",
"C": "minecraft:salmon"
"B": "minecraft:salmon",
"#": "minecraft:leather_helmet"
},
"pattern": ["A A", " B ", " C "],
"pattern": [
"A A",
" # ",
" B "
],
"result": {
"count": 1,
"id": "minecraft:salmon",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "KOI_HORNS"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:koi_horns",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.koi_horns",
@@ -38,9 +41,15 @@
"translate": "sixsides_cosmetics.item.koi_horns.lore",
"fallback": "\"glub glub\"",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}

View File

@@ -1,45 +1,55 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:iron_nugget",
"B": "minecraft:leather_helmet",
"C": "minecraft:cyan_dye"
"B": "minecraft:cyan_dye",
"#": "minecraft:leather_helmet"
},
"pattern": ["ABA", "C C", "C C"],
"pattern": [
"A#A",
"B B",
"B B"
],
"result": {
"count": 1,
"id": "minecraft:cyan_dye",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "MIKU_HAIR"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:miku_hair",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.miku_hair",
"fallback": "Miku's Hair",
"color": "aqua",
"bold": true,
"italic": false
},
"minecraft:lore": [
{
"type": "translatable",
"translate": "sixsides_cosmetics.item.miku_hair.lore",
"fallback": "",
"fallback": "MIKU MIKU BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMMMMMMMMMMMMMMM",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}

View File

@@ -1,45 +1,55 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:iron_nugget",
"B": "minecraft:leather_helmet",
"C": "minecraft:yellow_dye"
"B": "minecraft:yellow_dye",
"#": "minecraft:leather_helmet"
},
"pattern": [" BA", " C", " C"],
"pattern": [
" #A",
" B",
" B"
],
"result": {
"count": 1,
"id": "minecraft:yellow_dye",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "NERU_HAIR"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:neru_hair",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.neru_hair",
"fallback": "Neru's Hair",
"color": "gold",
"color": "yellow",
"bold": true,
"italic": false
},
"minecraft:lore": [
{
"type": "translatable",
"translate": "sixsides_cosmetics.item.neru_hair.lore",
"fallback": "",
"fallback": "Im sobbing, Im falling off. Its not enough. Look, Im burning! Im yearning! But can I call it love?",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}

View File

@@ -1,33 +1,37 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:wheat",
"B": "minecraft:leather_helmet"
"#": "minecraft:leather_helmet"
},
"pattern": ["AAA", "ABA", "AAA"],
"pattern": [
"AAA",
"A#A",
"AAA"
],
"result": {
"count": 1,
"id": "minecraft:wheat",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "STRAW_HAT"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:straw_hat",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.straw_hat",
"fallback": "Straw Hat",
"color": "gold",
"color": "yellow",
"bold": true,
"italic": false
},
"minecraft:lore": [
@@ -36,9 +40,15 @@
"translate": "sixsides_cosmetics.item.straw_hat.lore",
"fallback": "Provide a little shade for your head.",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}

View File

@@ -1,45 +1,54 @@
{
"__sixsides_generator": "generate_helmet.js",
"type": "minecraft:crafting_shaped",
"category": "equipment",
"key": {
"A": "minecraft:iron_nugget",
"B": "minecraft:leather_helmet",
"C": "minecraft:red_dye"
"B": "minecraft:red_dye",
"#": "minecraft:leather_helmet"
},
"pattern": ["ABA", "C C"],
"pattern": [
"A#A",
"B B"
],
"result": {
"count": 1,
"id": "minecraft:red_dye",
"id": "minecraft:poisonous_potato",
"components": {
"minecraft:custom_data": {
"sixsides_cosmetics:model": "TETO_HAIR"
},
"minecraft:enchantable": { "value": 15 },
"minecraft:enchantments": {
"minecraft:protection": 1
"!minecraft:consumable": {},
"minecraft:enchantable": {
"value": 15
},
"minecraft:enchantment_glint_override": false,
"minecraft:equippable": {
"slot": "head",
"damage_on_hurt": false,
"equip_on_interact": true
},
"!minecraft:food": {},
"minecraft:item_model": "sixsides_cosmetics:teto_hair",
"minecraft:item_name": {
"type": "translatable",
"translate": "sixsides_cosmetics.item.teto_hair",
"fallback": "Teto's Hair",
"color": "red",
"bold": true,
"italic": false
},
"minecraft:lore": [
{
"type": "translatable",
"translate": "sixsides_cosmetics.item.teto_hair.lore",
"fallback": "",
"fallback": "but i falter on the forethought. i keep on running like a chicken with its head cut off",
"color": "white",
"bold": false,
"italic": true
}
]
],
"minecraft:repairable": {
"items": "minecraft:leather"
},
"minecraft:max_damage": 55,
"minecraft:max_stack_size": 1
}
}
}
}