{"$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.50","examples":["1.21.50","1.20.81","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"]}}}