Add many missing documentation to components

This commit is contained in:
Ben Dodd
2022-06-23 20:48:19 +01:00
parent feb600d21b
commit 3df9e495bd
27 changed files with 123 additions and 106 deletions

View File

@@ -16,13 +16,13 @@
"on_admire_item_start": { "on_admire_item_start": {
"$ref": "../types/event.json", "$ref": "../types/event.json",
"title": "On Admire Item Start", "title": "On Admire Item Start",
"description": "UNDOCUMENTED", "description": "The event to run when admiring the item",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"on_admire_item_stop": { "on_admire_item_stop": {
"$ref": "../types/event.json", "$ref": "../types/event.json",
"title": "On Admire Item Stop", "title": "On Admire Item Stop",
"description": "UNDOCUMENTED", "description": "The event to run when no longer admiring the item",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"sound_interval": { "sound_interval": {

View File

@@ -35,7 +35,7 @@
"on_defend_start": { "on_defend_start": {
"$ref": "../types/event.json", "$ref": "../types/event.json",
"title": "On Defend Start", "title": "On Defend Start",
"description": "UNDOCUMENTED", "description": "The event to run when this mob starts to defend the entity it trusts.",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"within_radius": { "within_radius": {
@@ -52,9 +52,11 @@
}, },
"sound_chance": { "sound_chance": {
"title": "Sound Chance", "title": "Sound Chance",
"description": "UNDOCUMENTED", "description": "The chance that the `aggro_sound` will play",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number",
"minimum": 0,
"maximum": 1
} }
}, },
"examples": [ "examples": [

View File

@@ -14,7 +14,7 @@
}, },
"must_reach": { "must_reach": {
"title": "Must Reach", "title": "Must Reach",
"description": "UNDOCUMENTED", "description": "If true, the entities considered a threat must be reachable to be a valid target.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "boolean" "type": "boolean"
}, },

View File

@@ -31,20 +31,20 @@
"items": { "items": {
"type": "object", "type": "object",
"title": "Eat And Replace Block Pair", "title": "Eat And Replace Block Pair",
"description": "UNDOCUMENTED", "description": "The block to eat and the block to replace it with.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"eat_block": { "eat_block": {
"type": "string", "type": "string",
"title": "Block", "title": "Block",
"description": "UNDOCUMENTED", "description": "The block to eat.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../../../../general/block/identifier.json" "$ref": "../../../../general/block/identifier.json"
}, },
"replace_block": { "replace_block": {
"type": "string", "type": "string",
"title": "Replace Block", "title": "Replace Block",
"description": "UNDOCUMENTED", "description": "The block to replace the eaten block with.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../../../../general/block/identifier.json" "$ref": "../../../../general/block/identifier.json"
} }

View File

@@ -40,7 +40,7 @@
}, },
"max_failed_attempts": { "max_failed_attempts": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "The number of failed attempts to make before this goal is no longer used.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Maximum Failed Attempts" "title": "Maximum Failed Attempts"
} }

View File

@@ -10,19 +10,19 @@
"speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"max_seconds_before_search": { "max_seconds_before_search": {
"title": "Maximum Seconds Before Search", "title": "Maximum Seconds Before Search",
"description": "UNDOCUMENTED", "description": "The maximum amount of time in seconds that the goal can take before searching for the first harvest block.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number"
}, },
"search_cooldown_max_seconds": { "search_cooldown_max_seconds": {
"title": "Search Cooldown Maximum Seconds", "title": "Search Cooldown Maximum Seconds",
"description": "UNDOCUMENTED", "description": "The maximum amount of time in seconds that the goal can take before searching again, after failing to find a a harvest block already.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number"
}, },
"seconds_until_new_task": { "seconds_until_new_task": {
"title": "Seconds Until New Task", "title": "Seconds Until New Task",
"description": "UNDOCUMENTED", "description": "The amount of time in seconds that the goal will cooldown after a successful reap/sow, before it can start again.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number"
} }

View File

@@ -77,7 +77,7 @@
}, },
"target_block_filters": { "target_block_filters": {
"title": "Target Block Filters", "title": "Target Block Filters",
"description": "UNDOCUMENTED", "description": "Filters to apply on the target blocks. Target blocks are only valid if the filters are true.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../../filters/filters.json" "$ref": "../../filters/filters.json"
}, },

View File

@@ -45,25 +45,25 @@
}, },
"panic_sound": { "panic_sound": {
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "The sound event to play when this mob is in panic",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Panic Sound" "title": "Panic Sound"
}, },
"sound_interval": { "sound_interval": {
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Determines how often the `panic_sound` will play",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Sound Interval", "title": "Sound Interval",
"properties": { "properties": {
"range_min": { "range_min": {
"type": "number", "type": "number",
"description": "UNDOCUMENTED", "description": "The minimum time in seconds before the `panic_sound` plays",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Range Minimum" "title": "Range Minimum"
}, },
"range_max": { "range_max": {
"type": "number", "type": "number",
"description": "UNDOCUMENTED", "description": "The maximum time in seconds before the `panic_sound` plays",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Range Maximum" "title": "Range Maximum"
} }

View File

@@ -22,7 +22,7 @@
"cooldown_after_being_attacked": { "cooldown_after_being_attacked": {
"type": "number", "type": "number",
"default": true, "default": true,
"description": "UNDOCUMENTED", "description": "Duration, in seconds, for which the mob won't pickup items if it was hurt",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Cooldown After Being Attacked" "title": "Cooldown After Being Attacked"
}, },

View File

@@ -58,7 +58,7 @@
"search_height": { "search_height": {
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "UNDOCUMENTED", "description": "Height in blocks the mob will look for crops to eat",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Search Height" "title": "Search Height"
} }

View File

@@ -9,7 +9,7 @@
"speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"avoid_damage_blocks": { "avoid_damage_blocks": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, the mob will avoid blocks that cause damage",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Avoid Damage Blocks" "title": "Avoid Damage Blocks"
}, },
@@ -33,7 +33,7 @@
}, },
"y_offset": { "y_offset": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "Height in blocks to add to the selected target position",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Y Offset" "title": "Y Offset"
} }

View File

@@ -9,7 +9,7 @@
"speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" },
"hover_height": { "hover_height": {
"type": "array", "type": "array",
"description": "UNDOCUMENTED", "description": "The range of height in blocks above the surface which the mob will try to hover.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Hover Height", "title": "Hover Height",
"items": [ "items": [

View File

@@ -34,7 +34,7 @@
] ]
}, },
"look_distance": { "look_distance": {
"description": "UNDOCUMENTED", "description": "The distance in blocks from which the mob will look at",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Look Distance", "title": "Look Distance",
"type": "number" "type": "number"

View File

@@ -43,37 +43,39 @@
"event_choices": { "event_choices": {
"type": "array", "type": "array",
"title": "Event Choices", "title": "Event Choices",
"description": "UNDOCUMENTED", "description": "List of spells for the mob to use",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"title": "Event Choice", "title": "Event Choice",
"description": "UNDOCUMENTED", "description": "A spell that the mob can cast",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"min_activation_range": { "min_activation_range": {
"type": "number", "type": "number",
"title": "Minimum Activation Range", "title": "Minimum Activation Range",
"description": "UNDOCUMENTED", "description": "The minimum distance in blocks the target must be for this spell to be cast",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED",
"minimum": 0
}, },
"max_activation_range": { "max_activation_range": {
"type": "number", "type": "number",
"title": "Maxmimum Activation Range", "title": "Maxmimum Activation Range",
"description": "UNDOCUMENTED", "description": "The maxmimum distance in blocks the target must be for this spell to be cast",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED",
"minimum": 0
}, },
"cooldown_time": { "cooldown_time": {
"type": "number", "type": "number",
"title": "Cooldown Time", "title": "Cooldown Time",
"description": "UNDOCUMENTED", "description": "Time in seconds before the mob can use this spell again",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"cast_duration": { "cast_duration": {
"type": "number", "type": "number",
"title": "Cast Duration", "title": "Cast Duration",
"description": "UNDOCUMENTED", "description": "Time in seconds the spell casting will take",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"filters": { "filters": {
@@ -83,19 +85,19 @@
"type": "string", "type": "string",
"format": "color-hex", "format": "color-hex",
"title": "Particle Color", "title": "Particle Color",
"description": "UNDOCUMENTED", "description": "The color of the particles for this spell",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"weight": { "weight": {
"type": "integer", "type": "integer",
"title": "Weight", "title": "Weight",
"description": "UNDOCUMENTED", "description": "The weight of this spell. Controls how likely this spell will be picked",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"start_sound_event": { "start_sound_event": {
"type": "string", "type": "string",
"title": "Start Sound Event", "title": "Start Sound Event",
"description": "UNDOCUMENTED", "description": "The sound event to play when using this spell",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"sequence": { "sequence": {
@@ -106,7 +108,7 @@
}, },
"sequence": { "sequence": {
"$ref": "#/definitions/sequence", "$ref": "#/definitions/sequence",
"description": "UNDOCUMENTED", "description": "List of steps for the spell",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Sequence" "title": "Sequence"
} }

View File

@@ -64,13 +64,13 @@
}, },
"leap_dist": { "leap_dist": {
"type": "number", "type": "number",
"description": "UNDOCUMENTED", "description": "The distance in blocks the mob jumps in the direction of their target",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Leap Dist" "title": "Leap Dist"
}, },
"stuck_blocks": { "stuck_blocks": {
"$ref": "../../filters/filters.json", "$ref": "../../filters/filters.json",
"description": "UNDOCUMENTED", "description": "Filters to apply on the block the mob lands on to determine if it is valid for getting stuck",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Stuck Block" "title": "Stuck Block"
} }

View File

@@ -2,7 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.swim_with_entity", "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.swim_with_entity",
"type": "object", "type": "object",
"title": "Swim With Entity", "title": "Swim With Entity",
"description": "UNDOCUMENTED", "description": "Allows this mob to follow another entity, as long as both entities are in water (swimming)",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"required": [], "required": [],
@@ -12,55 +12,55 @@
"success_rate": { "success_rate": {
"type": "number", "type": "number",
"title": "Success Rate", "title": "Success Rate",
"description": "UNDOCUMENTED", "description": "Chance to start following another entity, if not already doing so",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"chance_to_stop": { "chance_to_stop": {
"type": "number", "type": "number",
"title": "Chance To Stop", "title": "Chance To Stop",
"description": "UNDOCUMENTED", "description": "Chance to stop following the current entity",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"state_check_interval": { "state_check_interval": {
"type": "number", "type": "number",
"title": "State Check Interval", "title": "State Check Interval",
"description": "UNDOCUMENTED", "description": "Time in seconds between checks to determine if this mob should catch up to the entity being followed",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"catch_up_threshold": { "catch_up_threshold": {
"type": "number", "type": "number",
"title": "Catch Up Threshold", "title": "Catch Up Threshold",
"description": "UNDOCUMENTED", "description": "Distance in blocks from the entity being followed at which this mob will speed up to catch up",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"match_direction_threshold": { "match_direction_threshold": {
"type": "number", "type": "number",
"title": "Match Direction Threshold", "title": "Match Direction Threshold",
"description": "UNDOCUMENTED", "description": "Distance in blocks from the entity being followed at which this mob will match that entity's direction",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"catch_up_multiplier": { "catch_up_multiplier": {
"type": "number", "type": "number",
"title": "Catch Up Multiplier", "title": "Catch Up Multiplier",
"description": "UNDOCUMENTED", "description": "The multiplier applied to the speed of this mob when trying to catch up",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"search_range": { "search_range": {
"type": "number", "type": "number",
"title": "Search Range", "title": "Search Range",
"description": "UNDOCUMENTED", "description": "Radius in blocks around this mob to search for another entity to follow",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"stop_distance": { "stop_distance": {
"type": "number", "type": "number",
"title": "Stop Distance", "title": "Stop Distance",
"description": "UNDOCUMENTED", "description": "Distance in blocks from the entity being followed at which this entity will stop following",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json", "$ref": "../types/entity_types.json",
"title": "Entity Types", "title": "Entity Types",
"description": "UNDOCUMENTED", "description": "Filters which determine what entites are valid to follow",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
} }
}, },

View File

@@ -11,7 +11,7 @@
"damage_reach": { "damage_reach": {
"type": "number", "type": "number",
"title": "Damage Reach", "title": "Damage Reach",
"description": "UNDOCUMENTED", "description": "Added onto the base size of this mob to determine the maximum distance this mob can deal damage",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"delay_range": { "delay_range": {

View File

@@ -1,6 +1,6 @@
{ {
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.target_when_pushed", "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.target_when_pushed",
"description": "UNDOCUMENTED", "description": "Allows this mob to target an entity that pushed it",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"title": "Target When Pushed", "title": "Target When Pushed",
@@ -13,13 +13,13 @@
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json", "$ref": "../types/entity_types.json",
"title": "Entity Types", "title": "Entity Types",
"description": "UNDOCUMENTED", "description": "The list of conditions the other entity must meet to be a valid target",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"percent_chance": { "percent_chance": {
"type": "number", "type": "number",
"title": "Percent Chance", "title": "Percent Chance",
"description": "UNDOCUMENTED", "description": "The chance that the entity becomes a target when this mob is pushed",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
} }
}, },

View File

@@ -16,13 +16,13 @@
"can_tempt_while_ridden": { "can_tempt_while_ridden": {
"type": "boolean", "type": "boolean",
"title": "Can Tempt While Ridden", "title": "Can Tempt While Ridden",
"description": "UNDOCUMENTED", "description": "If true, this mob can be tempted while it has a passenger",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"can_tempt_vertically": { "can_tempt_vertically": {
"type": "boolean", "type": "boolean",
"title": "Can Tempt Vertically", "title": "Can Tempt Vertically",
"description": "UNDOCUMENTED", "description": "If true, vertical distance will be considered when being tempted",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"items": { "items": {

View File

@@ -7,10 +7,11 @@
"properties": { "properties": {
"sensor_radius": { "sensor_radius": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "The maximum radius in blocks in which a specified block can be detected.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Sensor Radius", "title": "Sensor Radius",
"minimum": 0 "minimum": 0,
"maximum": 32
}, },
"on_break": { "on_break": {
"type": "array", "type": "array",
@@ -41,12 +42,19 @@
}, },
"sources": { "sources": {
"title": "Sources", "title": "Sources",
"description": "UNDOCUMENTED", "description": "List of sources that break the block to listen for. If none are specified, then all block breaks will be detected",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "array", "type": "array",
"items": { "items": {
"$ref": "../../filters/filters.json" "$ref": "../../filters/filters.json"
},
"examples": [
{
"test": "has_silk_touch",
"subject": "other",
"value": false
} }
]
} }
}, },
"examples": [ "examples": [

View File

@@ -18,14 +18,17 @@
"drop_chance": { "drop_chance": {
"type": "number", "type": "number",
"title": "Drop Chance", "title": "Drop Chance",
"description": "UNDOCUMENTED", "description": "The chance that the item in this slot will drop",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"slot": { "slot": {
"type": "string", "type": "string",
"title": "Slot", "title": "Slot",
"description": "UNDOCUMENTED", "description": "The slot in which the item will drop from",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED",
"examples": [
"slot.weapon.mainhand"
]
} }
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"$id": "blockception.minecraft.behavior.entities.minecraft.health", "$id": "blockception.minecraft.behavior.entities.minecraft.health",
"description": "UNDOCUMENTED", "description": "Sets the amount of health this mob has",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"title": "Health", "title": "Health",
@@ -24,13 +24,13 @@
"properties": { "properties": {
"range_min": { "range_min": {
"title": "Range Minimum", "title": "Range Minimum",
"description": "UNDOCUMENTED", "description": "The minimum amount of health this mob could have",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number"
}, },
"range_max": { "range_max": {
"title": "Range Maximum", "title": "Range Maximum",
"description": "UNDOCUMENTED", "description": "The maximum amount of health this mob could have",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "number" "type": "number"
} }

View File

@@ -3,11 +3,11 @@
"type": "object", "type": "object",
"title": "Horse.jump Strength", "title": "Horse.jump Strength",
"additionalProperties": false, "additionalProperties": false,
"description": "UNDOCUMENTED", "description": "Allows this mob to jump higher when being ridden by a player",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"value": { "value": {
"description": "UNDOCUMENTED", "description": "The multiplier to apply to the jumping height",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Value", "title": "Value",
"oneOf": [ "oneOf": [

View File

@@ -21,13 +21,13 @@
}, },
"entered_block_event": { "entered_block_event": {
"title": "Entered Block Event", "title": "Entered Block Event",
"description": "UNDOCUMENTED", "description": "Event to run when this mob enters a valid block",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../types/event.json" "$ref": "../types/event.json"
}, },
"exited_block_event": { "exited_block_event": {
"title": "Exited Block Event", "title": "Exited Block Event",
"description": "UNDOCUMENTED", "description": "Event to run when this mob leaves a valid block",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../types/event.json" "$ref": "../types/event.json"
} }

View File

@@ -110,32 +110,32 @@
"mob_effect": { "mob_effect": {
"type": "object", "type": "object",
"default": true, "default": true,
"description": "UNDOCUMENTED", "description": "Effect to apply on the entity hit by this projectile",
"title": "Mob Effects", "title": "Mob Effects",
"properties": { "properties": {
"effect": { "effect": {
"title": "Effect", "title": "Effect",
"description": "UNDOCUMENTED", "description": "The name of the effect to apply",
"type": "string" "type": "string"
}, },
"durationeasy": { "durationeasy": {
"title": "Duration Easy", "title": "Duration Easy",
"description": "UNDOCUMENTED", "description": "Duration in seconds of the effect when on Easy difficulty",
"type": "number" "type": "number"
}, },
"durationnormal": { "durationnormal": {
"title": "Duration Normal", "title": "Duration Normal",
"description": "UNDOCUMENTED", "description": "Duration in seconds of the effect when on Normal difficulty",
"type": "number" "type": "number"
}, },
"durationhard": { "durationhard": {
"title": "Duration Hard", "title": "Duration Hard",
"description": "UNDOCUMENTED", "description": "Duration in seconds of the effect when on Hard difficulty",
"type": "number" "type": "number"
}, },
"amplifier": { "amplifier": {
"title": "Amplifier", "title": "Amplifier",
"description": "UNDOCUMENTED", "description": "Amplifier level of the effect",
"type": "number" "type": "number"
} }
} }
@@ -160,7 +160,7 @@
"on_hit": { "on_hit": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Performs different behaviours when this projectile hits something",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "On Hit", "title": "On Hit",
"properties": { "properties": {
@@ -187,14 +187,14 @@
}, },
"definition_event": { "definition_event": {
"additionalProperties": false, "additionalProperties": false,
"description": "UNDOCUMENTED", "description": "Calls an event on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Event", "title": "Event",
"type": "object", "type": "object",
"properties": { "properties": {
"affect_projectile": { "affect_projectile": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "Event will be triggered for this projectile entity",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Affect Projectile" "title": "Affect Projectile"
}, },
@@ -212,7 +212,7 @@
"impact_damage": { "impact_damage": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Deals damage on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Impact Damage", "title": "Impact Damage",
"properties": { "properties": {
@@ -237,18 +237,18 @@
"filter": { "filter": {
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "Entity to affect. Note: cannot test for anything other than the identifier",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Filter" "title": "Filter"
}, },
"catch_fire": { "catch_fire": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, sets the target on fire",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Catch Fire" "title": "Catch Fire"
}, },
"damage": { "damage": {
"description": "UNDOCUMENTED", "description": "Damage dealt to entity on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Damage", "title": "Damage",
"oneOf": [{ "type": "integer" }, { "type": "array", "items": [{ "type": "integer" }, { "type": "integer" }] }] "oneOf": [{ "type": "integer" }, { "type": "array", "items": [{ "type": "integer" }, { "type": "integer" }] }]
@@ -315,31 +315,31 @@
"particle_on_hit": { "particle_on_hit": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Spawns particles on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Particle On Hit", "title": "Particle On Hit",
"properties": { "properties": {
"particle_type": { "particle_type": {
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "The vanilla particle to use",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Particle Type" "title": "Particle Type"
}, },
"num_particles": { "num_particles": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "Number of particles to spawn",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Num Particles" "title": "Num Particles"
}, },
"on_entity_hit": { "on_entity_hit": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, spawns particles when this projectile hits an entity",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "On Entity Hit" "title": "On Entity Hit"
}, },
"on_other_hit": { "on_other_hit": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, spawns particles when this projectile hits something other than an entity",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "On Other Hit" "title": "On Other Hit"
} }
@@ -348,14 +348,14 @@
"remove_on_hit": { "remove_on_hit": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Removes this projectile if it hits something",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Remove On Hit" "title": "Remove On Hit"
}, },
"spawn_chance": { "spawn_chance": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Spawns an entity on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Spawn Chance", "title": "Spawn Chance",
"properties": { "properties": {
@@ -391,25 +391,27 @@
}, },
"spawn_definition": { "spawn_definition": {
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "Identifier of the entity to spawn",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Spawn Definition" "title": "Spawn Definition"
}, },
"spawn_baby": { "spawn_baby": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, the `minecraft:entity_born` event will be run on the entity.",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Spawn Baby" "title": "Spawn Baby"
} }
} }
}, },
"spawn_aoe_cloud": { "spawn_aoe_cloud": {
"description": "Spawns an area of effect cloud",
"$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"properties": { "properties": {
"radius": { "radius": {
"type": "number", "type": "number",
"description": "UNDOCUMENTED", "description": "Radius of the cloud",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Radius" "title": "Radius"
}, },
@@ -421,24 +423,24 @@
}, },
"potion": { "potion": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "The lingering potion ID to use",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Potion" "title": "Potion"
}, },
"particle": { "particle": {
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "Vanilla particle that is used for the cloud",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Particle" "title": "Particle"
}, },
"duration": { "duration": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "Duration in seconds of the cloud existing",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Duration" "title": "Duration"
}, },
"color": { "color": {
"description": "UNDOCUMENTED", "description": "Color of the cloud particles",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Color", "title": "Color",
"type": "array", "type": "array",
@@ -469,13 +471,13 @@
}, },
"affect_owner": { "affect_owner": {
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "If true, the potion effect of the cloud will affect the shooter",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Affect Owner" "title": "Affect Owner"
}, },
"reapplication_delay": { "reapplication_delay": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "Delay in ticks between application of the potion effect",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Reapplication Delay" "title": "Reapplication Delay"
} }
@@ -484,7 +486,7 @@
"stick_in_ground": { "stick_in_ground": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Sticks this projectile into the ground on hit",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Stick In Ground", "title": "Stick In Ground",
"properties": { "properties": {
@@ -500,7 +502,7 @@
"teleport_owner": { "teleport_owner": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "Teleports the shooter to the hit location",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Teleport Owner" "title": "Teleport Owner"
}, },
@@ -513,7 +515,7 @@
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"title": "Grant XP", "title": "Grant XP",
"description": "UNDOCUMENTED", "description": "Spawns a number of experience orbs, which total the amount stated when gathered",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"properties": { "properties": {
"minXP": { "minXP": {
@@ -595,7 +597,7 @@
"stop_on_hurt": { "stop_on_hurt": {
"title": "Splash Range", "title": "Splash Range",
"type": "boolean", "type": "boolean",
"description": "UNDOCUMENTED", "description": "Radius in blocks of the 'splash' effect",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"uncertainty_base": { "uncertainty_base": {

View File

@@ -23,12 +23,12 @@
"weight": { "weight": {
"type": "integer", "type": "integer",
"title": "Weight", "title": "Weight",
"description": "UNDOCUMENTED", "description": "The chance of this reaction being picked",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
}, },
"value": { "value": {
"title": "Value", "title": "Value",
"description": "UNDOCUMENTED", "description": "An event that runs when this reaction is picked",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"$ref": "../types/event.json" "$ref": "../types/event.json"
} }

View File

@@ -7,14 +7,14 @@
"properties": { "properties": {
"min_delay_secs": { "min_delay_secs": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "The minimum time in seconds before a scheduled event occurs",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Minimum Delay Secs", "title": "Minimum Delay Secs",
"minimum": 0 "minimum": 0
}, },
"max_delay_secs": { "max_delay_secs": {
"type": "integer", "type": "integer",
"description": "UNDOCUMENTED", "description": "The maximum time in seconds before a scheduled event occurs",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Maximum Delay Secs", "title": "Maximum Delay Secs",
"minimum": 0 "minimum": 0
@@ -26,7 +26,7 @@
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED", "description": "A filter and event pair. The event runs when the filter criteria succeeds",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Scheduled Events", "title": "Scheduled Events",
"properties": { "properties": {