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

89 lines
2.6 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.breathable",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Breathable",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"description": "Defines what blocks this entity can breathe in and gives them the ability to suffocate.",
"required": [],
"properties": {
2021-10-11 18:10:42 +02:00
"total_supply": {
"type": "integer",
"default": 15,
2022-07-22 19:41:04 +02:00
"description": "Time in seconds the entity can hold its breath.",
2021-10-11 18:10:42 +02:00
"title": "Total Supply"
},
"suffocate_time": {
"type": "integer",
"default": -20,
2022-07-22 19:41:04 +02:00
"description": "Time in seconds between suffocation damage.",
2021-10-11 18:10:42 +02:00
"title": "Suffocate Time"
},
"inhale_time": {
"type": "number",
"default": 0,
2022-07-22 19:41:04 +02:00
"description": "Time in seconds to recover breath to maximum.",
2021-10-11 18:10:42 +02:00
"title": "Inhale Time"
},
"breathes_air": {
"type": "boolean",
"default": true,
2022-07-22 19:41:04 +02:00
"description": "If true, this entity can breathe in air.",
2021-10-11 18:10:42 +02:00
"title": "Breathes Air"
},
"breathes_water": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, this entity can breathe in water.",
2021-10-11 18:10:42 +02:00
"title": "Breathes Water"
},
"breathes_lava": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, this entity can breathe in lava.",
2021-10-11 18:10:42 +02:00
"title": "Breathes Lava"
},
2021-10-08 12:59:03 +02:00
"breathes_solids": {
"type": "boolean",
"default": false,
2022-07-22 19:41:04 +02:00
"description": "If true, this entity can breathe in solid blocks.",
2021-10-08 12:59:03 +02:00
"title": "Breathes Solids"
},
"generates_bubbles": {
"type": "boolean",
"default": true,
2022-07-22 19:41:04 +02:00
"description": "If true, this entity will have visible bubbles while in water.",
2021-10-08 12:59:03 +02:00
"title": "Generates Bubbles"
},
"breathe_blocks": {
"type": "array",
2022-07-22 19:41:04 +02:00
"description": "List of blocks this entity can breathe in, in addition to the above.",
2021-10-11 18:10:42 +02:00
"items": {
"$ref": "../../../../general/block/reference.json"
2021-10-11 18:10:42 +02:00
},
2021-10-08 12:59:03 +02:00
"title": "Breathe Blocks"
},
"non_breathe_blocks": {
"type": "array",
2022-07-22 19:41:04 +02:00
"description": "List of blocks this entity can't breathe in, in addition to the above.",
2021-10-11 18:10:42 +02:00
"items": {
"$ref": "../../../../general/block/reference.json"
2021-10-11 18:10:42 +02:00
},
2021-10-08 12:59:03 +02:00
"title": "Non Breathes Blocks"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"total_supply": 15,
"suffocate_time": -20,
"inhale_time": 0,
"breathes_air": true,
"breathes_water": false,
"breathes_lava": false,
"breathes_solids": false,
"generates_bubbles": true,
"breathe_blocks": [],
"non_breathe_blocks": []
}
]
2021-10-08 12:59:03 +02:00
}