2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.tempt",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "Allows the mob to be tempted by food they like.",
|
|
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Tempt",
|
2021-10-08 12:59:03 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
2021-10-11 18:13:12 +02:00
|
|
|
"priority": {
|
|
|
|
|
"$ref": "types/priority.json"
|
|
|
|
|
},
|
|
|
|
|
"speed_multiplier": {
|
|
|
|
|
"$ref": "types/speed_multiplier.json"
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"can_get_scared": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": false,
|
|
|
|
|
"description": "If true, the mob can stop being tempted if the player moves too fast while close to this mob",
|
|
|
|
|
"title": "Can Get Scared"
|
|
|
|
|
},
|
|
|
|
|
"can_tempt_while_ridden": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"title": "Can Tempt While Ridden",
|
|
|
|
|
"description": "UNDOCUMENTED",
|
|
|
|
|
"$comment": "UNDOCUMENTED"
|
|
|
|
|
},
|
|
|
|
|
"can_tempt_vertically": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"title": "Can Tempt Vertically",
|
|
|
|
|
"description": "UNDOCUMENTED",
|
|
|
|
|
"$comment": "UNDOCUMENTED"
|
|
|
|
|
},
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"description": "List of items this mob is tempted by",
|
2021-10-11 18:13:12 +02:00
|
|
|
"items": {
|
|
|
|
|
"$ref": "../../../../general/item/identifier.json"
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"title": "Items"
|
|
|
|
|
},
|
|
|
|
|
"within_radius": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": 0,
|
|
|
|
|
"description": "Distance in blocks this mob can get tempted by a player holding an item they like",
|
|
|
|
|
"title": "Within Radius"
|
|
|
|
|
}
|
2021-10-11 18:13:12 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"can_get_scared": false,
|
|
|
|
|
"can_tempt_while_ridden": true,
|
|
|
|
|
"can_tempt_vertically": true,
|
|
|
|
|
"items": [],
|
|
|
|
|
"within_radius": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|