2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.preferred_path",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Preferred Path",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "Specifies costing information for mobs that prefer to walk on preferred paths.",
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"required": ["preferred_path_blocks"],
|
|
|
|
|
"properties": {
|
2021-10-11 18:10:42 +02:00
|
|
|
"default_block_cost": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "Cost for non-preferred blocks",
|
|
|
|
|
"title": "Default Block Cost"
|
|
|
|
|
},
|
|
|
|
|
"jump_cost": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "Added cost for jumping up a node",
|
|
|
|
|
"title": "Jump Cost"
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"max_fall_blocks": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"default": 3,
|
|
|
|
|
"description": "Distance mob can fall without taking damage",
|
|
|
|
|
"title": "Maximum Fall Blocks"
|
|
|
|
|
},
|
|
|
|
|
"preferred_path_blocks": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"title": "Preferred Path Blocks",
|
|
|
|
|
"description": "A list of blocks with their associated cost",
|
|
|
|
|
"items": {
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"type": "object",
|
|
|
|
|
"description": "Blocks cost",
|
2021-10-11 18:10:42 +02:00
|
|
|
"properties": {
|
|
|
|
|
"cost": {
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"blocks": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "../../../../general/blocks_item.json"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|
|
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"default_block_cost": 0,
|
|
|
|
|
"jump_cost": 0,
|
|
|
|
|
"max_fall_blocks": 3,
|
|
|
|
|
"preferred_path_blocks": []
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|