Updated behaviors and entities components
This commit is contained in:
@@ -8,6 +8,41 @@
|
||||
"properties": {
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
},
|
||||
"chance_to_start": {
|
||||
"title": "Chance To Start",
|
||||
"type": "number",
|
||||
"default": 0.0,
|
||||
"description": "Percent chance that the mob will start this goal from 0.0 to 1.0 (where 1.0 = 100%)."
|
||||
},
|
||||
"filters": {
|
||||
"title": "Filters",
|
||||
"$ref": "../../filters/filters.json",
|
||||
"description": "Conditions that need to be met for the behavior to start."
|
||||
},
|
||||
"max_head_rotation_y": {
|
||||
"title": "Max Head Rotation Y",
|
||||
"type": "number",
|
||||
"default": 30,
|
||||
"description": "Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target."
|
||||
},
|
||||
"max_offer_flower_duration": {
|
||||
"title": "Max Offer Flower Duration",
|
||||
"type": "number",
|
||||
"default": 20.0,
|
||||
"description": "The max amount of time (in seconds) that the mob will offer the flower for before exiting the Goal."
|
||||
},
|
||||
"max_rotation_x": {
|
||||
"title": "Max Rotation X",
|
||||
"type": "number",
|
||||
"default": 30,
|
||||
"description": "Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target."
|
||||
},
|
||||
"search_area": {
|
||||
"title": "Search Area",
|
||||
"default": [6, 2, 6],
|
||||
"description": "The dimensions of the AABB used to search for a potential mob to offer flower to.",
|
||||
"$ref": "../../../../general/vectors/number3.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,51 +11,20 @@
|
||||
},
|
||||
"look_time": {
|
||||
"title": "Look Time",
|
||||
"description": "The range of time in seconds the mob will stay looking in a random direction before looking elsewhere.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Minimum",
|
||||
"description": "Minimum."
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"title": "Maximum",
|
||||
"description": "Maximum."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"$ref": "../../../../general/vectors/number2.json",
|
||||
"description": "The range of time in seconds the mob will stay looking in a random direction before looking elsewhere"
|
||||
},
|
||||
"look_distance": {
|
||||
"title": "Look Distance",
|
||||
"description": "The distance in blocks from which the mob will look at.",
|
||||
"type": "number",
|
||||
"default": 8.0
|
||||
},
|
||||
"probability": {
|
||||
"title": "Probability",
|
||||
"type": "number",
|
||||
"default": 0.02,
|
||||
"description": "The probability of looking at the target. A value of 1.00 is 100%."
|
||||
},
|
||||
"angle_of_view_vertical": {
|
||||
"title": "Angle Of View Vertical",
|
||||
"max_angle_of_view_horizontal": {
|
||||
"title": "Max Angle Of View Horizontal",
|
||||
"type": "integer",
|
||||
"default": 360,
|
||||
"description": "The angle in degrees that the mob can see in the X-axis (left-right)."
|
||||
"default": 30,
|
||||
"description": "The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction."
|
||||
},
|
||||
"angle_of_view_horizontal": {
|
||||
"title": "Angle Of View Horizontal",
|
||||
"min_angle_of_view_horizontal": {
|
||||
"title": "Min Angle Of View Horizontal",
|
||||
"type": "integer",
|
||||
"default": 360,
|
||||
"description": "The angle in degrees that the mob can see in the Y-axis (up-down)."
|
||||
"default": -30,
|
||||
"description": "The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction."
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
|
||||
@@ -8,35 +8,59 @@
|
||||
"priority": {
|
||||
"$ref": "types/priority.json"
|
||||
},
|
||||
"continue_if_leashed": {
|
||||
"title": "Continue If Leashed",
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If the goal should continue to be used as long as the mob is leashed."
|
||||
},
|
||||
"max_angle_of_view_horizontal": {
|
||||
"title": "Max Angle Of View Horizontal",
|
||||
"type": "number",
|
||||
"default": 30.0,
|
||||
"description": "The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction."
|
||||
},
|
||||
"max_look_count": {
|
||||
"title": "Max Look Count",
|
||||
"type": "integer",
|
||||
"default": 2,
|
||||
"description": "The Maximum amount of unique looks a mob will have while looking around.",
|
||||
"title": "Maximum Look Count"
|
||||
"description": "The max amount of unique looks a mob will have while looking around."
|
||||
},
|
||||
"max_look_time": {
|
||||
"title": "Max Look Time",
|
||||
"type": "integer",
|
||||
"default": 40,
|
||||
"description": "The Maximum amount of time (in ticks) a mob will stay looking at a direction while looking around.",
|
||||
"title": "Maximum Look Time"
|
||||
"description": "The max amount of time (in ticks) a mob will stay looking at a direction while looking around."
|
||||
},
|
||||
"min_angle_of_view_horizontal": {
|
||||
"title": "Min Angle Of View Horizontal",
|
||||
"type": "number",
|
||||
"default": -30.0,
|
||||
"description": "The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction."
|
||||
},
|
||||
"min_look_count": {
|
||||
"title": "Min Look Count",
|
||||
"type": "integer",
|
||||
"default": 1,
|
||||
"description": "The Minimum amount of unique looks a mob will have while looking around.",
|
||||
"title": "Minimum Look Count"
|
||||
"description": "The min amount of unique looks a mob will have while looking around."
|
||||
},
|
||||
"min_look_time": {
|
||||
"title": "Min Look Time",
|
||||
"type": "integer",
|
||||
"default": 20,
|
||||
"description": "The Minimum amount of time (in ticks) a mob will stay looking at a direction while looking around.",
|
||||
"title": "Minimum Look Time"
|
||||
"description": "The min amount of time (in ticks) a mob will stay looking at a direction while looking around."
|
||||
},
|
||||
"probability": {
|
||||
"title": "Probability",
|
||||
"type": "number",
|
||||
"default": 0.02,
|
||||
"description": "The probability of randomly looking around/sitting.",
|
||||
"title": "Probability"
|
||||
"description": "The probability of randomly looking around/sitting."
|
||||
},
|
||||
"random_look_around_cooldown": {
|
||||
"title": "Random Look Around Cooldown",
|
||||
"type": "integer",
|
||||
"default": 0,
|
||||
"description": "The cooldown in seconds before the goal can be used again."
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
@@ -48,4 +72,4 @@
|
||||
"probability": 0.02
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,48 @@
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"properties": {
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
"priority": { "$ref": "./types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
|
||||
"filters": {
|
||||
"title": "Filters",
|
||||
"$ref": "../../filters/filters.json",
|
||||
"description": "Conditions that need to be met for the behavior to start."
|
||||
},
|
||||
"max_head_rotation_y": {
|
||||
"title": "Max Head Rotation Y",
|
||||
"type": "number",
|
||||
"default": 30,
|
||||
"description": "Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target."
|
||||
},
|
||||
"max_rotation_x": {
|
||||
"title": "Max Rotation X",
|
||||
"type": "number",
|
||||
"default": 30,
|
||||
"description": "Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target."
|
||||
},
|
||||
"max_wait_time": {
|
||||
"title": "Max Wait Time",
|
||||
"type": "number",
|
||||
"default": 20.0,
|
||||
"description": "The maximum amount of time (in seconds) for the mob to randomly wait for before taking the flower."
|
||||
},
|
||||
"min_distance_to_target": {
|
||||
"title": "Min Distance To Target",
|
||||
"type": "number",
|
||||
"default": 2.0,
|
||||
"description": "Minimum distance (in blocks) for the entity to be considered having reached its target."
|
||||
},
|
||||
"min_wait_time": {
|
||||
"title": "Min Wait Time",
|
||||
"type": "number",
|
||||
"default": 4.0,
|
||||
"description": "The minimum amount of time (in seconds) for the mob to randomly wait for before taking the flower."
|
||||
},
|
||||
"search_area": {
|
||||
"title": "Search Area",
|
||||
"default": [6, 2, 6],
|
||||
"description": "The dimensions of the AABB used to search for a potential mob to take a flower from.",
|
||||
"$ref": "../../../../general/vectors/number3.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user