Adding examples

This commit is contained in:
DaanV2
2021-10-11 16:39:22 +02:00
parent 3ff03076ee
commit 4797b5a863
4 changed files with 11 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
"$ref": "#/definitions/groups_spec",
"definitions": {
"filters_spec": {
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }, { "test": "is_variant", "subject": "self", "value": 0 }],
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }],
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },

View File

@@ -4,6 +4,7 @@
"title": "Clock Time",
"description": "Compares the current time with a float value in the range (0.0, 1.0).\n0.0= Noon\n0.25= Sunset\n0.5= Midnight\n0.75= Sunrise",
"required": ["value"],
"examples": [{ "test": "clock_time", "value": 0.25 }],
"properties": {
"test": {
"type": "string",
@@ -25,7 +26,7 @@
"value": {
"type": "number",
"minimum": 0,
"maximum": 240000,
"maximum": 24000,
"description": "(Required) A floating point value.",
"title": "Value",
"examples": [0, 0.025, 0.5, 0.75, 1]

View File

@@ -4,6 +4,7 @@
"title": "Distance To Nearest Player",
"description": "Compares the distance to the nearest Player with a float value.",
"required": ["value"],
"examples": [{ "test": "distance_to_nearest_player", "value": 5.7 }],
"properties": {
"test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." },
"operator": { "$ref": "./types/operator.json" },

View File

@@ -2,6 +2,13 @@
"$id": "blockception.minecraft.behavior.entities.type.trigger",
"title": "Trigger",
"description": "Trigger to fire",
"examples": [
{
"filters": [],
"target": "self",
"event": "to:foo"
}
],
"oneOf": [
{ "type": "string" },
{