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:
@@ -4,5 +4,12 @@
|
|||||||
"description": "Sets this block to another block type.",
|
"description": "Sets this block to another block type.",
|
||||||
"title": "Set Block",
|
"title": "Set Block",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": { "block_type": { "type": "string", "default": "", "description": "The type of block to set.", "title": "Block Type" } }
|
"properties": {
|
||||||
|
"block_type": {
|
||||||
|
"$ref": "../../../../general/block/reference.json",
|
||||||
|
"default": "",
|
||||||
|
"description": "The type of block to set.",
|
||||||
|
"title": "Block Type"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
{ "type": "number", "title": "Z", "description": "The z offset from the block's center." }
|
{ "type": "number", "title": "Z", "description": "The z offset from the block's center." }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"block_type": { "type": "string", "default": "", "description": "The type of block to set.", "title": "Block Type" }
|
"block_type": {
|
||||||
|
"$ref": "../../../../general/block/reference.json",
|
||||||
|
"default": "",
|
||||||
|
"description": "The type of block to set.",
|
||||||
|
"title": "Block Type"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Block Id",
|
"title": "Block Id",
|
||||||
"description": "A block identifier.",
|
"description": "A block identifier.",
|
||||||
"$ref": "../../../../general/item/descriptor.json"
|
"$ref": "../../../../general/block/reference.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eat_delay": {
|
"eat_delay": {
|
||||||
|
|||||||
@@ -11,12 +11,12 @@
|
|||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "../../../../general/item/identifier.json"
|
"$ref": "../../../../general/item/descriptor.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$ref": "../../../../general/item/identifier.json"
|
"$ref": "../../../../general/item/descriptor.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Drop Items"
|
"title": "Drop Items"
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"$ref": "../../../../general/item/identifier.json"
|
"$ref": "../../../../general/item/descriptor.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"title": "Grow Up"
|
"title": "Grow Up"
|
||||||
},
|
},
|
||||||
"transform_to_item": {
|
"transform_to_item": {
|
||||||
"type": "string",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"title": "Transform To Item",
|
"title": "Transform To Item",
|
||||||
"description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
|
"description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,14 +32,20 @@
|
|||||||
"description": "This is the damage that the item will take each time it is used.",
|
"description": "This is the damage that the item will take each time it is used.",
|
||||||
"title": "Damage"
|
"title": "Damage"
|
||||||
},
|
},
|
||||||
|
"item_damage": {
|
||||||
|
"type": "integer",
|
||||||
|
"default": 1,
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"title": "Item Damage"
|
||||||
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"type": "string",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "Name of the item that can be used to boost.",
|
"description": "Name of the item that can be used to boost.",
|
||||||
"title": "Item"
|
"title": "Item"
|
||||||
},
|
},
|
||||||
"replace_item": {
|
"replace_item": {
|
||||||
"type": "string",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"default": "",
|
"default": "",
|
||||||
"description": "The item used to boost will become this item once it is used up.",
|
"description": "The item used to boost will become this item once it is used up.",
|
||||||
"title": "Replace Item"
|
"title": "Replace Item"
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "List of blocks this entity can breathe in, in addition to the above.",
|
"description": "List of blocks this entity can breathe in, in addition to the above.",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "../../../../general/block/identifier.json"
|
"$ref": "../../../../general/block/reference.json"
|
||||||
},
|
},
|
||||||
"title": "Breathe Blocks"
|
"title": "Breathe Blocks"
|
||||||
},
|
},
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "List of blocks this entity can't breathe in, in addition to the above.",
|
"description": "List of blocks this entity can't breathe in, in addition to the above.",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "../../../../general/block/identifier.json"
|
"$ref": "../../../../general/block/reference.json"
|
||||||
},
|
},
|
||||||
"title": "Non Breathes Blocks"
|
"title": "Non Breathes Blocks"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,14 +40,14 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"description": "A block type required nearby for the entity to breed.",
|
"description": "A block type required nearby for the entity to breed.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$ref": "../../../../general/blocks_item.json",
|
"$ref": "../../../../general/block/reference.json",
|
||||||
"title": "Blocks"
|
"title": "Blocks"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "A block type required nearby for the entity to breed.",
|
"description": "A block type required nearby for the entity to breed.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$ref": "../../../../general/blocks_item.json",
|
"$ref": "../../../../general/block/reference.json",
|
||||||
"title": "Blocks"
|
"title": "Blocks"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -95,13 +95,13 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "An item that can be used to get the entity into the `love` state.",
|
"description": "An item that can be used to get the entity into the `love` state.",
|
||||||
"$ref": "../../../../general/item/identifier.json",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"title": "Breed Item"
|
"title": "Breed Item"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"$ref": "../../../../general/item/identifier.json"
|
"$ref": "../../../../general/item/descriptor.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,8 +46,8 @@
|
|||||||
"description": "List of blocks this entity can float on. Must be a liquid block.",
|
"description": "List of blocks this entity can float on. Must be a liquid block.",
|
||||||
"title": "Liquid Blocks",
|
"title": "Liquid Blocks",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"title": "Block",
|
||||||
"title": "Block ID"
|
"$ref": "../../../../general/block/reference.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"simulate_waves": {
|
"simulate_waves": {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"$ref": "../../../../general/item/identifier.json",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"description": "Identifier of the item that can be equipped for this slot.",
|
"description": "Identifier of the item that can be equipped for this slot.",
|
||||||
"title": "Item"
|
"title": "Item"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,6 +5,33 @@
|
|||||||
"title": "Healable",
|
"title": "Healable",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [],
|
"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": {
|
"properties": {
|
||||||
"filters": {
|
"filters": {
|
||||||
"$ref": "../../filters/filters.json"
|
"$ref": "../../filters/filters.json"
|
||||||
@@ -33,9 +60,22 @@
|
|||||||
"title": "Heal Amount"
|
"title": "Heal Amount"
|
||||||
},
|
},
|
||||||
"item": {
|
"item": {
|
||||||
"type": "string",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"description": "Item identifier that can be used to heal this entity.",
|
"description": "Item that can be used to heal this entity.",
|
||||||
"title": "Item"
|
"title": "Item"
|
||||||
|
},
|
||||||
|
"effects": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/effect"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/effect"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,13 @@
|
|||||||
"$comment": "UNDOCUMENTED",
|
"$comment": "UNDOCUMENTED",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 0
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"mark_variant": {
|
||||||
|
"title": "Mark Variant",
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"$comment": "UNDOCUMENTED",
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"blocks": {
|
"blocks": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "../../../../general/blocks_item.json"
|
"$ref": "../../../../general/block/reference.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
"title": "Spawn Event"
|
"title": "Spawn Event"
|
||||||
},
|
},
|
||||||
"spawn_item": {
|
"spawn_item": {
|
||||||
"type": "string",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"default": "egg",
|
"default": "egg",
|
||||||
"description": "Item identifier of the item to spawn.",
|
"description": "Item identifier of the item to spawn.",
|
||||||
"title": "Spawn Item"
|
"title": "Spawn Item"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"description": "The list of items that can be used to increase the entity's temper and speed up the taming process.",
|
"description": "The list of items that can be used to increase the entity's temper and speed up the taming process.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"item": {
|
"item": {
|
||||||
"$ref": "../../../../general/item/identifier.json",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"description": "Name of the item this entity likes and can be used to increase this entity's temper.",
|
"description": "Name of the item this entity likes and can be used to increase this entity's temper.",
|
||||||
"title": "Item"
|
"title": "Item"
|
||||||
},
|
},
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"description": "The list of items that this entity dislikes and will cause it to get angry if used while untamed.",
|
"description": "The list of items that this entity dislikes and will cause it to get angry if used while untamed.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"item": {
|
"item": {
|
||||||
"$ref": "../../../../general/item/identifier.json",
|
"$ref": "../../../../general/item/descriptor.json",
|
||||||
"description": "Name of the item this entity dislikes and will cause it to get angry if used while untamed."
|
"description": "Name of the item this entity dislikes and will cause it to get angry if used while untamed."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,26 @@
|
|||||||
"default": 16,
|
"default": 16,
|
||||||
"title": "Maximum Dist"
|
"title": "Maximum Dist"
|
||||||
},
|
},
|
||||||
|
"max_height": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"title": "Maximum Height"
|
||||||
|
},
|
||||||
|
"max_flee": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"title": "Maximum Height"
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"title": "Priority"
|
||||||
|
},
|
||||||
|
"check_if_outnumbered": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "UNDOCUMENTED.",
|
||||||
|
"title": "Check If Outnumbered"
|
||||||
|
},
|
||||||
"must_see": {
|
"must_see": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "If true, the mob has to be visible to be a valid choice.",
|
"description": "If true, the mob has to be visible to be a valid choice.",
|
||||||
|
|||||||
@@ -26,6 +26,11 @@
|
|||||||
"title": "State Value",
|
"title": "State Value",
|
||||||
"description": "The key of property is the name of the block state/property, the value must be the same as the block properties accepted values."
|
"description": "The key of property is the name of the block state/property, the value must be the same as the block properties accepted values."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tags": {
|
||||||
|
"$ref": "../../molang/string.json",
|
||||||
|
"description": "[UNDOCUMENTED] A Molang expression ran against a block to match.",
|
||||||
|
"examples": ["query.any_tag('wood')"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"tags": {
|
"tags": {
|
||||||
"type": "string",
|
"$ref": "../../molang/string.json",
|
||||||
"description": "[UNDOCUMENTED] A Molang expression ran against item or block to match.",
|
"description": "[UNDOCUMENTED] A Molang expression ran against item or block to match.",
|
||||||
"examples": ["query.any_tag('minecraft:is_tool')"]
|
"examples": ["query.any_tag('minecraft:is_tool')"]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user