Flocking¶
文档版本:1.21.50.25
Allows entities to flock in groups in water or not.
架构¶
flocking:
{
number "block_distance" : opt
number "block_weight" : opt
number "breach_influence" : opt
number "cohesion_threshold" : opt
number "cohesion_weight" : opt
number "goal_weight" : opt
integer "high_flock_limit" : opt
boolean "in_water" : opt
number "influence_radius" : opt
number "innner_cohesion_threshold" : opt
number "loner_chance" : opt
integer "low_flock_limit" : opt
boolean "match_variants" : opt
number "max_height" : opt
number "min_height" : opt
number "separation_threshold" : opt
number "separation_weight" : opt
boolean "use_center_of_mass" : opt
}
block_distance
:number- The amount of blocks away the entity will look at to push away from.
block_weight
:number- The weight of the push back away from blocks.
breach_influence
:number- The amount of push back given to a flocker that breaches out of the water.
cohesion_threshold
:number- The threshold in which to start applying cohesion.
cohesion_weight
:number- The weight applied for the cohesion steering of the flock.
goal_weight
:number- The weight on which to apply on the goal output.
high_flock_limit
:integer- Determines the high bound amount of entities that can be allowed in the flock.
in_water
:boolean- Tells the Flocking Component if the entity exists in water.
influence_radius
:number- The area around the entity that allows others to be added to the flock.
innner_cohesion_threshold
:number- The distance in which the flocker will stop applying cohesion.
loner_chance
:number- The percentage chance between 0-1 that a fish will spawn and not want to join flocks. Invalid values will be capped at the end points.
low_flock_limit
:integer- Determines the low bound amount of entities that can be allowed in the flock.
match_variants
:boolean- Tells the flockers that they can only match similar entities that also match the variant, mark variants, and color data of the other potential flockers.
max_height
:number- The Maximum height allowable in the air or water.
min_height
:number- The Minimum height allowable in the air or water.
separation_threshold
:number- The distance that is determined to be to close to another flocking and to start applying separation.
separation_weight
:number- The weight applied to the separation of the flock.
use_center_of_mass
:boolean- Tells the flockers that they will follow flocks based on the center of mass.