Repository navigation
Adding New Clothes
Datapacks can add new clothing variants to Style Over Substance by putting data on the styleoversubstance:custom_clothing item. Each variant can have its own name, Curios slot, worn attributes, and optional overlay textures. The examples below are for Minecraft 1.21.1.
- In your datapack, create
data/example/recipe/reinforced_jacket.json. - Paste the recipe below. It crafts a Reinforced Jacket from four Basic Fabric.
- Load the datapack and run
/reload. Craft the jacket, then right-click with it in hand to equip it in the Curios back slot. Wear it in the functional slot to get the armor bonus.
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{ "item": "styleoversubstance:basic_fabric" },
{ "item": "styleoversubstance:basic_fabric" },
{ "item": "styleoversubstance:basic_fabric" },
{ "item": "styleoversubstance:basic_fabric" }
],
"result": {
"id": "styleoversubstance:custom_clothing",
"count": 1,
"components": {
"minecraft:custom_name": "{\"text\":\"Reinforced Jacket\"}",
"styleoversubstance:clothing": {
"slot": "back"
},
"curios:attribute_modifiers": {
"modifiers": [
{
"type": "minecraft:generic.armor",
"id": "example:reinforced_jacket_armor",
"amount": 2.0,
"operation": "add_value",
"slot": "back"
}
]
}
}
}
}- Use the same slot in
styleoversubstance:clothingand in each attribute entry. Common slots arehead,necklace,backfor jackets,bodyfor shirts and bodysuits,pants, andfeet. - Change
typeto the attribute you want to modify. In the example,add_valueand2.0give the wearer +2 armor. - Add more entries to the
modifiersarray for additional bonuses. Give each bonus that should stack its own namespacedid. - Omit
curios:attribute_modifiersfor a garment with no stat bonuses.
Put a 64-by-64 PNG laid out like a Minecraft player skin in your resource pack. For example, save it at assets/example/textures/entity/overlays/reinforced_jacket.png and use this clothing component:
"styleoversubstance:clothing": {
"slot": "back",
"wide_overlay": "example:textures/entity/overlays/reinforced_jacket.png"
}Supply slim_overlay alongside wide_overlay if you have separate art for slim arms. A single overlay is used for both models when only one is supplied. Transparent pixels let the layers underneath show through. Players need the resource pack enabled to see the art.
The worn overlay and inventory icon are separate. Custom clothing uses a shared inventory icon by default. To give a variant its own icon, assign minecraft:custom_model_data in the recipe and add a corresponding model override for styleoversubstance:item/custom_clothing in the resource pack.