#entity not moving towards target

1 messages · Page 1 of 1 (latest)

honest hatch
#

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
    }
}
#

it should target the player behind the walls and delay attack it

#

it neither moves or attacks

#

probably there is a very small detail I forgot but here I go

vital scroll
#

"br:follow": {
"minecraft:behavior.nearest_attackable_target": {
"priority": 1, <<priority 2
"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,<<priority 3
"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<<priority 1
},
"minecraft:behavior.move_towards_target": {
"priority": 2,<<priority 5
"speed_multiplier": 1.2,
"within_radius": 32
},
"minecraft:behavior.look_at_target": {
"priority": 2,<<priority 4
"look_distance": 32
}
}

honest hatch
#

this cant be it

#

it was like this before I decreased them down

honest hatch
#

I solved it

#

thank you!