跳转至

Flocking

文档版本:1.21.0.24

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_distancenumber
The amount of blocks away the entity will look at to push away from.
block_weightnumber
The weight of the push back away from blocks.
breach_influencenumber
The amount of push back given to a flocker that breaches out of the water.
cohesion_thresholdnumber
The threshold in which to start applying cohesion.
cohesion_weightnumber
The weight applied for the cohesion steering of the flock.
goal_weightnumber
The weight on which to apply on the goal output.
high_flock_limitinteger
Determines the high bound amount of entities that can be allowed in the flock.
in_waterboolean
Tells the Flocking Component if the entity exists in water.
influence_radiusnumber
The area around the entity that allows others to be added to the flock.
innner_cohesion_thresholdnumber
The distance in which the flocker will stop applying cohesion.
loner_chancenumber
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_limitinteger
Determines the low bound amount of entities that can be allowed in the flock.
match_variantsboolean
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_heightnumber
The Maximum height allowable in the air or water.
min_heightnumber
The Minimum height allowable in the air or water.
separation_thresholdnumber
The distance that is determined to be to close to another flocking and to start applying separation.
separation_weightnumber
The weight applied to the separation of the flock.
use_center_of_massboolean
Tells the flockers that they will follow flocks based on the center of mass.