Add various enums and constraints and direction property in particle (#114)
* Add enums and constraints * Add particle direction property
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Target Selection Method",
|
"title": "Target Selection Method",
|
||||||
"description": "Block search method.",
|
"description": "Block search method.",
|
||||||
"enum": ["nearest"]
|
"enum": ["random", "nearest"]
|
||||||
},
|
},
|
||||||
"target_blocks": {
|
"target_blocks": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
|||||||
@@ -65,7 +65,8 @@
|
|||||||
"target_materials_above_block": {
|
"target_materials_above_block": {
|
||||||
"title": "Target Materials Above Block",
|
"title": "Target Materials Above Block",
|
||||||
"type": "array",
|
"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."
|
"description": "[EXPERIMENTAL] Types of materials that can exist above the target block. Valid types are Air, Water, and Lava."
|
||||||
},
|
},
|
||||||
"use_default_animation": {
|
"use_default_animation": {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
"title": "Material Type",
|
"title": "Material Type",
|
||||||
"description": "The material type of the liquid block to find. Valid values are 'Any', 'Water', and 'Lava'.",
|
"description": "The material type of the liquid block to find. Valid values are 'Any', 'Water', and 'Lava'.",
|
||||||
"default": "Any",
|
"default": "Any",
|
||||||
|
"enum": ["Air", "Any", "Lava", "Water"],
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
"poi_type": {
|
"poi_type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Tells the goal what POI type it should be looking for.",
|
"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": [
|
"examples": [
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "line",
|
"default": "line",
|
||||||
"description": "The base shape of this step. Valid values are circle and line",
|
"description": "The base shape of this step. Valid values are circle and line",
|
||||||
|
"enum": ["line", "circle"],
|
||||||
"title": "Shape"
|
"title": "Shape"
|
||||||
},
|
},
|
||||||
"size": {
|
"size": {
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
"title": "Active Time",
|
"title": "Active Time",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 0,
|
"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": {
|
"can_work_in_rain": {
|
||||||
"title": "Can Work In Rain",
|
"title": "Can Work In Rain",
|
||||||
|
|||||||
@@ -18,12 +18,39 @@
|
|||||||
"enum": ["lookat_xyz", "lookat_y", "rotate_xyz", "rotate_y", "direction_x", "direction_y", "direction_z"],
|
"enum": ["lookat_xyz", "lookat_y", "rotate_xyz", "rotate_y", "direction_x", "direction_y", "direction_z"],
|
||||||
"title": "Facing Camera Mode"
|
"title": "Facing Camera Mode"
|
||||||
},
|
},
|
||||||
|
"direction": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "UNDOCUMENTED",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["custom", "derive_from_velocity"],
|
||||||
|
"description": "Specified how to calculate the billboard direction of a particle."
|
||||||
|
},
|
||||||
|
"custom_direction": {
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 3,
|
||||||
|
"maxItems": 3,
|
||||||
|
"items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED." },
|
||||||
|
"description": "The facing direction of emitted particles."
|
||||||
|
},
|
||||||
|
"min_speed_threshold": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The direction is set if the speed of the particle is above the threshold.",
|
||||||
|
"default": 0.01
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"uv": {
|
"uv": {
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"texture_width": { "type": "integer", "description": "UNDOCUMENTED: texture width.", "title": "Texture Width" },
|
"texture_width": { "type": "integer", "description": "UNDOCUMENTED: texture width.", "title": "Texture Width" },
|
||||||
"texture_height": { "type": "integer", "description": "UNDOCUMENTED: texture height.", "title": "Texture Height" },
|
"texture_height": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "UNDOCUMENTED: texture height.",
|
||||||
|
"title": "Texture Height"
|
||||||
|
},
|
||||||
"flipbook": {
|
"flipbook": {
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -33,7 +60,11 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"minItems": 2,
|
"minItems": 2,
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: base UV.", "title": "Base U V" },
|
"items": {
|
||||||
|
"$ref": "../../../molang/number.json",
|
||||||
|
"description": "UNDOCUMENTED: base UV.",
|
||||||
|
"title": "Base U V"
|
||||||
|
},
|
||||||
"description": "UNDOCUMENTED: base UV.",
|
"description": "UNDOCUMENTED: base UV.",
|
||||||
"title": "Base U V"
|
"title": "Base U V"
|
||||||
},
|
},
|
||||||
@@ -41,7 +72,11 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"minItems": 2,
|
"minItems": 2,
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: size UV.", "title": "Size U V" },
|
"items": {
|
||||||
|
"$ref": "../../../molang/number.json",
|
||||||
|
"description": "UNDOCUMENTED: size UV.",
|
||||||
|
"title": "Size U V"
|
||||||
|
},
|
||||||
"description": "UNDOCUMENTED: size UV.",
|
"description": "UNDOCUMENTED: size UV.",
|
||||||
"title": "Size U V"
|
"title": "Size U V"
|
||||||
},
|
},
|
||||||
@@ -49,7 +84,11 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"minItems": 2,
|
"minItems": 2,
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: step UV.", "title": "Step U V" },
|
"items": {
|
||||||
|
"$ref": "../../../molang/number.json",
|
||||||
|
"description": "UNDOCUMENTED: step UV.",
|
||||||
|
"title": "Step U V"
|
||||||
|
},
|
||||||
"description": "UNDOCUMENTED: step UV.",
|
"description": "UNDOCUMENTED: step UV.",
|
||||||
"title": "Step U V"
|
"title": "Step U V"
|
||||||
},
|
},
|
||||||
@@ -58,8 +97,16 @@
|
|||||||
"description": "UNDOCUMENTED: frames per second.",
|
"description": "UNDOCUMENTED: frames per second.",
|
||||||
"title": "Frames Per Second"
|
"title": "Frames Per Second"
|
||||||
},
|
},
|
||||||
"max_frame": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: Maximum frame.", "title": "Maximum Frame" },
|
"max_frame": {
|
||||||
"stretch_to_lifetime": { "type": "boolean", "description": "UNDOCUMENTED: stretch to lifetime.", "title": "Stretch To Lifetime" },
|
"$ref": "../../../molang/number.json",
|
||||||
|
"description": "UNDOCUMENTED: Maximum frame.",
|
||||||
|
"title": "Maximum Frame"
|
||||||
|
},
|
||||||
|
"stretch_to_lifetime": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "UNDOCUMENTED: stretch to lifetime.",
|
||||||
|
"title": "Stretch To Lifetime"
|
||||||
|
},
|
||||||
"loop": { "type": "boolean", "description": "UNDOCUMENTED: loop.", "title": "Loop" }
|
"loop": { "type": "boolean", "description": "UNDOCUMENTED: loop.", "title": "Loop" }
|
||||||
},
|
},
|
||||||
"description": "UNDOCUMENTED: flipbook.",
|
"description": "UNDOCUMENTED: flipbook.",
|
||||||
@@ -77,7 +124,11 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"minItems": 2,
|
"minItems": 2,
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: uv size.", "title": "Uv Size" },
|
"items": {
|
||||||
|
"$ref": "../../../molang/number.json",
|
||||||
|
"description": "UNDOCUMENTED: uv size.",
|
||||||
|
"title": "Uv Size"
|
||||||
|
},
|
||||||
"description": "UNDOCUMENTED: uv size.",
|
"description": "UNDOCUMENTED: uv size.",
|
||||||
"title": "Uv Size"
|
"title": "Uv Size"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user