mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2025-12-31 04:36:45 +00:00
This PR:
Implements zombie villager biomes and professions
Utilizes the minecraft:zombie_villager_v2 entity
Main Geyser will need to be updated to send profession data for zombie villagers. Users without optional pack will still be able to take advantage of biome specific zombie villager textures with such an update.
Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
102 lines
5.5 KiB
JSON
Executable File
102 lines
5.5 KiB
JSON
Executable File
{
|
|
"format_version": "1.8.0",
|
|
"minecraft:client_entity": {
|
|
"description": {
|
|
"identifier": "minecraft:zombie_villager_v2",
|
|
"materials": {
|
|
"default": "zombie_villager_v2",
|
|
"masked": "zombie_villager_v2_masked"
|
|
},
|
|
"textures": {
|
|
"default": "textures/entity/zombie_villager2/zombie-villager",
|
|
"desert": "textures/entity/zombie_villager2/biomes/biome-desert-zombie",
|
|
"jungle": "textures/entity/zombie_villager2/biomes/biome-jungle-zombie",
|
|
"plains": "textures/entity/zombie_villager2/biomes/biome-plains-zombie",
|
|
"savanna": "textures/entity/zombie_villager2/biomes/biome-savanna-zombie",
|
|
"snow": "textures/entity/zombie_villager2/biomes/biome-snow-zombie",
|
|
"swamp": "textures/entity/zombie_villager2/biomes/biome-swamp-zombie",
|
|
"taiga": "textures/entity/zombie_villager2/biomes/biome-taiga-zombie",
|
|
"armorer": "textures/entity/villager2/professions/armorer",
|
|
"butcher": "textures/entity/villager2/professions/butcher",
|
|
"cartographer": "textures/entity/villager2/professions/cartographer",
|
|
"cleric": "textures/entity/villager2/professions/cleric",
|
|
"farmer": "textures/entity/villager2/professions/farmer",
|
|
"fisherman": "textures/entity/villager2/professions/fisherman",
|
|
"fletcher": "textures/entity/villager2/professions/fletcher",
|
|
"leatherworker": "textures/entity/villager2/professions/leatherworker",
|
|
"librarian": "textures/entity/villager2/professions/librarian",
|
|
"shepherd": "textures/entity/villager2/professions/shepherd",
|
|
"tool_smith": "textures/entity/villager2/professions/toolsmith",
|
|
"weapon_smith": "textures/entity/villager2/professions/weaponsmith",
|
|
"stonemason": "textures/entity/villager2/professions/stonemason",
|
|
"nitwit": "textures/entity/villager2/professions/nitwit",
|
|
"unskilled": "textures/entity/zombie_villager2/professions/armorer",
|
|
"level_stone": "textures/entity/villager2/levels/level_stone",
|
|
"level_iron": "textures/entity/villager2/levels/level_iron",
|
|
"level_gold": "textures/entity/villager2/levels/level_gold",
|
|
"level_emerald": "textures/entity/villager2/levels/level_emerald",
|
|
"level_diamond": "textures/entity/villager2/levels/level_diamond"
|
|
},
|
|
"geometry": {
|
|
"default": "geometry.zombie.villager_v2"
|
|
},
|
|
"scripts": {
|
|
"pre_animation": [
|
|
"v.num_professions = 14;",
|
|
"v.profession_index = ((q.variant < v.num_professions) ? q.variant : 0);",
|
|
"v.tcos0 = (Math.cos(q.modified_distance_moved * 38.17) * q.modified_move_speed / v.gliding_speed_value) * 57.3;",
|
|
"v.level_index = (q.trade_tier);"
|
|
]
|
|
},
|
|
"animations": {
|
|
"humanoid_big_head": "animation.humanoid.big_head",
|
|
"humanoid_base_pose": "animation.humanoid.base_pose",
|
|
"look_at_target_default": "animation.humanoid.look_at_target.default",
|
|
"look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
|
|
"look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
|
|
"move": "animation.humanoid.move",
|
|
"riding.arms": "animation.humanoid.riding.arms",
|
|
"riding.legs": "animation.humanoid.riding.legs",
|
|
"holding": "animation.humanoid.holding",
|
|
"brandish_spear": "animation.humanoid.brandish_spear",
|
|
"charging": "animation.humanoid.charging",
|
|
"attack.rotations": "animation.humanoid.attack.rotations",
|
|
"sneaking": "animation.humanoid.sneaking",
|
|
"bob": "animation.humanoid.bob",
|
|
"damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
|
|
"bow_and_arrow": "animation.humanoid.bow_and_arrow",
|
|
"use_item_progress": "animation.humanoid.use_item_progress",
|
|
"zombie_attack_bare_hand": "animation.zombie.attack_bare_hand",
|
|
"swimming": "animation.zombie.swimming"
|
|
},
|
|
"animation_controllers": [
|
|
{ "humanoid_baby_big_head": "controller.animation.humanoid.baby_big_head" },
|
|
{ "humanoid_base_pose": "controller.animation.humanoid.base_pose" },
|
|
{ "look_at_target": "controller.animation.humanoid.look_at_target" },
|
|
{ "move": "controller.animation.humanoid.move" },
|
|
{ "riding": "controller.animation.humanoid.riding" },
|
|
{ "holding": "controller.animation.humanoid.holding" },
|
|
{ "brandish_spear": "controller.animation.humanoid.brandish_spear" },
|
|
{ "charging": "controller.animation.humanoid.charging" },
|
|
{ "attack": "controller.animation.humanoid.attack" },
|
|
{ "sneaking": "controller.animation.humanoid.sneaking" },
|
|
{ "bob": "controller.animation.humanoid.bob" },
|
|
{ "damage_nearby_mobs": "controller.animation.humanoid.damage_nearby_mobs" },
|
|
{ "bow_and_arrow": "controller.animation.humanoid.bow_and_arrow" },
|
|
{ "use_item_progress": "controller.animation.humanoid.use_item_progress" },
|
|
{ "zombie_attack_bare_hand": "controller.animation.zombie.attack_bare_hand" },
|
|
{ "swimming": "controller.animation.zombie.swimming" }
|
|
],
|
|
"render_controllers": [
|
|
"controller.render.zombie_villager_v2_base",
|
|
"controller.render.zombie_villager_v2_masked",
|
|
"controller.render.villager_v2_level"
|
|
],
|
|
"enable_attachables": true,
|
|
"spawn_egg": {
|
|
"texture": "spawn_egg",
|
|
"texture_index": 42
|
|
}
|
|
}
|
|
}
|
|
} |