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:
Xterionix
2024-12-05 20:54:27 +05:00
committed by GitHub
parent b4b53a8074
commit ec99529c64
36 changed files with 1131 additions and 39 deletions

View File

@@ -0,0 +1,99 @@
{
"$id": "blockception.minecraft.behavior.worldgen.template_pools.minecraft.template_pool",
"type": "object",
"title": "Template Pool",
"additionalProperties": false,
"definitions": {
"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
}
}
}
},
"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"
}
}
}

View File

@@ -0,0 +1,13 @@
{
"$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": "../../../general/format_version.json" },
"minecraft:template_pool": { "$ref": "./format/minecraft.template_pool.json" }
}
}