Merge pull request #62 from ChibiMango/main

Updated properties
This commit is contained in:
Daan Verstraten
2022-07-13 22:34:12 +02:00
committed by GitHub
9 changed files with 103 additions and 87 deletions

View File

@@ -9,26 +9,24 @@
"$ref": "types/priority.json" "$ref": "types/priority.json"
}, },
"admire_item_sound": { "admire_item_sound": {
"title": "Admire Item Sound",
"type": "string", "type": "string",
"description": "The sound event to play when admiring the item", "description": "The sound event to play when admiring the item"
"title": "Admire Item Sound"
}, },
"on_admire_item_start": { "on_admire_item_start": {
"$ref": "../types/event.json",
"title": "On Admire Item Start", "title": "On Admire Item Start",
"description": "The event to run when admiring the item", "$ref": "../types/event.json",
"$comment": "UNDOCUMENTED" "description": "The event to run when admiring the item"
}, },
"on_admire_item_stop": { "on_admire_item_stop": {
"$ref": "../types/event.json",
"title": "On Admire Item Stop", "title": "On Admire Item Stop",
"description": "The event to run when no longer admiring the item", "$ref": "../types/event.json",
"$comment": "UNDOCUMENTED" "description": "The event to run when no longer admiring the item"
}, },
"sound_interval": { "sound_interval": {
"title": "Sound Interval",
"default": 0, "default": 0,
"description": "The range of time in seconds to randomly wait before playing the sound again.", "description": "The range of time in seconds to randomly wait before playing the sound again.",
"title": "Sound Interval",
"oneOf": [ "oneOf": [
{ {
"type": "array", "type": "array",

View File

@@ -9,52 +9,52 @@
"$ref": "types/priority.json" "$ref": "types/priority.json"
}, },
"aggro_sound": { "aggro_sound": {
"title": "Aggro Sound",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "Sound to occasionally play while defending.", "description": "Sound to occasionally play while defending."
"title": "Aggro Sound"
}, },
"attack_interval": { "attack_interval": {
"title": "Attack Interval",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Time in seconds between attacks", "description": "Time in seconds between attacks"
"title": "Attack Interval"
}, },
"must_see": { "must_see": {
"title": "Must See",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, only entities in this mob's viewing range can be selected as targets", "description": "If true, only entities in this mob's viewing range can be selected as targets"
"title": "Must See"
}, },
"must_see_forget_duration": { "must_see_forget_duration": {
"title": "Must See Forget Duration",
"type": "number", "type": "number",
"default": 3, "default": 3,
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more", "description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more"
"title": "Must See Forget Duration"
}, },
"on_defend_start": { "on_defend_start": {
"$ref": "../types/event.json",
"title": "On Defend Start", "title": "On Defend Start",
"description": "The event to run when this mob starts to defend the entity it trusts.", "$ref": "../types/event.json",
"$comment": "UNDOCUMENTED" "description": "The event to run when this mob starts to defend the entity it trusts."
}, },
"within_radius": { "within_radius": {
"title": "Within Radius",
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "Distance in blocks that the target can be within to launch an attack", "description": "Distance in blocks that the target can be within to launch an attack"
"title": "Within Radius"
}, },
"entity_types": { "entity_types": {
"title": "Entity Types",
"type": "object", "type": "object",
"description": "List of entity types that this mob considers valid targets", "description": "List of entity types that this mob considers valid targets",
"title": "Entity Types",
"additionalProperties": false "additionalProperties": false
}, },
"sound_chance": { "sound_chance": {
"title": "Sound Chance", "title": "Sound Chance",
"description": "The chance that the `aggro_sound` will play",
"$comment": "UNDOCUMENTED",
"type": "number", "type": "number",
"default": 0.05,
"description": "Probability that a sound will play.",
"minimum": 0, "minimum": 0,
"maximum": 1 "maximum": 1
} }
@@ -67,7 +67,7 @@
"must_see_forget_duration": 3, "must_see_forget_duration": 3,
"within_radius": 0, "within_radius": 0,
"entity_types": {}, "entity_types": {},
"sound_chance": 0.0 "sound_chance": 0.05
} }
] ]
} }

View File

@@ -9,45 +9,45 @@
"$ref": "./types/priority.json" "$ref": "./types/priority.json"
}, },
"angle_of_view_vertical": { "angle_of_view_vertical": {
"title": "Angle Of View Vertical",
"type": "integer", "type": "integer",
"default": 360, "default": 360,
"description": "The angle in degrees that the mob can see in the X-axis (left-right)", "description": "The angle in degrees that the mob can see in the X-axis (left-right)"
"title": "Angle Of View Vertical"
}, },
"angle_of_view_horizontal": { "angle_of_view_horizontal": {
"title": "Angle Of View Horizontal",
"type": "integer", "type": "integer",
"default": 360, "default": 360,
"description": "The angle in degrees that the mob can see in the Y-axis (up-down)", "description": "The angle in degrees that the mob can see in the Y-axis (up-down)"
"title": "Angle Of View Horizontal"
}, },
"look_distance": { "look_distance": {
"title": "Look Distance",
"type": "number", "type": "number",
"default": 8.0, "default": 8.0,
"description": "The distance in blocks from which the entity will look at", "description": "The distance in blocks from which the entity will look at"
"title": "Look Distance"
}, },
"probability": { "probability": {
"title": "Probability",
"type": "number", "type": "number",
"default": 0.02, "default": 0.02,
"minimum": 0, "minimum": 0,
"description": "The probability of looking at the target. A value of 1.00 is 100%", "description": "The probability of looking at the target. A value of 1.00 is 100%"
"title": "Probability"
}, },
"look_time": { "look_time": {
"title": "Look Time",
"type": "array", "type": "array",
"default": [2, 4], "default": [2, 4],
"description": "Time range to look at the entity", "description": "Time range to look at the entity",
"title": "Look Time",
"items": [ "items": [
{ "type": "number", "title": "Minimum", "description": "The minimum amount of time to look" }, { "type": "number", "title": "Minimum", "description": "The minimum amount of time to look" },
{ "type": "number", "title": "Maximum", "description": "The maximum amount of time to look" } { "type": "number", "title": "Maximum", "description": "The maximum amount of time to look" }
] ]
}, },
"target_distance": { "target_distance": {
"title": "Target Distance",
"type": "number", "type": "number",
"description": "The distance to the target or less to be considered", "default": 6.0,
"$comment": "UNDOCUMENTED", "description": "The distance in blocks from which the entity will choose a target"
"title": "Target Distance"
} }
}, },
"examples": [ "examples": [
@@ -57,7 +57,7 @@
"look_distance": 8.0, "look_distance": 8.0,
"probability": 0.02, "probability": 0.02,
"look_time": [], "look_time": [],
"target_distance": 0.0 "target_distance": 6.0
} }
] ]
} }

View File

@@ -65,6 +65,11 @@
"$ref": "../types/trigger.json", "$ref": "../types/trigger.json",
"description": "Defines the event to trigger when this entity successfully attacks." "description": "Defines the event to trigger when this entity successfully attacks."
}, },
"on_kill": {
"title": "On Kill",
"$ref": "../types/trigger.json",
"description": "Defines the event to trigger when this entity successfully kills."
},
"outer_boundary_time_increase": { "outer_boundary_time_increase": {
"title": "Outer Boundary Time Increase", "title": "Outer Boundary Time Increase",
"type": "number", "type": "number",

View File

@@ -13,6 +13,7 @@
"$ref": "./types/speed_multiplier.json" "$ref": "./types/speed_multiplier.json"
}, },
"damage_sources": { "damage_sources": {
"title": "Damage Sources",
"type": "array", "type": "array",
"items": { "items": {
"$ref": "../../../../general/entity/damage_source.json" "$ref": "../../../../general/entity/damage_source.json"
@@ -22,49 +23,44 @@
"all" "all"
] ]
], ],
"description": "The list of Entity Damage Sources that will cause this mob to panic", "description": "The list of Entity Damage Sources that will cause this mob to panic"
"title": "Damage Sources"
}, },
"force": { "force": {
"title": "Force",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, this mob will not stop panicking until it can't move anymore or the goal is removed from it", "description": "If true, this mob will not stop panicking until it can't move anymore or the goal is removed from it"
"title": "Force"
}, },
"ignore_mob_damage": { "ignore_mob_damage": {
"title": "Ignore Mob Damage",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, the mob will not panic in response to damage from other mobs. This overrides the damage types in `damage_sources`", "description": "If true, the mob will not panic in response to damage from other mobs. This overrides the damage types in `damage_sources`"
"title": "Ignore Mob Damage"
}, },
"prefer_water": { "prefer_water": {
"title": "Prefer Water",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, the mob will prefer water over land", "description": "If true, the mob will prefer water over land"
"title": "Prefer Water"
}, },
"panic_sound": { "panic_sound": {
"title": "Panic Sound",
"type": "string", "type": "string",
"description": "The sound event to play when this mob is in panic", "description": "The sound event to play when this mob is in panic"
"$comment": "UNDOCUMENTED",
"title": "Panic Sound"
}, },
"sound_interval": { "sound_interval": {
"type": "object",
"description": "Determines how often the `panic_sound` will play",
"$comment": "UNDOCUMENTED",
"title": "Sound Interval", "title": "Sound Interval",
"type": "object",
"description": "The range of time in seconds to randomly wait before playing the sound again",
"properties": { "properties": {
"range_min": { "range_min": {
"type": "number", "type": "number",
"description": "The minimum time in seconds before the `panic_sound` plays", "description": "The minimum time in seconds before the `panic_sound` plays",
"$comment": "UNDOCUMENTED",
"title": "Range Minimum" "title": "Range Minimum"
}, },
"range_max": { "range_max": {
"type": "number", "type": "number",
"description": "The maximum time in seconds before the `panic_sound` plays", "description": "The maximum time in seconds before the `panic_sound` plays",
"$comment": "UNDOCUMENTED",
"title": "Range Maximum" "title": "Range Maximum"
} }
}, },

View File

@@ -9,6 +9,7 @@
"priority": { "$ref": "types/priority.json" }, "priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"blocks": { "blocks": {
"title": "Blocks",
"type": "array", "type": "array",
"description": "Blocks that the mob is looking for to eat", "description": "Blocks that the mob is looking for to eat",
"items": { "items": {
@@ -16,51 +17,50 @@
"title": "Block Id", "title": "Block Id",
"description": "A block identifier", "description": "A block identifier",
"$ref": "../../../../general/block/identifier.json" "$ref": "../../../../general/block/identifier.json"
}, }
"title": "Blocks"
}, },
"eat_delay": { "eat_delay": {
"title": "Eat Delay",
"type": "integer", "type": "integer",
"default": 2, "default": 2,
"description": "Time in seconds between each time it eats", "description": "Time in seconds between each time it eats"
"title": "Eat Delay"
}, },
"full_delay": { "full_delay": {
"title": "Full Delay",
"type": "integer", "type": "integer",
"default": 100, "default": 100,
"description": "Amount of time in seconds before this mob wants to eat again", "description": "Amount of time in seconds before this mob wants to eat again"
"title": "Full Delay"
}, },
"initial_eat_delay": { "initial_eat_delay": {
"title": "Initial Eat Delay",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Time in seconds before starting to eat/raid once it arrives at it", "description": "Time in seconds before starting to eat/raid once it arrives at it"
"title": "Initial Eat Delay"
}, },
"goal_radius": { "goal_radius": {
"type": "number", "type": "number",
"title": "Goal Radius",
"default": 0.5, "default": 0.5,
"description": "Distance in blocks within the mob considers it has reached the goal. This is the `wiggle room` to stop the AI from bouncing back and forth trying to reach a specific spot", "description": "Distance in blocks within the mob considers it has reached the goal. This is the `wiggle room` to stop the AI from bouncing back and forth trying to reach a specific spot"
"title": "Goal Radius"
}, },
"max_to_eat": { "max_to_eat": {
"title": "Maximum To Eat",
"type": "integer", "type": "integer",
"default": 6, "default": 6,
"description": "Maximum number of things this entity wants to eat", "description": "Maximum number of things this entity wants to eat"
"title": "Maximum To Eat"
}, },
"search_range": { "search_range": {
"title": "Search Range",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Distance in blocks the mob will look for crops to eat", "description": "Distance in blocks the mob will look for crops to eat"
"title": "Search Range"
}, },
"search_height": { "search_height": {
"title": "Search Height",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "Height in blocks the mob will look for crops to eat", "description": "Height in blocks the mob will look for crops to eat"
"$comment": "UNDOCUMENTED",
"title": "Search Height"
} }
}, },
"examples": [ "examples": [

View File

@@ -24,7 +24,7 @@
"knockback_force": { "knockback_force": {
"title": "Knockback Force", "title": "Knockback Force",
"type": "number", "type": "number",
"default": 5000000, "default": 5.0,
"description": "The force of the knockback of the ram attack." "description": "The force of the knockback of the ram attack."
}, },
"knockback_height": { "knockback_height": {
@@ -65,13 +65,13 @@
"ram_speed": { "ram_speed": {
"title": "Ram Speed", "title": "Ram Speed",
"type": "number", "type": "number",
"default": 2000000, "default": 2.0,
"description": "Sets the entity's speed when charging toward the target." "description": "Sets the entity's speed when charging toward the target."
}, },
"run_speed": { "run_speed": {
"title": "Run Speed", "title": "Run Speed",
"type": "number", "type": "number",
"default": 1000000, "default": 1.0,
"description": "Sets the entity's speed when running toward the target." "description": "Sets the entity's speed when running toward the target."
}, },
"trigger": { "trigger": {

View File

@@ -34,10 +34,28 @@
] ]
}, },
"look_distance": { "look_distance": {
"description": "The distance in blocks from which the mob will look at",
"$comment": "UNDOCUMENTED",
"title": "Look Distance", "title": "Look Distance",
"type": "number" "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",
"type": "integer",
"default": 360,
"description": "The angle in degrees that the mob can see in the X-axis (left-right)"
},
"angle_of_view_horizontal": {
"title": "Angle Of View Horizontal",
"type": "integer",
"default": 360,
"description": "The angle in degrees that the mob can see in the Y-axis (up-down)"
} }
}, },
"examples": [ "examples": [

View File

@@ -6,29 +6,28 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"min_delay_secs": { "min_delay_secs": {
"type": "integer",
"description": "The minimum time in seconds before a scheduled event occurs",
"$comment": "UNDOCUMENTED",
"title": "Minimum Delay Secs", "title": "Minimum Delay Secs",
"type": "number",
"default": 0,
"description": "The minimum the scheduler will be delayed.",
"minimum": 0 "minimum": 0
}, },
"max_delay_secs": { "max_delay_secs": {
"type": "integer",
"description": "The maximum time in seconds before a scheduled event occurs",
"$comment": "UNDOCUMENTED",
"title": "Maximum Delay Secs", "title": "Maximum Delay Secs",
"type": "number",
"default": 0,
"description": "The maximum the scheduler will be delayed.",
"minimum": 0 "minimum": 0
}, },
"scheduled_events": { "scheduled_events": {
"title": "Scheduled Events",
"type": "array", "type": "array",
"description": "The list of triggers that fire when the conditions match the given filter criteria. If any filter criteria overlap the first defined event will be picked.", "description": "The list of triggers that fire when the conditions match the given filter criteria. If any filter criteria overlap the first defined event will be picked.",
"title": "Scheduled Events",
"items": { "items": {
"title": "Scheduled Events",
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "A filter and event pair. The event runs when the filter criteria succeeds", "description": "A filter and event pair. The event runs when the filter criteria succeeds",
"$comment": "UNDOCUMENTED",
"title": "Scheduled Events",
"properties": { "properties": {
"filters": { "filters": {
"$ref": "../../filters/filters.json" "$ref": "../../filters/filters.json"