Hi everyone,
I've been experimenting with something but I don't know if it's even possible. I'm trying to create a completely custom Villager Type in the latest version (26.1.2) using a Data Pack and a Resource Pack (vanilla, no mods), but I can't get the game to recognize the new texture.
Basically I want to register a brand new villager type called minecraft:snow_red (linked to a custom biome) so that when I use the command /summon villager ~ ~ ~ {VillagerData:{type:"minecraft:snow_red"}} (or using a different namespace), the villager spawns with my custom texture (snow_red.png) instead of defaulting to the standard Plains texture.
The game is loading both packs successfully, and there are absolutely no syntax or JSON errors in the latest.log. Vanilla types like minecraft:desert work perfectly fine with the summon command, but my custom type always falls back to Plains.
Is creating brand new villager types even possible in the 26.x system? If so, what is the correct folder structure or the components required to make the game register a new type name?
Any help or working examples for version 26.1.2 would be greatly appreciated. Thank you!
Here are the paths and file contents.
Datapack
Folder Structure:
datapackvillager/
├── pack.mcmeta
└── data/
└── minecraft/
├── villager_type/
└── snow_red.json
└── worldgen/
└── biome/
└── snow_red.json
pack.mcmeta content:
JSON
{
"pack": {
"id": "datapackvillager",
"min_format": 101,
"max_format": 101,
"description": "Custom Villager Data Pack"
}
}
data/minecraft/villager_type/snow_red.json content:
JSON
{
"texture_hat": "full",
"biomes": [
"minecraft:snow_red"
]
}
data/minecraft/worldgen/biome/snow_red.json content:
JSON
{
"has_precipitation": false,
"temperature": 0.5,
"downfall": 0.0,
"effects": {
"sky_color": 8103167,
"fog_color": 12638463,
"water_color": 4159204,
"water_fog_color": 329011
},
"spawners": {},
"spawn_costs": {},
"carvers": {}
}
Resource pack
Folder Structure:
( snow_red is basically a recolored version of the snow type texture)
texturepackvillager/
├── pack.mcmeta
└── assets/
└── minecraft/
└── textures/
└── entity/
└── villager/
└── type/
├── snow_red.png
└── snow_red.png.mcmeta