here is my component group
"br:follow": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"must_reach": true,
"must_see": false,
"entity_types": {
"filters": {
"all_of": [
{
"test": "is_family",
"value": "player",
"subject": "other"
}
]
},
"must_see": false,
"max_dist": 32,
"sprint_speed_multiplier": 1.2,
"walk_speed_multiplier": 0.8
},
"within_radius": 32,
"set_persistent": false
},
"minecraft:mark_variant": {
"value": 1
},
"minecraft:behavior.delayed_attack": {
"priority": 1,
"attack_once": false,
"track_target": true,
"require_complete_path": false,
"speed_multiplier": 1,
"attack_duration": 1,
"hit_delay_pct": 1,
"attack_types": "minecraft:player",
"cooldown_time": 2
},
"minecraft:follow_range": {
"value": 999999
},
"minecraft:behavior.hurt_by_target": {
"priority": 2
},
"minecraft:behavior.move_towards_target": {
"priority": 2,
"speed_multiplier": 1.2,
"within_radius": 32
},
"minecraft:behavior.look_at_target": {
"priority": 2,
"look_distance": 32
}
}
and here are my components
"components": {
"minecraft:collision_box": {
"width": 1.4,
"height": 2.5
},
"minecraft:physics": {
"has_gravity": true,
"has_collision": true,
"push_towards_closest_space": true
},
"minecraft:knockback_resistance": {
"value": 0.8
},
"minecraft:health": {
"min": 0,
"max": 500,
"value": 500
},
"minecraft:movement": {
"value": 0.23,
"max": 0.23
},
"minecraft:movement.basic": {},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:attack": {
"damage": 5
},
"minecraft:walk_animation_speed": {
"value": 0.6
},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_pass_doors": true,
"can_walk": true,
"can_break_doors": true
}
}