mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2024-11-21 20:46:28 +00:00
170 lines
6.4 KiB
JSON
170 lines
6.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "2195141389",
|
|
"definitions": {
|
|
"2176758423": {
|
|
"title": "Scatter Chance",
|
|
"description": "Scatter probability represented by an expression or an object with a numerator and denominator.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/3178719147"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"denominator": {
|
|
"description": "Denominator for scatter probability.",
|
|
"type": "integer",
|
|
"minimum": 1.0
|
|
},
|
|
"numerator": {
|
|
"description": "Numerator for scatter probability.",
|
|
"type": "integer",
|
|
"minimum": 1.0
|
|
}
|
|
},
|
|
"required": [
|
|
"denominator",
|
|
"numerator"
|
|
]
|
|
}
|
|
],
|
|
"$metaProperties": {
|
|
"CEREAL_DOCUMENTATION_TAG": false,
|
|
"CEREAL_JSON_SCHEMA": "Scatter Chance v1.21.10"
|
|
}
|
|
},
|
|
"3178719147": {
|
|
"title": "struct SharedTypes::Legacy::ExpressionNode",
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"expression": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"expression",
|
|
"version"
|
|
]
|
|
}
|
|
],
|
|
"$metaProperties": {
|
|
"CEREAL_JSON_SCHEMA": "Expression Node"
|
|
}
|
|
},
|
|
"4150871210": {
|
|
"title": "Coordinate Range",
|
|
"description": "Represents the scatter distrubution over a coordinate (x/y/z), can also be built by an expression.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/3178719147"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"distribution": {
|
|
"title": "Random Distribution Type",
|
|
"description": "Type of distribution. Supported distributions are defined by \"Random Distribution Type\".",
|
|
"type": "string",
|
|
"enum": [
|
|
"fixed_grid",
|
|
"gaussian",
|
|
"inverse_gaussian",
|
|
"jittered_grid",
|
|
"triangle",
|
|
"uniform"
|
|
]
|
|
},
|
|
"extent": {
|
|
"title": "sequence container",
|
|
"description": "Lower and upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/3178719147"
|
|
},
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"grid_offset": {
|
|
"description": "When the distribution type is grid, defines the offset along this axis.",
|
|
"type": "integer",
|
|
"minimum": 0.0
|
|
},
|
|
"step_size": {
|
|
"description": "When the distribution type is grid, defines the distance between steps along this axis.",
|
|
"type": "integer",
|
|
"minimum": 1.0
|
|
}
|
|
},
|
|
"required": [
|
|
"distribution",
|
|
"extent"
|
|
]
|
|
}
|
|
],
|
|
"$metaProperties": {
|
|
"CEREAL_DOCUMENTATION_TAG": false,
|
|
"CEREAL_JSON_SCHEMA": "Coordinate Range v1.21.10"
|
|
}
|
|
}
|
|
},
|
|
"title": "Scatter Params",
|
|
"description": "Controls the scatter distribution of a particular object.",
|
|
"type": "object",
|
|
"properties": {
|
|
"coordinate_eval_order": {
|
|
"title": "Coordinate Evaluation Order",
|
|
"description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to \"xzy\". Supported orders are defined by \"Coordinate Evaluation Order\".",
|
|
"type": "string",
|
|
"enum": [
|
|
"xyz",
|
|
"xzy",
|
|
"yxz",
|
|
"yzx",
|
|
"zxy",
|
|
"zyx"
|
|
]
|
|
},
|
|
"iterations": {
|
|
"description": "Number of scattered positions to generate.",
|
|
"$ref": "#/definitions/3178719147"
|
|
},
|
|
"scatter_chance": {
|
|
"description": "Probability that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.",
|
|
"$ref": "#/definitions/2176758423"
|
|
},
|
|
"x": {
|
|
"description": "Distribution for the coordinate (evaluated each iteration).",
|
|
"$ref": "#/definitions/4150871210"
|
|
},
|
|
"y": {
|
|
"description": "Distribution for the coordinate (evaluated each iteration).",
|
|
"$ref": "#/definitions/4150871210"
|
|
},
|
|
"z": {
|
|
"description": "Distribution for the coordinate (evaluated each iteration).",
|
|
"$ref": "#/definitions/4150871210"
|
|
}
|
|
},
|
|
"required": [
|
|
"iterations",
|
|
"x",
|
|
"y",
|
|
"z"
|
|
],
|
|
"$metaProperties": {
|
|
"CEREAL_DOCUMENTATION_TAG": false,
|
|
"CEREAL_JSON_SCHEMA": "Scatter Params v1.21.10"
|
|
}
|
|
} |