Added more examples
This commit is contained in:
@@ -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" }]
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 }]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -13,9 +13,5 @@
|
||||
"title": "Value"
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
"examples": [{ "value": 1 }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user