Updated comments

This commit is contained in:
DaanV2
2021-07-03 11:45:14 +02:00
parent 0755a30b1e
commit 56d96d8c64
15 changed files with 92 additions and 95 deletions

View File

@@ -8,7 +8,7 @@
"properties": { "properties": {
"priority": { "$ref": "./types/priority.json" }, "priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"speed_modifier": { "default": 0.0, "description": "UNDOCUMENTED: speed modifier", "title": "Speed Modifier" }, "speed_modifier": { "default": 0.0, "description": "Movement speed modifier of the mob when using this AI Goal", "title": "Speed Modifier" },
"potions": { "potions": {
"type": "array", "type": "array",
"description": "A list of potions that this entity can drink.", "description": "A list of potions that this entity can drink.",
@@ -17,7 +17,7 @@
"required": ["id", "chance", "filters"], "required": ["id", "chance", "filters"],
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "UNDOCUMENTED: potions", "description": "A potions that this entity can drink.",
"title": "Potions", "title": "Potions",
"properties": { "properties": {
"id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" }, "id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" },

View File

@@ -2,8 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.behavior.equip_item", "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.behavior.equip_item",
"type": "object", "type": "object",
"title": "Equip Item 1.16.0", "title": "Equip Item 1.16.0",
"description": "UNDOCUMENTED", "description": "Allows the entity to equip desired equipment.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"properties": { "priority": { "$ref": "types/priority.json" } } "properties": { "priority": { "$ref": "types/priority.json" } }
} }

View File

@@ -4,25 +4,6 @@
"description": "Allows the mob to move back to the position they were spawned.", "description": "Allows the mob to move back to the position they were spawned.",
"title": "Go Home", "title": "Go Home",
"type": "object", "type": "object",
"definitions": {
"on_home_spec": {
"additionalProperties": false,
"type": "object",
"title": "On Home Event",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"title": "Target",
"enum": ["baby", "block", "damager", "other", "parent", "player", "self", "target"]
},
"filters": { "$ref": "../../filters/filters.json" }
}
}
},
"properties": { "properties": {
"priority": { "$ref": "types/priority.json" }, "priority": { "$ref": "types/priority.json" },
"speed_multiplier": { "$ref": "types/speed_multiplier.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" },
@@ -41,11 +22,7 @@
"on_home": { "on_home": {
"description": "Event to run when this mob gets home.", "description": "Event to run when this mob gets home.",
"title": "On Home", "title": "On Home",
"oneOf": [ "$ref": "../types/trigger.json"
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$" },
{ "type": "object", "$ref": "#/definitions/on_home_spec" },
{ "type": "array", "items": { "$ref": "#/definitions/on_home_spec" } }
]
}, },
"on_failed": { "on_failed": {
"$ref": "../types/event.json", "$ref": "../types/event.json",

View File

@@ -28,14 +28,20 @@
"title": "Knockback Range" "title": "Knockback Range"
}, },
"knockback_strength": { "type": "integer", "default": 4, "description": "The strength of the knockback.", "title": "Knockback Strength" }, "knockback_strength": { "type": "integer", "default": 4, "description": "The strength of the knockback.", "title": "Knockback Strength" },
"Trigger": { "$ref": "../types/trigger.json", "description": "On_roar_end", "title": "Trigger" },
"knockback_filters": { "knockback_filters": {
"$ref": "../../filters/filters.json", "$ref": "../../filters/filters.json",
"description": "UNDOCUMENTED", "description": "filters to use to decide what is affected by knockback roar.",
"$comment": "UNDOCUMENTED",
"title": "Knockback Filters" "title": "Knockback Filters"
}, },
"damage_filters": { "$ref": "../../filters/filters.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Damage Filters" }, "damage_filters": {
"on_roar_end": { "$ref": "../types/event.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "On Roar End" } "$ref": "../../filters/filters.json",
"description": "filters to use to decide what is damaged by knockback roar.",
"title": "Damage Filters"
},
"on_roar_end": {
"$ref": "../types/event.json",
"description": "Event to run when knockback roar has finished.",
"title": "On Roar End"
}
} }
} }

View File

@@ -10,10 +10,17 @@
"liquid_y_offset": { "liquid_y_offset": {
"type": "number", "type": "number",
"title": "Liquid Y Offset", "title": "Liquid Y Offset",
"description": "UNDOCUMENTED", "description": "Vertical offset from the liquid"
"$comment": "UNDOCUMENTED"
}, },
"rise_delta": { "type": "number", "title": "Rise Delta", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, "rise_delta": {
"sink_delta": { "type": "number", "title": "Sink Delta", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } "type": "number",
"title": "Rise Delta",
"description": "Displacement for how much the entity will move up in the vertical axis"
},
"sink_delta": {
"type": "number",
"title": "Sink Delta",
"description": "Displacement for how much the entity will move down in the vertical axis"
}
} }
} }

View File

@@ -9,23 +9,22 @@
"on_break": { "on_break": {
"type": "array", "type": "array",
"title": "On Break", "title": "On Break",
"description": "Blocks that will trigger the component when broken and what event will trigger.",
"items": { "items": {
"type": "object", "type": "object",
"title": "On Block Broken", "title": "On Block Broken",
"description": "",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"block_list": { "block_list": {
"type": "array", "type": "array",
"title": "Block List", "title": "Block List",
"description": "UNDOCUMENTED", "description": "Blocks that will trigger the component when broken and what event will trigger.",
"$comment": "UNDOCUMENTED", "items": { "$ref": "../../../../general/block/identifier.json", "title": "Block ID" }
"items": { "type": "string", "title": "Block ID" }
}, },
"on_block_broken": { "type": "string", "title": "On Block Broken", "description": "On block broken" } "on_block_broken": { "type": "string", "title": "On Block Broken", "description": "Event to run when a block breaks" }
} }
}, }
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED"
} }
} }
} }

View File

@@ -8,8 +8,7 @@
"base_buoyancy": { "base_buoyancy": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "UNDOCUMENTED", "description": "Base buoyancy used to calculate how much will a mob float.",
"$comment": "UNDOCUMENTED",
"title": "Base Buoyancy" "title": "Base Buoyancy"
}, },
"apply_gravity": { "apply_gravity": {

View File

@@ -48,15 +48,13 @@
"properties": { "properties": {
"range_min": { "range_min": {
"type": "number", "type": "number",
"title": "Update Interval Variant", "title": "Minimum",
"description": "UNDOCUMENTED", "description": "Minimum"
"$comment": "UNDOCUMENTED"
}, },
"range_max": { "range_max": {
"type": "number", "type": "number",
"title": "Update Interval Variant", "title": "Maximum",
"description": "UNDOCUMENTED", "description": "Maximum"
"$comment": "UNDOCUMENTED"
} }
} }
} }

View File

@@ -8,23 +8,32 @@
"hitboxes": { "hitboxes": {
"type": "array", "type": "array",
"title": "Hitboxes", "title": "Hitboxes",
"description": "UNDOCUMENTED", "description": "Defines a hitbox size and pivot to test against.",
"$comment": "UNDOCUMENTED",
"items": { "items": {
"type": "object", "type": "object",
"title": "Hitbox", "title": "Hitbox",
"description": "UNDOCUMENTED", "description": "Defines a hitbox size and pivot to test against.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"width": { "type": "number", "title": "Width", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, "width": {
"height": { "type": "number", "title": "Height", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, "type": "number",
"title": "Width",
"description": "Height of the hitbox in blocks. A negative value will be assumed to be 0."
},
"height": {
"type": "number",
"title": "Height",
"description": "Width and Depth of the hitbox in blocks. A negative value will be assumed to be 0."
},
"pivot": { "pivot": {
"type": "array", "type": "array",
"title": "Pivot", "title": "Pivot",
"description": "UNDOCUMENTED", "description": "The offset from the entity's anchor where the hitbox will spawn",
"$comment": "UNDOCUMENTED", "items": [
"items": [{ "type": "number" }, { "type": "number" }, { "type": "number" }] { "type": "number", "title": "X" },
{ "type": "number", "title": "Y" },
{ "type": "number", "title": "Z" }
]
} }
} }
} }

View File

@@ -31,10 +31,7 @@
"type": "object", "type": "object",
"description": "Specifies filters for entity definitions and events.", "description": "Specifies filters for entity definitions and events.",
"title": "On Damage", "title": "On Damage",
"properties": { "$ref": "../types/trigger.json"
"filters": { "$ref": "../../filters/filters.json" },
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTED: event", "title": "Event" },
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTED: target", "title": "Target" }
}, },
"on_damage_sound_event": { "on_damage_sound_event": {
"type": "string", "type": "string",
@@ -43,7 +40,6 @@
} }
} }
} }
}
}, },
"properties": { "properties": {
"triggers": { "triggers": {

View File

@@ -14,8 +14,7 @@
"despawn_from_distance": { "despawn_from_distance": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"description": "UNDOCUMENTED", "description": "Defines the minimum and maximum distance for despawn to occur.",
"$comment": "UNDOCUMENTED",
"title": "Despawn From Distance", "title": "Despawn From Distance",
"properties": { "properties": {
"max_distance": { "max_distance": {

View File

@@ -2,6 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.equipment", "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.equipment",
"type": "object", "type": "object",
"title": "Equipment 1.16.0", "title": "Equipment 1.16.0",
"description": "Sets the equipment table to use for the entity.",
"additionalProperties": false, "additionalProperties": false,
"required": [], "required": [],
"properties": { "properties": {
@@ -12,8 +13,7 @@
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"title": "Slot Drop Chance", "title": "Slot Drop Chance",
"description": "UNDOCUMENTED", "description": "A slots with the chance to drop an equipped item from that slot.",
"$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"properties": { "properties": {
"drop_chance": { "drop_chance": {
@@ -26,7 +26,10 @@
} }
} }
}, },
"table": { "type": "string", "pattern": ".*\\.json$", "description": "UNDOCUMENTED: table", "title": "Table" } "table": {
}, "title": "Table",
"description": "UNDOCUMENTED: " "description": "The file path to the equipment table, relative to the behavior pack's root.",
"$ref": "../../../../general/loot_table/identifier.json"
}
}
} }

View File

@@ -2,8 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.experience_reward", "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.experience_reward",
"type": "object", "type": "object",
"title": "Experience Reward 1.16.0", "title": "Experience Reward 1.16.0",
"description": "UNDOCUMENTED", "description": "Defines the amount of experience rewarded when the entity dies or is successfully bred.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"on_bred": { "on_bred": {

View File

@@ -7,9 +7,10 @@
"required": [], "required": [],
"properties": { "properties": {
"triggers": { "triggers": {
"description": "UNDOCUMENTED", "description": "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory.",
"$comment": "UNDOCUMENTED",
"title": "Triggers", "title": "Triggers",
"type": "object",
"additionalProperties": false,
"properties": { "properties": {
"cooldown": { "cooldown": {
"type": "number", "type": "number",
@@ -19,13 +20,13 @@
}, },
"items": { "items": {
"type": "array", "type": "array",
"title": "Properties",
"description": "The list of items that can be given to the entity to place in their inventory.", "description": "The list of items that can be given to the entity to place in their inventory.",
"items": { "items": {
"description": "An items that can be given to the entity to place in their inventory.", "description": "An items that can be given to the entity to place in their inventory.",
"$ref": "../../../../general/item/identifier.json", "$ref": "../../../../general/item/identifier.json",
"title": "Properties" "title": "Properties"
}, }
"title": "Properties"
}, },
"on_give": { "$ref": "../types/event.json", "description": "Event to fire when the correct item is given.", "title": "On Give" } "on_give": { "$ref": "../types/event.json", "description": "Event to fire when the correct item is given.", "title": "On Give" }
} }

View File

@@ -1,8 +1,11 @@
{ {
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.8.0", "$id": "blockception.minecraft.behavior.entities.type.trigger.1.8.0",
"title": "Trigger1.8.0", "title": "Trigger1.8.0",
"type": "object",
"description": "Trigger to fire", "description": "Trigger to fire",
"oneOf": [
{ "type": "string" },
{
"type": "object",
"minProperties": 1, "minProperties": 1,
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
@@ -14,3 +17,5 @@
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" } "target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
} }
} }
]
}