Adding examples
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"$ref": "#/definitions/groups_spec",
|
"$ref": "#/definitions/groups_spec",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"filters_spec": {
|
"filters_spec": {
|
||||||
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }, { "test": "is_variant", "subject": "self", "value": 0 }],
|
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }],
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
|
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"title": "Clock Time",
|
"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",
|
"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"],
|
"required": ["value"],
|
||||||
|
"examples": [{ "test": "clock_time", "value": 0.25 }],
|
||||||
"properties": {
|
"properties": {
|
||||||
"test": {
|
"test": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -25,7 +26,7 @@
|
|||||||
"value": {
|
"value": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"maximum": 240000,
|
"maximum": 24000,
|
||||||
"description": "(Required) A floating point value.",
|
"description": "(Required) A floating point value.",
|
||||||
"title": "Value",
|
"title": "Value",
|
||||||
"examples": [0, 0.025, 0.5, 0.75, 1]
|
"examples": [0, 0.025, 0.5, 0.75, 1]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"title": "Distance To Nearest Player",
|
"title": "Distance To Nearest Player",
|
||||||
"description": "Compares the distance to the nearest Player with a float value.",
|
"description": "Compares the distance to the nearest Player with a float value.",
|
||||||
"required": ["value"],
|
"required": ["value"],
|
||||||
|
"examples": [{ "test": "distance_to_nearest_player", "value": 5.7 }],
|
||||||
"properties": {
|
"properties": {
|
||||||
"test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." },
|
"test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." },
|
||||||
"operator": { "$ref": "./types/operator.json" },
|
"operator": { "$ref": "./types/operator.json" },
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
"$id": "blockception.minecraft.behavior.entities.type.trigger",
|
"$id": "blockception.minecraft.behavior.entities.type.trigger",
|
||||||
"title": "Trigger",
|
"title": "Trigger",
|
||||||
"description": "Trigger to fire",
|
"description": "Trigger to fire",
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"filters": [],
|
||||||
|
"target": "self",
|
||||||
|
"event": "to:foo"
|
||||||
|
}
|
||||||
|
],
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{ "type": "string" },
|
{ "type": "string" },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user