Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/nameable.json
Xterionix 822ed538f9 Some more misc fixes (#295)
* - Add mob effects enum

* - Add biome and biome tags to enum

* - Fix feature rules only showing with 1.13.0 format version

* - Replace 1.20.41 -> 1.20.80
- Make certain format versions restricted to 1.10.0

* - Remove example stick (having this here was annoying)

* - Fix

* - Remove empty sounds example

* - Misc fixes for entity components
2024-06-28 21:06:53 +02:00

69 lines
2.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.nameable",
"type": "object",
"title": "Nameable",
"additionalProperties": false,
"description": "Allows this entity to be named (e.g. using a name tag).",
"definitions": {
"name_action": {
"type": "object",
"additionalProperties": false,
"description": "Describes the special names for this entity and the events to call when the entity acquires those names.",
"title": "Name Action",
"properties": {
"name_filter": {
"type": "string",
"description": "List of special names that will cause the events defined in `on_named` to fire.",
"title": "Name Filter"
},
"on_named": {
"$ref": "../types/event_object.json",
"description": "Event to be called when this entity acquires the name specified in `name_filter'.",
"title": "On Named"
}
}
}
},
"properties": {
"allow_name_tag_renaming": {
"type": "boolean",
"default": true,
"description": "If true, this entity can be renamed with name tags.",
"title": "Allow Name Tag Renaming"
},
"always_show": {
"type": "boolean",
"default": false,
"description": "If true, the name will always be shown.",
"title": "Always Show"
},
"default_trigger": {
"$ref": "../types/trigger.json",
"description": "Trigger to run when the entity gets named.",
"title": "Default Trigger"
},
"name_actions": {
"title": "Name Actions",
"description": "Describes the special names for this entity and the events to call when the entity acquires those names.",
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/name_action"
}
},
{
"type": "object",
"$ref": "#/definitions/name_action"
}
]
}
},
"examples": [
{
"allow_name_tag_renaming": true,
"always_show": false
}
]
}