avoid blocks now documentated

This commit is contained in:
DaanV2
2022-04-20 12:49:06 +02:00
parent 67bff2179f
commit 42cd2f8508

View File

@@ -6,66 +6,55 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"priority": { "priority": { "$ref": "types/priority.json" },
"$ref": "types/priority.json"
},
"tick_interval": { "tick_interval": {
"type": "integer", "type": "integer",
"title": "Tick Interval", "title": "Tick Interval",
"description": "The amount of ticks between each search", "default": 1,
"$comment": "UNDOCUMENTED" "description": "Should start tick interval."
}, },
"search_range": { "search_range": {
"type": "integer", "type": "integer",
"title": "Search Range", "title": "Search Range",
"description": "The range of the search in blocks", "description": "Maximum distance to look for a block in xz."
"$comment": "UNDOCUMENTED"
}, },
"search_height": { "search_height": {
"type": "integer", "type": "integer",
"title": "Search Height", "title": "Search Height",
"description": "The height of the search", "description": "Maximum distance to look for a block in y."
"$comment": "UNDOCUMENTED"
}, },
"sprint_speed_modifier": { "sprint_speed_modifier": {
"type": "number", "type": "number",
"title": "Sprint Speed Modifier", "title": "Sprint Speed Modifier",
"description": "The speed modifier to apply when walking away from the block", "description": "Modifier for sprint speed. 1.0 means keep the regular speed, while higher numbers make the sprint speed faster."
"$comment": "UNDOCUMENTED"
}, },
"target_selection_method": { "target_selection_method": {
"type": "string", "type": "string",
"title": "Target Selection Method", "title": "Target Selection Method",
"description": "UNDOCUMENTED", "description": "Block search method.",
"$comment": "UNDOCUMENTED" "enum": ["nearest"]
}, },
"target_blocks": { "target_blocks": {
"type": "array", "type": "array",
"title": "Target Blocks", "title": "Target Blocks",
"description": "What blocks are to be avoided", "description": "List of block types this mob avoids.",
"$comment": "UNDOCUMENTED", "items": { "title": "Block ID", "$ref": "../../../../general/block/identifier.json" }
"items": {
"title": "Block ID",
"$ref": "../../../../general/block/identifier.json"
}
}, },
"avoid_block_sound": { "avoid_block_sound": {
"type": "string", "type": "string",
"title": "Avoid Block Sound", "title": "Avoid Block Sound",
"description": "UNDOCUMENTED", "description": "The sound event to play when the mob is avoiding a block."
"$comment": "UNDOCUMENTED"
}, },
"walk_speed_modifier": { "walk_speed_modifier": {
"type": "number", "type": "number",
"title": "Walk Speed Modifier", "title": "Walk Speed Modifier",
"description": "UNDOCUMENTED", "default": 1.0,
"$comment": "UNDOCUMENTED" "description": "Modifier for walking speed. 1.0 means keep the regular speed, while higher numbers make the walking speed faster."
}, },
"on_escape": { "on_escape": {
"type": "array", "type": "array",
"title": "Walk Speed Modifier", "title": "Walk Speed Modifier",
"description": "UNDOCUMENTED", "description": "Escape trigger.",
"$comment": "UNDOCUMENTED",
"items": { "items": {
"$ref": "../types/event.json" "$ref": "../types/event.json"
} }
@@ -78,29 +67,17 @@
{ {
"type": "array", "type": "array",
"items": [ "items": [
{ { "type": "number", "title": "Maximum" },
"type": "number", { "type": "number", "title": "Maximum" }
"title": "Maximum"
},
{
"type": "number",
"title": "Maximum"
}
] ]
}, },
{ { "type": "number" },
"type": "number"
},
{ {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"range_min": { "range_min": { "type": "number" },
"type": "number" "range_max": { "type": "number" }
},
"range_max": {
"type": "number"
}
} }
} }
] ]