Entity Documentation - minecraft:behavior.move_towards_home_restriction
minecraft:behavior.move_towards_home_restriction
allows mobs with the home component to move toward their pre-defined area that the mob should be restricted to.
Parameter
Name | Default Value | Type | Description |
---|---|---|---|
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
speed_multiplier | 1.0 | Decimal | This multiplier modifies the entity's speed when moving towards its restriction. |
Example
"minecraft:behavior.move_towards_home_restriction": {
"priority": 4,
"speed_multiplier": 1.0
}
Vanilla mob examples
guardian
"minecraft:behavior.move_towards_home_restriction": {
"priority": 5,
"speed_multiplier": 1.0
}
Vanilla mobs using move_towards_home_restriction
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour