Updated
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -139,7 +139,7 @@
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -135,7 +135,7 @@
|
||||
"type": "object",
|
||||
"examples": [{ "default": "query.is_chested" }],
|
||||
"additionalProperties": {
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
},
|
||||
"minProperties": 1,
|
||||
"maxProperties": 1
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"description": "A object specification on how to transition",
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
|
||||
"additionalProperties": { "$ref": "../../../molang/string.json" }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"description": "A object specification on how to transition",
|
||||
"maxProperties": 1,
|
||||
"minProperties": 1,
|
||||
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
|
||||
"additionalProperties": { "$ref": "../../../molang/string.json" }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"$ref": "../../../../molang/1.8.0/number.json",
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"description": "Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below."
|
||||
},
|
||||
{
|
||||
@@ -38,12 +38,12 @@
|
||||
{
|
||||
"title": "Lower Bound",
|
||||
"description": "Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around",
|
||||
"$ref": "../../../../molang/1.8.0/number.json"
|
||||
"$ref": "../../../../molang/number.json"
|
||||
},
|
||||
{
|
||||
"title": "Upper Bound",
|
||||
"description": "Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around",
|
||||
"$ref": "../../../../molang/1.8.0/number.json"
|
||||
"$ref": "../../../../molang/number.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -83,7 +83,7 @@
|
||||
"iterations": {
|
||||
"title": "Iterations",
|
||||
"description": "Number of scattered positions to generate",
|
||||
"$ref": "../../../../molang/1.8.0/number.json"
|
||||
"$ref": "../../../../molang/number.json"
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
@@ -115,7 +115,7 @@
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Probability (0-100) that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.",
|
||||
"$ref": "../../../../molang/1.8.0/number.json"
|
||||
"$ref": "../../../../molang/number.json"
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"$ref": "../../../../molang/1.8.0/number.json",
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"title": "Min"
|
||||
},
|
||||
{
|
||||
"$ref": "../../../../molang/1.8.0/number.json",
|
||||
"$ref": "../../../../molang/number.json",
|
||||
"title": "Max"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
"condition": {
|
||||
"title": "Condition",
|
||||
"description": "UNDOCUMENATED",
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
},
|
||||
"components": {
|
||||
"type": "object",
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
"condition": {
|
||||
"title": "Condition",
|
||||
"description": "UNDOCUMENATED",
|
||||
"$ref": "../../../molang/1.8.0/string.json"
|
||||
"$ref": "../../../molang/string.json"
|
||||
},
|
||||
"components": {
|
||||
"type": "object",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"default": [0.0, 0.0, 0.0],
|
||||
"description": "Position of this seat relative to this entity's position"
|
||||
},
|
||||
"rotate_rider_by": { "$ref": "../../../../molang/1.8.0/number.json", "description": "Offset to rotate riders by" }
|
||||
"rotate_rider_by": { "$ref": "../../../../molang/number.json", "description": "Offset to rotate riders by" }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"default": [0.0, 0.0, 0.0],
|
||||
"description": "Position of this seat relative to this entity's position"
|
||||
},
|
||||
"rotate_rider_by": { "$ref": "../../../../molang/1.8.0/number.json", "description": "Offset to rotate riders by" }
|
||||
"rotate_rider_by": { "$ref": "../../../../molang/number.json", "description": "Offset to rotate riders by" }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
147
source/behavior/feature_rules/1.13.0/feature_rules.json
Normal file
147
source/behavior/feature_rules/1.13.0/feature_rules.json
Normal file
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.feature_rules.1.13.0",
|
||||
"type": "object",
|
||||
"title": "Feature Rules 1.13.0",
|
||||
"description": " Each feature rule controls exactly one feature and serves as the root of a chain of feature data.",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version", "minecraft:feature_rules"],
|
||||
"minProperties": 2,
|
||||
"maxProperties": 2,
|
||||
"definitions": {
|
||||
"coord_dist": {
|
||||
"title": "",
|
||||
"description": "",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"numerator": {
|
||||
"title": "Numerator",
|
||||
"description": "UNDOCUMENTATED",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"denominator": {
|
||||
"title": "Denominator",
|
||||
"description": "UNDOCUMENTATED",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"const": "1.13.0",
|
||||
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.13.0. Current supported version is 1.13.0.",
|
||||
"title": "Format Version"
|
||||
},
|
||||
"minecraft:feature_rules": {
|
||||
"title": "Feature rules",
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description", "conditions"],
|
||||
"properties": {
|
||||
"description": {
|
||||
"title": "Description",
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["identifier", "feature_reference"],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"title": "Identifier",
|
||||
"description": "The name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.",
|
||||
"type": "string",
|
||||
"$ref": "../../../general/feature/identifier.json"
|
||||
},
|
||||
"places_feature": {
|
||||
"title": "Places Feature",
|
||||
"description": "Named reference to the feature controlled by this rule.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"conditions": {
|
||||
"title": "Conditions",
|
||||
"description": "Parameters to control where and when the feature will be placed.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["placement_pass"],
|
||||
"properties": {
|
||||
"placement_pass": {
|
||||
"title": "Placement pass",
|
||||
"description": "When the feature should be placed relative to others. Earlier passes in the list are guaranteed to occur before later passes. Order is not guaranteed within each pass.",
|
||||
"type": "string"
|
||||
},
|
||||
"minecraft:biome_filter": {
|
||||
"title": "Placement pass",
|
||||
"description": "List of filter tests to determine which biomes this rule will attach to.",
|
||||
"$ref": "../../entities/filters/filters.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"distribution": {
|
||||
"title": "Distribution",
|
||||
"description": "Parameters controlling the initial scatter of the feature.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["iterations"],
|
||||
"properties": {
|
||||
"coordinate_eval_order": {
|
||||
"title": "Coordinate Eval Order",
|
||||
"description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to `xzy`.",
|
||||
"type": "string",
|
||||
"enum": ["xyz", "xzy", "yxz", "yzx", "zxy", "zyx"]
|
||||
},
|
||||
"iterations": {
|
||||
"title": "Iterations",
|
||||
"description": "Number of scattered positions to generate",
|
||||
"$ref": "../../../molang/number.json"
|
||||
},
|
||||
"scatter_chance": {
|
||||
"title": "Scatter Chance",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "../../../molang/number.json",
|
||||
"description": "Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will."
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"description": "Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"numerator": {
|
||||
"title": "Numerator",
|
||||
"description": "UNDOCUMENTATED",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"denominator": {
|
||||
"title": "Denominator",
|
||||
"description": "UNDOCUMENTATED",
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"x": { "title": "X", "$ref": "#/definitions/coord_dist" },
|
||||
"z": { "title": "Y", "$ref": "#/definitions/coord_dist" },
|
||||
"y": { "title": "Z", "$ref": "#/definitions/coord_dist" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
21
source/behavior/feature_rules/feature_rules.json
Normal file
21
source/behavior/feature_rules/feature_rules.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.feature_rules",
|
||||
"examples": [
|
||||
{
|
||||
"format_version": "1.13.0",
|
||||
"minecraft:feature_rules": {
|
||||
"minecraft:ore_feature": {
|
||||
"description": {
|
||||
"identifier": "example:foo",
|
||||
"places_feature": "minecraft:legacy:birch_forest_tree_feature"
|
||||
},
|
||||
"conditions": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"allOf": [
|
||||
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "./1.17.0/feature_rules.json" } },
|
||||
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } }
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.features.1.13.0",
|
||||
"type": "object",
|
||||
"title": "Spawn Rules 1.13.0",
|
||||
"title": "Features 1.13.0",
|
||||
"description": "Features are decorations scattered throughout the world. Things such as trees, plants, flowers, springs, ore, and coral are all features. Basically, if it isn't the terrain or a mob, it's probably a feature!",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version"],
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"type": "object",
|
||||
"title": "Allowed Block",
|
||||
"description": "A block descriptor that allows to be placed",
|
||||
"properties": { "tags": { "title": "Tags", "description": "Tags", "$ref": "../../../../molang/1.8.0/string.json" } }
|
||||
"properties": { "tags": { "title": "Tags", "description": "Tags", "$ref": "../../../../molang/string.json" } }
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"type": "array",
|
||||
"items": { "type": "string", "title": "Item", "description": "UNDOCUMENATED" }
|
||||
},
|
||||
"repair_amount": { "title": "Repair Amount", "description": "UNDOCUMENATED", "$ref": "../../../../molang/1.8.0/number.json" }
|
||||
"repair_amount": { "title": "Repair Amount", "description": "UNDOCUMENATED", "$ref": "../../../../molang/number.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"type": "object",
|
||||
"title": "Allowed Block",
|
||||
"description": "A block descriptor that allows to be placed",
|
||||
"properties": { "tags": { "title": "Tags", "description": "Tags", "$ref": "../../../../molang/1.8.0/string.json" } }
|
||||
"properties": { "tags": { "title": "Tags", "description": "Tags", "$ref": "../../../../molang/string.json" } }
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"type": "array",
|
||||
"items": { "type": "string", "title": "Item", "description": "UNDOCUMENATED" }
|
||||
},
|
||||
"repair_amount": { "title": "Repair Amount", "description": "UNDOCUMENATED", "$ref": "../../../../molang/1.8.0/number.json" }
|
||||
"repair_amount": { "title": "Repair Amount", "description": "UNDOCUMENATED", "$ref": "../../../../molang/number.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user