diff --git a/source/behavior/entities/format/behaviors/go_and_give_items_to_noteblock.json b/source/behavior/entities/format/behaviors/go_and_give_items_to_noteblock.json index 615926c3..e80351ea 100644 --- a/source/behavior/entities/format/behaviors/go_and_give_items_to_noteblock.json +++ b/source/behavior/entities/format/behaviors/go_and_give_items_to_noteblock.json @@ -17,13 +17,7 @@ "on_item_throw": { "title": "On Item Throw", "description": "Event(s) to run when this mob throws items.", - "oneOf": [ - { "$ref": "../types/trigger.json" }, - { - "type": "array", - "items": { "$ref": "../types/trigger.json" } - } - ] + "$ref": "../types/trigger.json" }, "reach_block_distance": { "title": "Reach Block Distance", diff --git a/source/behavior/entities/format/behaviors/go_and_give_items_to_owner.json b/source/behavior/entities/format/behaviors/go_and_give_items_to_owner.json index 21414383..56a21e09 100644 --- a/source/behavior/entities/format/behaviors/go_and_give_items_to_owner.json +++ b/source/behavior/entities/format/behaviors/go_and_give_items_to_owner.json @@ -11,13 +11,7 @@ "on_item_throw": { "title": "On Item Throw", "description": "Event(s) to run when this mob throws items.", - "oneOf": [ - { "$ref": "../types/trigger.json" }, - { - "type": "array", - "items": { "$ref": "../types/trigger.json" } - } - ] + "$ref": "../types/trigger.json" }, "reach_mob_distance": { "title": "Reach Mob Distance", diff --git a/source/behavior/entities/format/behaviors/go_home.json b/source/behavior/entities/format/behaviors/go_home.json index a454b6ce..b21bae42 100644 --- a/source/behavior/entities/format/behaviors/go_home.json +++ b/source/behavior/entities/format/behaviors/go_home.json @@ -22,17 +22,14 @@ "on_home": { "description": "Event(s) to run when this mob gets home.", "title": "On Home", - "type": "array", - "items": { - "$ref": "../types/trigger.json" - } + "$ref": "../types/trigger.json" }, "on_failed": { "title": "On Failed", "description": "Event(s) to run when this goal fails.", - "type": "array", - "items": { - "$ref": "../types/event.json" + "type": "array", + "items": { + "$ref": "../types/event.json" } }, "calculate_new_path_radius": { diff --git a/source/behavior/entities/format/behaviors/move_to_block.json b/source/behavior/entities/format/behaviors/move_to_block.json index 4d02f17f..dcc78ef9 100644 --- a/source/behavior/entities/format/behaviors/move_to_block.json +++ b/source/behavior/entities/format/behaviors/move_to_block.json @@ -17,12 +17,12 @@ "on_stay_completed": { "title": "On Stay Completed", "description": "Event to run on completing a stay of stay_duration at the block.", - "oneOf": [{ "type": "array", "items": { "$ref": "../types/trigger.json" } }, { "$ref": "../types/trigger.json" }] + "$ref": "../types/trigger.json" }, "on_reach": { "title": "On Reach", "description": "Event to run on block reached.", - "oneOf": [{ "type": "array", "items": { "$ref": "../types/trigger.json" } }, { "$ref": "../types/trigger.json" }] + "$ref": "../types/trigger.json" }, "start_chance": { "title": "Start Chance", diff --git a/source/behavior/entities/format/behaviors/random_look_around.json b/source/behavior/entities/format/behaviors/random_look_around.json index e941471b..119ca847 100644 --- a/source/behavior/entities/format/behaviors/random_look_around.json +++ b/source/behavior/entities/format/behaviors/random_look_around.json @@ -9,27 +9,47 @@ "priority": { "$ref": "./types/priority.json" }, + "angle_of_view_horizontal": { + "title": "Angle Of View Horizontal", + "type": "integer", + "default": 360, + "description": "The angle in degrees that an entity can see in the Y-axis (up-down)." + }, + "angle_of_view_vertical": { + "title": "Angle Of View Vertical", + "type": "integer", + "default": 360, + "description": "The angle in degrees that an entity can see in the X-axis (left-right)." + }, + "look_distance": { + "title": "Look Distance", + "type": "number", + "default": 8.0, + "description": "The distance in blocks from which the entity will look at." + }, "look_time": { "title": "Look Time", "$ref": "../../../../general/vectors/number2.json", "description": "The range of time in seconds the mob will stay looking in a random direction before looking elsewhere" }, - "max_angle_of_view_horizontal": { - "title": "Max Angle Of View Horizontal", - "type": "integer", - "default": 30, - "description": "The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction." - }, - "min_angle_of_view_horizontal": { - "title": "Min Angle Of View Horizontal", - "type": "integer", - "default": -30, - "description": "The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction." + "probability": { + "title": "Probability", + "type": "number", + "default": 0.2, + "description": "The probability of looking at the target. A value of 1.00 is 100%." } }, "examples": [ { "look_distance": 0.0 + }, + { + "priority": 2, + "max_look_count": 4, + "min_look_count": 1, + "max_look_time": 60, + "min_look_time": 5, + "probability": 0.35 } ] } diff --git a/source/behavior/entities/format/components/environment_sensor.json b/source/behavior/entities/format/components/environment_sensor.json index a7f3ab32..7bd2de8a 100644 --- a/source/behavior/entities/format/components/environment_sensor.json +++ b/source/behavior/entities/format/components/environment_sensor.json @@ -15,27 +15,11 @@ ] } ], - "definitions": { - "trigger": { - "$ref": "../types/trigger.json" - } - }, "properties": { "triggers": { "description": "The list of triggers that fire when the environment conditions match the given filter criteria.", "title": "Triggers", - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/trigger" - } - }, - { - "type": "object", - "$ref": "#/definitions/trigger" - } - ] + "$ref": "../types/trigger.json" } } } diff --git a/source/behavior/entities/format/components/transformation.json b/source/behavior/entities/format/components/transformation.json index 21025807..467a2104 100644 --- a/source/behavior/entities/format/components/transformation.json +++ b/source/behavior/entities/format/components/transformation.json @@ -85,7 +85,8 @@ "type": "string", "default": "", "description": "Entity Definition that this entity will transform into.", - "title": "Into" + "title": "Into", + "examples": ["minecraft:drowned", "minecraft:drowned"] }, "keep_level": { "type": "boolean", diff --git a/source/behavior/entities/format/types/entity_types.json b/source/behavior/entities/format/types/entity_types.json index f514d34c..ee3b9832 100644 --- a/source/behavior/entities/format/types/entity_types.json +++ b/source/behavior/entities/format/types/entity_types.json @@ -36,6 +36,11 @@ "description": "UNDOCUMENTED.", "title": "Priority" }, + "within_default": { + "type": "number", + "description": "UNDOCUMENTED.", + "title": "Within Default" + }, "check_if_outnumbered": { "type": "boolean", "description": "UNDOCUMENTED.",