Added base examples
This commit is contained in:
@@ -6,12 +6,42 @@
|
||||
"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" },
|
||||
"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,
|
||||
@@ -27,14 +57,32 @@
|
||||
"breathe_blocks": {
|
||||
"type": "array",
|
||||
"description": "List of blocks this entity can breathe in, in addition to the above",
|
||||
"items": { "$ref": "../../../../general/block/identifier.json" },
|
||||
"items": {
|
||||
"$ref": "../../../../general/block/identifier.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/identifier.json" },
|
||||
"items": {
|
||||
"$ref": "../../../../general/block/identifier.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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user