Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/flocking.json

140 lines
4.4 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.flocking",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Flocking",
2021-10-08 12:59:03 +02:00
"description": "Allows entities to flock in groups in water or not.",
"additionalProperties": false,
"properties": {
"block_distance": {
"type": "number",
"default": 0,
"description": "The amount of blocks away the entity will look at to push away from.",
"title": "Block Distance"
},
2021-10-11 18:10:42 +02:00
"block_weight": {
"type": "number",
"default": 0,
"description": "The weight of the push back away from blocks.",
"title": "Block Weight"
},
2021-10-08 12:59:03 +02:00
"breach_influence": {
"type": "number",
"default": 0,
"description": "The amount of push back given to a flocker that breaches out of the water.",
"title": "Breach Influence"
},
"cohesion_threshold": {
"type": "number",
"default": 1,
"description": "The threshold in which to start applying cohesion.",
"title": "Cohesion Threshold"
},
"cohesion_weight": {
"type": "number",
"default": 1,
"description": "The weight applied for the cohesion steering of the flock.",
"title": "Cohesion Weight"
},
2021-10-11 18:10:42 +02:00
"goal_weight": {
"type": "number",
"default": 0,
"description": "The weight on which to apply on the goal output.",
"title": "Goal Weight"
},
2021-10-08 12:59:03 +02:00
"high_flock_limit": {
"type": "integer",
"default": 0,
"description": "Determines the high bound amount of entities that can be allowed in the flock.",
"title": "High Flock Limit"
},
"in_water": {
"type": "boolean",
"default": false,
"description": "Tells the Flocking Component if the entity exists in water.",
"title": "In Water"
},
"influence_radius": {
"type": "number",
"default": 0,
"description": "The area around the entity that allows others to be added to the flock.",
"title": "Influence Radius"
},
"innner_cohesion_threshold": {
"type": "number",
"default": 0,
"description": "The distance in which the flocker will stop applying cohesion.",
"title": "Innner Cohesion Threshold"
},
"loner_chance": {
"type": "number",
"default": 0,
"description": "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.",
"title": "Loner Chance"
},
"low_flock_limit": {
"type": "integer",
"default": 0,
"description": "Determines the low bound amount of entities that can be allowed in the flock.",
"title": "Low Flock Limit"
},
"match_variants": {
"type": "boolean",
"default": false,
"description": "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.",
"title": "Match Variants"
},
2021-10-11 18:10:42 +02:00
"max_height": {
"type": "number",
"default": 0,
"description": "The Maximum height allowable in the air or water.",
"title": "Maximum Height"
},
"min_height": {
"type": "number",
"default": 0,
"description": "The Minimum height allowable in the air or water.",
"title": "Minimum Height"
},
2021-10-08 12:59:03 +02:00
"separation_threshold": {
"type": "number",
"default": 2,
"description": "The distance that is determined to be to close to another flocking and to start applying separation.",
"title": "Separation Threshold"
},
"separation_weight": {
"type": "number",
"default": 1,
"description": "The weight applied to the separation of the flock.",
"title": "Separation Weight"
},
"use_center_of_mass": {
"type": "boolean",
"default": false,
"description": "Tells the flockers that they will follow flocks based on the center of mass.",
"title": "Use Center Of Mass"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"block_distance": 0,
"block_weight": 0,
"breach_influence": 0,
"cohesion_threshold": 1,
"cohesion_weight": 1,
"goal_weight": 0,
"high_flock_limit": 0,
"in_water": false,
"influence_radius": 0,
"innner_cohesion_threshold": 0,
"loner_chance": 0,
"low_flock_limit": 0,
"match_variants": false,
"max_height": 0,
"min_height": 0,
"separation_threshold": 2,
"separation_weight": 1,
"use_center_of_mass": false
}
]
2021-10-08 12:59:03 +02:00
}