Add various enums and constraints and direction property in particle (#114)

* Add enums and constraints
* Add particle direction property
This commit is contained in:
Piotr Brzozowski
2022-10-01 19:30:23 +02:00
committed by GitHub
parent 9a6acfb31a
commit 5ecd5f3f9c
7 changed files with 67 additions and 11 deletions

View File

@@ -31,7 +31,7 @@
"type": "string",
"title": "Target Selection Method",
"description": "Block search method.",
"enum": ["nearest"]
"enum": ["random", "nearest"]
},
"target_blocks": {
"type": "array",

View File

@@ -65,7 +65,8 @@
"target_materials_above_block": {
"title": "Target Materials Above Block",
"type": "array",
"default": ["air"],
"default": ["Air"],
"enum": ["Air", "Any", "Lava", "Water"],
"description": "[EXPERIMENTAL] Types of materials that can exist above the target block. Valid types are Air, Water, and Lava."
},
"use_default_animation": {

View File

@@ -35,6 +35,7 @@
"title": "Material Type",
"description": "The material type of the liquid block to find. Valid values are 'Any', 'Water', and 'Lava'.",
"default": "Any",
"enum": ["Air", "Any", "Lava", "Water"],
"type": "string"
}
},

View File

@@ -15,7 +15,8 @@
"poi_type": {
"type": "string",
"description": "Tells the goal what POI type it should be looking for.",
"title": "Point Of Interest Type"
"title": "Point Of Interest Type",
"enum": ["bed", "jobsite", "meeting_area"]
}
},
"examples": [

View File

@@ -111,6 +111,7 @@
"type": "string",
"default": "line",
"description": "The base shape of this step. Valid values are circle and line",
"enum": ["line", "circle"],
"title": "Shape"
},
"size": {

View File

@@ -12,7 +12,8 @@
"title": "Active Time",
"type": "integer",
"default": 0,
"description": "The amount of ticks the NPC will stay in their the work location."
"description": "The amount of ticks the NPC will stay in their the work location.",
"exclusiveMinimum": 0
},
"can_work_in_rain": {
"title": "Can Work In Rain",