diff --git a/source/behavior/entities/format/components/addrider.json b/source/behavior/entities/format/components/addrider.json index d499c1c6..cc7f300a 100644 --- a/source/behavior/entities/format/components/addrider.json +++ b/source/behavior/entities/format/components/addrider.json @@ -9,10 +9,5 @@ "entity_type": { "type": "string", "description": "The entity type that will be riding this entity", "title": "Entity Type" }, "spawn_event": { "type": "string", "description": "The spawn event that will be used when the riding entity is created", "title": "Spawn Event" } }, - "examples": [ - { - "entity_type": "example", - "spawn_event": "example" - } - ] + "examples": [{ "entity_type": "minecraft:rabbit" }, { "entity_type": "minecraft:rabbit", "spawn_event": "self:example" }] } diff --git a/source/behavior/entities/format/components/damage_sensor.json b/source/behavior/entities/format/components/damage_sensor.json index a3bb9f1a..2b51b5b7 100644 --- a/source/behavior/entities/format/components/damage_sensor.json +++ b/source/behavior/entities/format/components/damage_sensor.json @@ -4,6 +4,24 @@ "description": "Defines what events to call when this entity is damaged by specific entities or items.", "type": "object", "additionalProperties": false, + "examples": [ + { + "triggers": [ + { + "cause": "all", + "deals_damage": false + } + ] + }, + { + "triggers": [ + { + "on_damage": { "filters": { "test": "has_damage", "subject": "self", "value": "fatal" } }, + "deals_damage": false + } + ] + } + ], "definitions": { "trigger": { "properties": { diff --git a/source/behavior/entities/format/components/environment_sensor.json b/source/behavior/entities/format/components/environment_sensor.json index c16eb9b0..a7f3ab32 100644 --- a/source/behavior/entities/format/components/environment_sensor.json +++ b/source/behavior/entities/format/components/environment_sensor.json @@ -4,6 +4,17 @@ "description": "Creates a trigger based on environment conditions.", "type": "object", "additionalProperties": false, + "examples": [ + { + "triggers": [ + { + "event": "self:example", + "target": "self", + "filters": { "test": "has_tag", "value": "example" } + } + ] + } + ], "definitions": { "trigger": { "$ref": "../types/trigger.json" diff --git a/source/behavior/entities/format/components/mark_variant.json b/source/behavior/entities/format/components/mark_variant.json index ff6c9c55..e8ceaf29 100644 --- a/source/behavior/entities/format/components/mark_variant.json +++ b/source/behavior/entities/format/components/mark_variant.json @@ -13,9 +13,5 @@ } }, "additionalProperties": false, - "examples": [ - { - "value": 0 - } - ] + "examples": [{ "value": 0 }, { "value": 1 }, { "value": 2 }, { "value": 3 }, { "value": 4 }, { "value": 5 }, { "value": 6 }, { "value": 7 }, { "value": 8 }, { "value": 9 }] } diff --git a/source/behavior/entities/format/components/trusting.json b/source/behavior/entities/format/components/trusting.json index 396e13ba..328ac335 100644 --- a/source/behavior/entities/format/components/trusting.json +++ b/source/behavior/entities/format/components/trusting.json @@ -18,19 +18,24 @@ "title": "Trust Event" }, "trust_items": { + "title": "Trust Items", "type": "array", "description": "The list of items that can be used to get the entity to trust players", "items": { "$ref": "../../../../general/item/identifier.json", "title": "Trust Item" - }, - "title": "Trust Items" + } } }, "examples": [ { "probability": 1, - "trust_items": [] + "trust_event": "self:trust" + }, + { + "probability": 1, + "trust_items": [], + "trust_event": "self:trust" } ] } diff --git a/source/behavior/entities/format/components/variant.json b/source/behavior/entities/format/components/variant.json index bb8c74f7..7a2e7ad9 100644 --- a/source/behavior/entities/format/components/variant.json +++ b/source/behavior/entities/format/components/variant.json @@ -5,13 +5,6 @@ "title": "Variant", "description": "Used to differentiate the component group of a variant of an entity from others (e.g. ocelot, villager) Parameters", "required": ["value"], - "defaultSnippets": [ - { - "label": "Variant", - "description": "New variant", - "body": { "value": "$1" } - } - ], "properties": { "value": { "type": "integer", diff --git a/source/behavior/entities/format/components/walk_animation_speed.json b/source/behavior/entities/format/components/walk_animation_speed.json index 8d29de26..7b5467ac 100644 --- a/source/behavior/entities/format/components/walk_animation_speed.json +++ b/source/behavior/entities/format/components/walk_animation_speed.json @@ -13,9 +13,5 @@ "title": "Value" } }, - "examples": [ - { - "value": 1 - } - ] + "examples": [{ "value": 1 }] }