Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/behaviors/tempt.json

74 lines
2.2 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.tempt",
2022-07-01 21:28:10 +02:00
"description": "Allows an entity to be tempted by a set item.",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Tempt",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"properties": {
"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,
2022-07-01 21:28:10 +02:00
"description": "If true, the mob can stop being tempted if the player moves too fast while close to this mob.",
2021-10-08 12:59:03 +02:00
"title": "Can Get Scared"
},
"can_tempt_while_ridden": {
"type": "boolean",
2022-07-01 21:28:10 +02:00
"default": false,
2021-10-08 12:59:03 +02:00
"title": "Can Tempt While Ridden",
2022-07-01 21:28:10 +02:00
"description": "If true, the mob can be tempted even if it has a passenger (i.e. if being ridden)."
2021-10-08 12:59:03 +02:00
},
"can_tempt_vertically": {
"type": "boolean",
2022-07-01 21:28:10 +02:00
"default": false,
2021-10-08 12:59:03 +02:00
"title": "Can Tempt Vertically",
2022-07-01 21:28:10 +02:00
"description": "If true, vertical distance to the player will be considered when tempting."
2021-10-08 12:59:03 +02:00
},
"items": {
"type": "array",
2022-07-01 21:28:10 +02:00
"title": "Items",
2021-10-08 12:59:03 +02:00
"description": "List of items this mob is tempted by",
2021-10-11 18:13:12 +02:00
"items": {
"$ref": "../../../../general/item/identifier.json"
2022-07-01 21:28:10 +02:00
}
2021-10-08 12:59:03 +02:00
},
"sound_interval": {
2022-07-01 21:28:10 +02:00
"description": "Range of random ticks to wait between tempt sounds.",
"title": "Sound Interval",
"oneOf": [
{
"type": "number",
"minimum": 0
},
{
"items": [
{ "type": "integer", "minimum": 0, "title": "Minimum" },
{ "type": "integer", "minimum": 0, "title": "Maximum" }
]
}
]
},
"tempt_sound": {
"type": "string",
"description": "Sound to play while the mob is being tempted.",
"title": "Tempt Sound"
},
2021-10-08 12:59:03 +02:00
"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
}