Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/npc.json
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

115 lines
3.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.npc",
"type": "object",
"title": "Npc",
"description": "Sets this entity as an NPC",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"definitions": {
"rangeXYZ": {
"type": "array",
"items": [
{
"type": "number",
"title": "X"
},
{
"type": "number",
"title": "Y"
},
{
"type": "number",
"title": "Z"
}
]
}
},
"properties": {
"npc_data": {
"type": "object",
"title": "Npc Data",
"description": "The data belonging to this npc.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"portrait_offsets": {
"type": "object",
"title": "Portrait Offsets",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"translate": {
"$ref": "#/definitions/rangeXYZ",
"title": "Translate",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
},
"scale": {
"$ref": "#/definitions/rangeXYZ",
"title": "Scale",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
}
}
},
"picker_offsets": {
"type": "object",
"title": "Picker Offsets",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"translate": {
"$ref": "#/definitions/rangeXYZ",
"title": "Translate",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
},
"scale": {
"$ref": "#/definitions/rangeXYZ",
"title": "Scale",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
}
}
},
"skin_list": {
"type": "array",
"title": "Skin List",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"items": {
"type": "object",
"title": "Skin",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"variant": {
"title": "Variant",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "integer",
"minimum": 0
},
"mark_variant": {
"title": "Mark Variant",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"type": "integer",
"minimum": 0
}
}
}
}
}
}
},
"examples": [
{
"npc_data": {}
}
]
}