Files
2026-03-08 15:34:38 -05:00

146 lines
3.2 KiB
JSON

{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:revert_to_skeleton": {
"minecraft:transformation": {
"into": "minecraft:skeleton",
"delay": 0.5
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:stray"
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.95
},
"minecraft:burns_in_daylight": { },
"minecraft:nameable": { },
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:loot": {
"table": "loot_tables/entities/stray.json"
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"can_float": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:shooter": {
"type": "Arrow",
"def": "minecraft:arrow",
"auxVal": 19
},
"minecraft:equipment": {
"table": "loot_tables/entities/skeleton_gear.json"
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.restrict_sun": {
"priority": 1
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"entity_types": [
{
"filters": { "test" : "is_family", "subject" : "other", "value" : "player"},
"max_dist": 16
}
],
"must_see": true
},
"minecraft:behavior.flee_sun": {
"priority": 2,
"speed_multiplier": 1
},
"minecraft:behavior.avoid_mob_type": {
"priority": 4,
"entity_types":[
{
"filters": { "test" : "is_family", "subject" : "other", "value" : "wolf"},
"max_dist": 6,
"walk_speed_multiplier": 1.2,
"sprint_speed_multiplier": 1.2
}
]
},
"minecraft:behavior.ranged_attack": {
"attack_interval_min": 1,
"attack_interval_max": 3,
"attack_radius": 15
},
"minecraft:behavior.random_stroll": {
"priority": 5,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 6,
"look_distance": 8
},
"minecraft:behavior.random_look_around": {
"priority": 6
},
"minecraft:type_family": {
"family": [ "stray", "skeleton", "monster", "undead" ]
},
"minecraft:physics": {
}
},
"events": {
"change_to_skeleton": {
"sequence": [
{
"filters": {"test": "is_underground", "value": true},
"remove": { },
"add": {
"component_groups": [
"minecraft:revert_to_skeleton"
]
}
},
{
"randomize": [
{
"weight": 20,
"remove": { },
"add": {
"component_groups": [ "minecraft:revert_to_skeleton" ]
}
},
{
"weight": 80,
"remove": { },
"add": { }
}
]
}
]
}
}
}
}