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
This commit is contained in:
Piotr Brzozowski
2022-10-06 13:03:40 +02:00
committed by GitHub
parent c66168de3c
commit 4b7a779f2c
17 changed files with 115 additions and 25 deletions

View File

@@ -5,6 +5,33 @@
"title": "Healable",
"additionalProperties": false,
"required": [],
"definitions": {
"effect": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "string"
},
"duration": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The duration of the effect.",
"$comment": "UNDOCUMENTED"
},
"amplifier": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The amplifier of the effect.",
"$comment": "UNDOCUMENTED"
}
}
}
},
"properties": {
"filters": {
"$ref": "../../filters/filters.json"
@@ -33,9 +60,22 @@
"title": "Heal Amount"
},
"item": {
"type": "string",
"description": "Item identifier that can be used to heal this entity.",
"$ref": "../../../../general/item/descriptor.json",
"description": "Item that can be used to heal this entity.",
"title": "Item"
},
"effects": {
"oneOf": [
{
"$ref": "#/definitions/effect"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/effect"
}
}
]
}
}
}