auto: generated json schemas 2025-02-13

This commit is contained in:
Orbi-bot
2025-02-13 13:38:46 +00:00
parent 40569873a8
commit 98fda1fd41
30 changed files with 30 additions and 25 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.worldgen.structure_sets.structure_set","type":"object","title":"Structure Set","description":"A Jigsaw Structure Set is a collection of Jigsaw Structures that are placed according to a set of rules.","required":["format_version","minecraft:structure_set"],"additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:structure_set":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B":{"type":"object","title":"Structure Set","additionalProperties":false,"properties":{"description":{"title":"Description","description":"The description of this structure set.","type":"object","additionalProperties":false,"required":["identifier"],"properties":{"identifier":{"title":"Identifier","description":"The name of this structure set.","type":"string"}}},"placement":{"title":"Placement","description":"Describes where structures in the set spawn relative to one another. Currently, the only placement type supported is random_spread, which scatters structures randomly with a given separation and spacing.","type":"object","additionalProperties":false,"properties":{"salt":{"title":"Salt","description":"Seed used for the random generator to provide a unique scatter pattern. This is used to prevent overlap in the case where multiple structure sets use the same placement values.","type":"integer"},"separation":{"title":"Separation","description":"Padding (in chunks) within each grid cell. Structures will not generate within the padded area.","type":"integer","minimum":0.0},"spacing":{"title":"Spacing","description":"Grid cell size (in chunks) to use when generating the structure. Structures will attempt to generate at a random position within each cell.","type":"integer","minimum":1.0},"spread_type":{"title":"Spread Type","description":"Randomness algorithm used when placing structures.","type":"string","anyOf":[{"const":"linear","description":"Basic randomness e.g. rand(x)"},{"const":"triangular","description":"Average of 2 randoms e.g. (rand(x) + rand(x)) / 2"}]},"type":{"title":"Type","description":"","type":"string","const":"minecraft:random_spread"}},"required":["salt","separation","spacing","type"]},"structures":{"title":"Structures","description":"A weighted list of Jigsaw Structure identifiers. Structures will be randomly chosen from this set during world generation.","type":"array","minItems":1,"items":{"type":"object","properties":{"structure":{"title":"Structure","description":"Identifier of the Jigsaw Structure.","type":"string"},"weight":{"title":"Weight","description":"Weight of the Jigsaw Structure in the set. Higher weights are more likely to be selected.","type":"integer","minimum":1.0,"maximum":200.0}},"required":["structure","weight"]}}},"required":["description","placement","structures"]}}}

View File

@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.worldgen.template_pools.template_pool","type":"object","title":"Template Pool","description":"Used to pair block rules with Structure Templates and to randomly place Structure Templates using a weighted list.","required":["format_version","minecraft:template_pool"],"additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:template_pool":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B_template_pool_element":{"title":"Template Pool Element","description":"A template pool item used to define the element and its weight.","type":"object","additionalProperties":false,"required":["element"],"properties":{"element":{"title":"Element","description":"A grouping of a Structure Template, the Processor List to use when placing the structure, and its weight that determines the likelihood of the element being chosen.","type":"object","properties":{"element_type":{"title":"Element Type","description":" The type of element.","type":"string","const":"minecraft:single_pool_element"},"location":{"title":"Location","description":"The path of the structure file. This path is relative to the behavior pack's \"structures\" folder.","type":"string"},"processors":{"title":"Processors","description":"The identifier of the processor list to use when placing the structure.","type":"string"}},"required":["element_type","location","processors"]},"projection":{"title":"Projection","description":"Specifies how structures should be placed relative to the terrain.","type":"string","default":"rigid","anyOf":[{"const":"rigid","description":"Structures are placed without any height adjustment."},{"const":"terrain_matching","description":"Structures are placed relative to the terrain height. Structure blocks will adjust along the Y axis to match the ground."}]},"weight":{"title":"Weight","description":"The weighted probability of choosing the element from the pool. For example, a template pool containing 2 structures with weights of 1 and 3 will have a 25% and 75% chance of being chosen respectively.","type":"integer","minimum":1.0,"maximum":200.0}}},"B":{"type":"object","title":"Template Pool","additionalProperties":false,"required":["description","elements"],"properties":{"description":{"title":"Description","description":"The description of this template pool.","type":"object","additionalProperties":false,"required":["identifier"],"properties":{"identifier":{"title":"Identifier","description":"Identifier of the template pool. This is used by both the start_pool property of the Jigsaw Structure JSON and the Jigsaw Block's Target Pool field.","type":"string"}}},"elements":{"title":"Elements","description":"An array of pool elements.","type":"array","minItems":1,"items":{}},"fallback":{"title":"Fallback","description":"Fallback template pool to use if no element in the pool can be placed successfully.","type":"string"}}}}}