2021-10-08 12:59:03 +02:00
|
|
|
{
|
2021-10-08 13:04:13 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.entities.minecraft.trusting",
|
2021-10-08 12:59:03 +02:00
|
|
|
"type": "object",
|
2021-10-08 13:04:13 +02:00
|
|
|
"title": "Trusting",
|
2021-10-08 12:59:03 +02:00
|
|
|
"description": "Defines the rules for a mob to trust players.",
|
|
|
|
|
"required": [],
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"properties": {
|
|
|
|
|
"probability": {
|
|
|
|
|
"type": "number",
|
|
|
|
|
"default": 1,
|
|
|
|
|
"description": "The chance of the entity trusting with each item use between 0.0 and 1.0, where 1.0 is 100%",
|
|
|
|
|
"title": "Probability"
|
|
|
|
|
},
|
2021-10-11 18:10:42 +02:00
|
|
|
"trust_event": {
|
|
|
|
|
"$ref": "../types/event.json",
|
|
|
|
|
"description": "Event to run when this entity becomes trusting",
|
|
|
|
|
"title": "Trust Event"
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"trust_items": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"description": "The list of items that can be used to get the entity to trust players",
|
2021-10-11 18:10:42 +02:00
|
|
|
"items": {
|
|
|
|
|
"$ref": "../../../../general/item/identifier.json",
|
|
|
|
|
"title": "Trust Item"
|
|
|
|
|
},
|
2021-10-08 12:59:03 +02:00
|
|
|
"title": "Trust Items"
|
|
|
|
|
}
|
2021-10-11 18:10:42 +02:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"probability": 1,
|
|
|
|
|
"trust_items": []
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-10-08 12:59:03 +02:00
|
|
|
}
|