Files
MinecraftLegends/Win32.DX11.Release/data/behavior_packs/badger/entities/villager.json
T
2026-03-08 15:34:38 -05:00

1044 lines
29 KiB
JSON

{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"become_witch": {
"minecraft:transformation": {
"into": "minecraft:witch",
"delay": 0.5
}
},
"become_zombie": {
"minecraft:transformation": {
"into": "minecraft:zombie_villager"
}
},
"behavior_peasant": {
"minecraft:shareables": {
"items": [
{
"item": "minecraft:bread",
"want_amount": 3,
"surplus_amount": 6
},
{
"item": "minecraft:carrot",
"want_amount": 60,
"surplus_amount": 4
},
{
"item": "minecraft:potato",
"want_amount": 60,
"surplus_amount": 24
},
{
"item": "minecraft:beetroot",
"want_amount": 60,
"surplus_amount": 24
},
{
"item": "minecraft:wheat_seeds",
"want_amount": 64,
"surplus_amount": 64
},
{
"item": "minecraft:beetroot_seeds",
"want_amount": 64,
"surplus_amount": 64
},
{
"item": "minecraft:wheat",
"want_amount": 45,
"surplus_amount": 18,
"craft_into": "minecraft:bread"
}
]
},
"minecraft:behavior.harvest_farm_block": {
"priority": 9,
"speed_multiplier": 0.5
}
},
"behavior_non_peasant": {
"minecraft:shareables": {
"items": [
{
"item": "minecraft:bread",
"want_amount": 3,
"surplus_amount": 6
},
{
"item": "minecraft:carrot",
"want_amount": 12,
"surplus_amount": 24
},
{
"item": "minecraft:potato",
"want_amount": 12,
"surplus_amount": 24
},
{
"item": "minecraft:beetroot",
"want_amount": 12,
"surplus_amount": 24
}
]
}
},
"farmer": {
"minecraft:type_family": {
"family": [ "villager", "peasant", "farmer" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:trade_table": {
"display_name": "entity.villager.farmer",
"table": "trading/farmer_trades.json"
}
},
"fisherman": {
"minecraft:type_family": {
"family": [ "villager", "peasant", "fisherman" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:trade_table": {
"display_name": "entity.villager.fisherman",
"table": "trading/fisherman_trades.json"
}
},
"shepherd": {
"minecraft:type_family": {
"family": [ "villager", "peasant", "shepherd" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:trade_table": {
"display_name": "entity.villager.shepherd",
"table": "trading/shepherd_trades.json"
}
},
"fletcher": {
"minecraft:type_family": {
"family": [ "villager", "peasant", "fletcher" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:trade_table": {
"display_name": "entity.villager.fletcher",
"table": "trading/fletcher_trades.json"
}
},
"librarian": {
"minecraft:type_family": {
"family": [ "villager", "librarian" ]
},
"minecraft:variant": {
"value": 1
},
"minecraft:trade_table": {
"display_name": "entity.villager.librarian",
"table": "trading/librarian_trades.json"
}
},
"cartographer": {
"minecraft:type_family": {
"family": [ "villager", "cartographer" ]
},
"minecraft:variant": {
"value": 1
},
"minecraft:trade_table": {
"display_name": "entity.villager.cartographer",
"table": "trading/cartographer_trades.json"
}
},
"cleric": {
"minecraft:type_family": {
"family": [ "villager", "priest", "cleric" ]
},
"minecraft:variant": {
"value": 2
},
"minecraft:trade_table": {
"display_name": "entity.villager.cleric",
"table": "trading/cleric_trades.json"
}
},
"weaponsmith": {
"minecraft:type_family": {
"family": [ "villager", "blacksmith", "weaponsmith" ]
},
"minecraft:variant": {
"value": 3
},
"minecraft:trade_table": {
"display_name": "entity.villager.weapon",
"table": "trading/weapon_smith_trades.json"
}
},
"toolsmith": {
"minecraft:type_family": {
"family": [ "villager", "blacksmith", "toolsmith" ]
},
"minecraft:variant": {
"value": 3
},
"minecraft:trade_table": {
"display_name": "entity.villager.tool",
"table": "trading/tool_smith_trades.json"
}
},
"butcher": {
"minecraft:type_family": {
"family": [ "villager", "artisan", "butcher" ]
},
"minecraft:variant": {
"value": 4
},
"minecraft:trade_table": {
"display_name": "entity.villager.butcher",
"table": "trading/butcher_trades.json"
}
},
"leatherworker": {
"minecraft:type_family": {
"family": [ "villager", "artisan", "leatherworker" ]
},
"minecraft:variant": {
"value": 4
},
"minecraft:trade_table": {
"display_name": "entity.villager.leather",
"table": "trading/leather_worker_trades.json"
}
},
"lumberjack": {
"minecraft:type_family": {
"family": [ "villager", "worker", "lumberjack" ]
},
"minecraft:variant": {
"value": 3
},
"minecraft:behavior.gather_wood": {
"priority": 0,
"search_range": 20,
"goal_radius": 2.5,
"gather_seconds": 6,
"return_load": 30
},
"minecraft:behavior.return_wood": {
"priority": 1,
"search_range": 20,
"goal_radius": 2.5
},
"minecraft:inventory": {
"inventory_size": 8,
"private": false
}
},
"armorer": {
"minecraft:type_family": {
"family": [ "villager", "armorer" ]
},
"minecraft:variant": {
"value": 4
},
"minecraft:trade_table": {
"display_name": "entity.villager.armorer",
"table": "trading/armorer_trades.json"
}
},
"enchanter":{
"minecraft:type_family": {
"family": [ "villager", "enchanter" ]
},
"minecraft:variant": {
"value": 1
},
"minecraft:behavior.loiter": {
"priority": 1,
"structure_tag": "enchanter"
},
"minecraft:trade_table": {
"display_name": "entity.villager.enchanter",
"table": "trading/enchanter_trades.json"
}
},
"herbalist":{
"minecraft:type_family": {
"family": [ "villager", "herbalist" ]
},
"minecraft:variant": {
"value": 2
},
"minecraft:behavior.loiter": {
"priority": 1,
"structure_tag": "herbalist"
},
"minecraft:trade_table": {
"display_name": "entity.villager.herbalist",
"table": "trading/herbalist_trades.json"
}
},
"tinkerer":{
"minecraft:type_family": {
"family": [ "villager", "tinkerer" ]
},
"minecraft:variant": {
"value": 3
},
"minecraft:behavior.loiter": {
"priority": 1,
"structure_tag": "tinkerer"
},
"minecraft:trade_table": {
"display_name": "entity.villager.tinkerer",
"table": "trading/tinkerer_trades.json"
}
},
"archer": {
"minecraft:type_family": {
"family": [ "villager", "worker", "archer" ]
},
"minecraft:variant": {
"value": 3
},
"minecraft:shooter": {
"type": "Arrow",
"def": "minecraft:arrow"
},
"minecraft:behavior.ranged_attack": {
"priority": 0,
"attack_interval_min": 1,
"attack_interval_max": 3,
"attack_radius": 360,
"speed_multiplier": 0
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"attack_radius": 360,
"within_radius": 80,
"entity_types": [
{
"filters": {
"any_of": [
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "wild"
},
{
"test": "is_on_team",
"subject": "other",
"operator": "not",
"value": "wild"
}
]
},
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "red"
},
{
"test": "is_on_team",
"subject": "other",
"operator": "not",
"value": "red"
}
]
},
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "blue"
},
{
"test": "is_on_team",
"subject": "other",
"operator": "not",
"value": "blue"
}
]
}
]
},
"within_default": 100,
"max_dist": 100
}
],
"must_reach": false,
"must_see": false,
"must_see_forget_duration": 5.0
},
"minecraft:behavior.loiter": {
"priority": 1,
"structure_tag": "tower"
},
"minecraft:inventory": {
"inventory_size": 8,
"private": false
},
"minecraft:on_target_acquired": {
}
},
"baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.take_flower": {
"priority": 7
},
"minecraft:behavior.play": {
"priority": 8,
"speed_multiplier": 0.32
}
},
"adult": {
"minecraft:behavior.make_love": {
"priority": 6
},
"minecraft:behavior.receive_love": {
"priority": 7
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:villager"
},
"minecraft:type_family": {
"family": "villager"
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:health": {
"value": 1,
"max": 1
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
},
"minecraft:nameable": {
},
"minecraft:movement": {
"value": 0.5
},
"minecraft:navigation.walk": {
"can_float": true,
"can_pass_doors": true,
"can_open_doors": true,
"avoid_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:inventory": {
"inventory_size": 8,
"private": true
},
"minecraft:damage_sensor": [
{
"on_damage": {
"filters": { "test" : "is_family", "subject" : "other", "value" : "lightning" },
"event": "become_witch"
},
"deals_damage": false
},
{
"on_damage": {
"filters": {
"any_of": [
{"test": "is_family", "subject": "other", "value": "zombie"},
{"test": "is_family", "subject": "other", "value": "husk"}
],
"all_of": [
{"test": "has_damage", "value": "fatal"}
]
},
"event": "become_zombie"
}
}
],
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.build_structure": {
"priority": 1
},
"minecraft:behavior.loiter": {
"priority": 4,
"structure_tag": "halls"
},
"minecraft:behavior.panic": {
"priority": 3,
"speed_multiplier": 0.6
},
"minecraft:behavior.avoid_mob_type": {
"priority": 3,
"entity_types": [
{
"filters": {
"any_of": [
{ "test" : "is_family", "subject" : "other", "value" : "zombie"},
{ "test" : "is_family", "subject" : "other", "value" : "zombie_villager"},
{ "test" : "is_family", "subject" : "other", "value" : "zombie_pigman"},
{ "test" : "is_family", "subject" : "other", "value" : "illager"},
{ "test" : "is_family", "subject" : "other", "value" : "vex"}
]
},
"max_dist": 8,
"walk_speed_multiplier": 0.6,
"sprint_speed_multiplier": 0.6
}
]
},
"minecraft:behavior.move_indoors": {
"priority": 4,
"speed_multiplier": 0.8
},
"minecraft:behavior.restrict_open_door": {
"priority": 5
},
"minecraft:behavior.open_door": {
"priority": 6,
"close_door_after": true
},
"minecraft:behavior.move_towards_restriction": {
"priority": 7,
"speed_multiplier": 0.6
},
"minecraft:behavior.share_items": {
"priority": 8,
"max_dist": 3,
"goal_radius": 2.0,
"speed_multiplier": 0.5,
"entity_types": [
{
"filters": { "test" : "is_family", "subject" : "other", "value" : "villager"}
}
]
},
"minecraft:behavior.pickup_items": {
"priority": 9,
"max_dist": 3,
"goal_radius": 2,
"speed_multiplier": 0.5
},
"minecraft:behavior.random_stroll": {
"priority": 11,
"speed_multiplier": 0.6
},
"minecraft:behavior.look_at_player": {
"priority": 12,
"look_distance": 8,
"probability": 0.02
},
"minecraft:physics": {
}
},
"events": {
"become_witch": {
"add": {
"component_groups": [
"become_witch"
]
}
},
"become_lumberjack": {
"add": {
"component_groups": [
"lumberjack"
]
}
},
"become_archer": {
"add": {
"component_groups": [
"archer"
]
}
},
"become_enchanter":{
"remove": { "component_groups": [ "baby" ] },
"add": { "component_groups": [ "adult", "enchanter" ] }
},
"become_herbalist":{
"remove": { "component_groups": [ "baby" ] },
"add": { "component_groups": [ "adult", "herbalist" ] }
},
"become_armorer":{
"remove": { "component_groups": [ "baby" ] },
"add": { "component_groups": [ "adult", "armorer" ] }
},
"become_tinkerer":{
"remove": { "component_groups": [ "baby" ] },
"add": { "component_groups": [ "adult", "tinkerer" ] }
},
"become_zombie": {
"sequence": [
{
"filters": {
"test": "is_difficulty",
"value": "normal"
},
"randomize": [
{
"weight": 50,
"add": { "component_groups": [ "become_zombie" ] }
},
{
"weight": 50
}
]
},
{
"filters": {
"test": "is_difficulty",
"value": "hard"
},
"add": {
"component_groups": [
"become_zombie"
]
}
}
]
},
"minecraft:entity_spawned": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:variant"
},
"randomize": [
{
"weight": 5,
"add": { "component_groups": [ "baby" ] }
},
{
"weight": 95,
"add": { "component_groups": [ "adult" ] }
}
]
},
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:variant"
},
"randomize": [
{
"weight": 5,
"add": { "component_groups": [ "farmer", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fisherman", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "shepherd", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fletcher", "behavior_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "librarian", "behavior_non_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "cartographer", "behavior_non_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "cleric", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "armorer", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "weaponsmith", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "toolsmith", "behavior_non_peasant" ] }
},
{
"weight": 10,
"add": { "component_groups": [ "butcher", "behavior_non_peasant" ] }
},
{
"weight": 10,
"add": { "component_groups": [ "leatherworker", "behavior_non_peasant" ] }
}
]
}
]
},
"minecraft:entity_transformed": {
"sequence": [
// Transform baby zombie to baby villager
{
"filters": {
"test": "has_component",
"subject": "other",
"value": "minecraft:is_baby"
},
"add": { "component_groups": [ "baby" ] }
},
// Transform adult zombie to adult villager
{
"filters": {
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": { "component_groups": [ "adult" ] }
},
// Transform farmer zombie to farmer villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "farmer"
},
"add": { "component_groups": [ "farmer", "behavior_peasant" ] }
},
// Transform fisherman zombie to fisherman villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "fisherman"
},
"add": { "component_groups": [ "fisherman", "behavior_peasant" ] }
},
// Transform shepherd zombie to shepherd villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "shepherd"
},
"add": { "component_groups": [ "shepherd", "behavior_peasant" ] }
},
// Transform fletcher zombie to fletcher villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "fletcher"
},
"add": { "component_groups": [ "fletcher", "behavior_peasant" ] }
},
// Transform librarian zombie to librarian villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "librarian"
},
"add": { "component_groups": [ "librarian", "behavior_non_peasant" ] }
},
// Transform cartographer zombie to cartographer villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "cartographer"
},
"add": { "component_groups": [ "cartographer", "behavior_non_peasant" ] }
},
// Transform cleric zombie to cleric villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "cleric"
},
"add": { "component_groups": [ "cleric", "behavior_non_peasant" ] }
},
// Transform armorer zombie to armorer villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "armorer"
},
"add": { "component_groups": [ "armorer", "behavior_non_peasant" ] }
},
// Transform weaponsmith zombie to weaponsmith villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "weaponsmith"
},
"add": { "component_groups": [ "weaponsmith", "behavior_non_peasant" ] }
},
// Transform toolsmith zombie to toolsmith villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "toolsmith"
},
"add": { "component_groups": [ "toolsmith", "behavior_non_peasant" ] }
},
// Transform butcher zombie to butcher villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "butcher"
},
"add": { "component_groups": [ "butcher", "behavior_non_peasant" ] }
},
// Transform leatherworker zombie to leatherworker villager
{
"filters": {
"test": "is_family",
"subject": "other",
"value": "leatherworker"
},
"add": { "component_groups": [ "leatherworker", "behavior_non_peasant" ] }
}
]
},
"minecraft:entity_born": {
"sequence": [
{
"add": { "component_groups": [ "baby" ] }
},
{
"randomize": [
{
"weight": 5,
"add": { "component_groups": [ "farmer", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fisherman", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "shepherd", "behavior_peasant" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fletcher", "behavior_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "librarian", "behavior_non_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "cartographer", "behavior_non_peasant" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "cleric", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "armorer", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "weaponsmith", "behavior_non_peasant" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "toolsmith", "behavior_non_peasant" ] }
},
{
"weight": 10,
"add": { "component_groups": [ "butcher", "behavior_non_peasant" ] }
},
{
"weight": 10,
"add": { "component_groups": [ "leatherworker", "behavior_non_peasant" ] }
}
]
}
]
},
"minecraft:spawn_farmer": {
"randomize": [
{
"weight": 5,
"add": { "component_groups": [ "farmer", "adult", "behavior_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fisherman", "adult", "behavior_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "shepherd", "adult", "behavior_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 5,
"add": { "component_groups": [ "fletcher", "adult", "behavior_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
}
]
},
"minecraft:spawn_librarian": {
"randomize": [
{
"weight": 20,
"add": { "component_groups": [ "librarian", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 20,
"add": { "component_groups": [ "cartographer", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
}
]
},
"minecraft:spawn_cleric": {
"add": { "component_groups": [ "cleric", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
"minecraft:spawn_armorer": {
"randomize": [
{
"weight": 6,
"add": { "component_groups": [ "armorer", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "weaponsmith", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 6,
"add": { "component_groups": [ "toolsmith", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
}
]
},
"minecraft:spawn_butcher": {
"randomize": [
{
"weight": 10,
"add": { "component_groups": [ "butcher", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
},
{
"weight": 10,
"add": { "component_groups": [ "leatherworker", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
}
]
},
"minecraft:ageable_grow_up": {
"sequence": [
{
"remove": { "component_groups": [ "baby" ] },
"add": { "component_groups": [ "adult" ] }
}
]
},
"minecraft:become_cleric": {
"add": { "component_groups": [ "cleric", "adult", "behavior_non_peasant" ] },
"remove": { "component_groups": [ "baby" ] }
}
}
}
}