Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/barter.json

27 lines
742 B
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.barter",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Barter",
2021-10-08 12:59:03 +02:00
"description": "Enables the component to drop an item as a barter exchange.",
"additionalProperties": false,
"properties": {
2021-10-11 18:10:42 +02:00
"barter_table": {
"type": "string",
"description": "Loot table that's used to drop a random item.",
"title": "Barter Table"
},
2021-10-08 12:59:03 +02:00
"cooldown_after_being_attacked": {
"type": "integer",
"default": 0,
2022-07-22 19:41:04 +02:00
"description": "Duration, in seconds, for which mob won't barter items if it was hurt.",
2021-10-08 12:59:03 +02:00
"title": "Cooldown After Being Attacked"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"barter_table": "example",
"cooldown_after_being_attacked": 0
}
]
2021-10-08 12:59:03 +02:00
}