Updated to 1.21.50 (#330)
* - Add new client biome components * - Added built-in block tags * - Add liquid detection block component * - Add item visual component * - Allow ambient_occlusion to use floats * - Added cannot_be_attacked and ignore component * - Added play_sound event response * - Added summon_event property to summon_entity behavior * - Updated home and looked_at components * - Added compostable item component * - Added jigsaws * - Added processor_lists * - Made identifier required in jigsaws * - Added structure sets * - Remove compressed volume file * - Add template pools * - Setup jigsaw schemas * - Added broadcast_when_dying * - Update interact.vibration * - Fix format_version ref in jigsaw schemas
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.worldgen.structure_sets.minecraft.structure_set",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
13
source/behavior/worldgen/structure_sets/structure_set.json
Normal file
13
source/behavior/worldgen/structure_sets/structure_set.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$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": "../../../general/format_version.json" },
|
||||
"minecraft:structure_set": { "$ref": "./format/minecraft.structure_set.json" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user