Files
Piotr Brzozowski 4b7a779f2c Expand block reference schema (#121)
* Fix typo in module name
* Add sound_event schema and add it where appropriate
* Add more fields to block reference and fill some missing fields
* Use molang definition for tags
2022-10-06 13:03:40 +02:00

89 lines
2.6 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.breathable",
"type": "object",
"title": "Breathable",
"additionalProperties": false,
"description": "Defines what blocks this entity can breathe in and gives them the ability to suffocate.",
"required": [],
"properties": {
"total_supply": {
"type": "integer",
"default": 15,
"description": "Time in seconds the entity can hold its breath.",
"title": "Total Supply"
},
"suffocate_time": {
"type": "integer",
"default": -20,
"description": "Time in seconds between suffocation damage.",
"title": "Suffocate Time"
},
"inhale_time": {
"type": "number",
"default": 0,
"description": "Time in seconds to recover breath to maximum.",
"title": "Inhale Time"
},
"breathes_air": {
"type": "boolean",
"default": true,
"description": "If true, this entity can breathe in air.",
"title": "Breathes Air"
},
"breathes_water": {
"type": "boolean",
"default": false,
"description": "If true, this entity can breathe in water.",
"title": "Breathes Water"
},
"breathes_lava": {
"type": "boolean",
"default": false,
"description": "If true, this entity can breathe in lava.",
"title": "Breathes Lava"
},
"breathes_solids": {
"type": "boolean",
"default": false,
"description": "If true, this entity can breathe in solid blocks.",
"title": "Breathes Solids"
},
"generates_bubbles": {
"type": "boolean",
"default": true,
"description": "If true, this entity will have visible bubbles while in water.",
"title": "Generates Bubbles"
},
"breathe_blocks": {
"type": "array",
"description": "List of blocks this entity can breathe in, in addition to the above.",
"items": {
"$ref": "../../../../general/block/reference.json"
},
"title": "Breathe Blocks"
},
"non_breathe_blocks": {
"type": "array",
"description": "List of blocks this entity can't breathe in, in addition to the above.",
"items": {
"$ref": "../../../../general/block/reference.json"
},
"title": "Non Breathes Blocks"
}
},
"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": []
}
]
}