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,34 @@
{
"$id": "blockception.minecraft.behavior.worldgen.processors.minecraft.processor_list",
"type": "object",
"title": "Processor List",
"additionalProperties": false,
"required": [
"description",
"processors"
],
"properties": {
"description": {
"title": "Description",
"description": "The description of this jigsaw.",
"type": "object",
"additionalProperties": false,
"properties": {
"identifier": {
"title": "Identifier",
"description": "Identifier of the Processor List. This is referenced by Template Pools when pairing processors with Structure Templates.",
"type": "string"
}
}
},
"processors": {
"title": "Processors",
"description": "A list of processors.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "./processors.json"
}
}
}
}

View File

@@ -0,0 +1,18 @@
{
"title": "Processors",
"description": "",
"type": "object",
"properties": {
"processor_type": {
"title": "Processor Type",
"type": "string",
"enum": [ "minecraft:rule", "minecraft:capped", "minecraft:block_ignore", "minecraft:protected_blocks" ]
}
},
"allOf": [
{ "if": { "properties": { "processor_type": { "const": "minecraft:rule" } } }, "then": { "$ref": "./processors/minecraft.rule.json" } },
{ "if": { "properties": { "processor_type": { "const": "minecraft:capped" } } }, "then": { "$ref": "./processors/minecraft.capped.json" } },
{ "if": { "properties": { "processor_type": { "const": "minecraft:block_ignore" } } }, "then": { "$ref": "./processors/minecraft.block_ignore.json" } },
{ "if": { "properties": { "processor_type": { "const": "minecraft:protected_blocks" } } }, "then": { "$ref": "./processors/minecraft.protected_blocks.json" } }
]
}

View File

@@ -0,0 +1,22 @@
{
"title": "Block Ignore",
"type": "object",
"properties": {
"blocks": {
"title": "Blocks",
"type": "array",
"items": {
"type": "string"
}
},
"processor_type": {
"title": "Processor Type",
"type": "string",
"const": "minecraft:block_ignore"
}
},
"required": [
"blocks",
"processor_type"
]
}

View File

@@ -0,0 +1,83 @@
{
"title": "Capped",
"type": "object",
"properties": {
"delegate": {
"oneOf": [
{
"$ref": "./minecraft.rule.json"
},
{
"$ref": "./minecraft.block_ignore.json"
},
{
"$ref": "./minecraft.protected_blocks.json"
}
]
},
"limit": {
"oneOf": [
{
"type": "integer"
},
{
"title": "Constant Integer",
"description": "",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"title": "Type",
"description": "",
"type": "string",
"const": "constant"
},
"value": {
"title": "Value",
"description": "",
"type": "integer"
}
},
"required": [ "type", "value" ]
},
{
"title": "Uniform Integer",
"type": "object",
"properties": {
"max_inclusive": {
"title": "Max Inclusive",
"description": "",
"type": "integer"
},
"min_inclusive": {
"title": "Min Inclusive",
"description": "",
"type": "integer"
},
"type": {
"title": "Type",
"description": "",
"type": "string",
"const": "uniform"
}
},
"required": [
"max_inclusive",
"min_inclusive",
"type"
]
}
]
},
"processor_type": {
"title": "Processor Type",
"type": "string",
"const": "minecraft:capped"
}
},
"required": [
"delegate",
"limit",
"processor_type"
]
}

View File

@@ -0,0 +1,18 @@
{
"title": "Protected Blocks",
"type": "object",
"properties": {
"processor_type": {
"title": "Processor Type",
"type": "string",
"const": "minecraft:protected_blocks"
},
"value": {
"type": "string"
}
},
"required": [
"processor_type",
"value"
]
}

View File

@@ -0,0 +1,279 @@
{
"title": "Rule",
"type": "object",
"definitions": {
"block_specifier": {
"anyOf": [
{
"$ref": "../../../../../general/block/identifier.json"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"$ref": "../../../../../general/block/identifier.json"
},
"states": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "string"
}
]
}
}
}
}
]
},
"rule": {
"properties": {
"block_entity_modifier": {
"oneOf": [
{
"$ref": "#/definitions/passthrough"
},
{
"$ref": "#/definitions/append_loot"
}
]
},
"input_predicate": {
"oneOf": [
{
"$ref": "#/definitions/always_true"
},
{
"$ref": "#/definitions/block_match"
},
{
"$ref": "#/definitions/random_block_match"
},
{
"$ref": "#/definitions/tag_match"
}
]
},
"location_predicate": {
"oneOf": [
{
"$ref": "#/definitions/always_true"
},
{
"$ref": "#/definitions/block_match"
},
{
"$ref": "#/definitions/random_block_match"
},
{
"$ref": "#/definitions/tag_match"
}
]
},
"output_state": {
"$ref": "#/definitions/block_specifier"
},
"position_predicate": {
"oneOf": [
{
"$ref": "#/definitions/always_true"
},
{
"$ref": "#/definitions/axis_aligned_linear_pos"
}
]
}
},
"required": [
"output_state"
]
},
"append_loot": {
"title": "Append Loot",
"description": "",
"type": "object",
"additionalProperties": false,
"required": [ "type", "loot_table" ],
"properties": {
"loot_table": {
"title": "Loot Table",
"description": "",
"type": "string"
},
"type": {
"title": "Type",
"description": "",
"type": "string",
"const": "minecraft:append_loot"
}
}
},
"passthrough": {
"title": "Passthrough",
"description": "",
"type": "object",
"additionalProperties": false,
"required": [ "type" ],
"properties": {
"type": {
"title": "Type",
"description": "",
"type": "string",
"const": "minecraft:passthrough"
}
}
},
"always_true": {
"title": "Always True",
"description": "",
"type": "object",
"additionalProperties": false,
"required": [ "predicate_type" ],
"properties": {
"predicate_type": {
"title": "Predicate Type",
"type": "string",
"const": "minecraft:always_true"
}
}
},
"block_match": {
"title": "Block Match",
"type": "object",
"properties": {
"block": {
"type": "string"
},
"predicate_type": {
"title": "Predicate Type",
"type": "string",
"const": "minecraft:block_match"
}
},
"required": [
"block",
"predicate_type"
]
},
"random_block_match": {
"title": "Random Block Match",
"type": "object",
"properties": {
"block": {
"type": "string"
},
"predicate_type": {
"title": "Predicate Type",
"type": "string",
"const": "minecraft:random_block_match"
},
"probability": {
"type": "number",
"minimum": 0.0,
"exclusiveMaximum": 1.0
}
},
"required": [
"block",
"predicate_type",
"probability"
]
},
"tag_match": {
"title": "Tag Match",
"type": "object",
"properties": {
"predicate_type": {
"title": "Predicate Type",
"type": "string",
"const": "minecraft:tag_match"
},
"tag": {
"type": "string"
}
},
"required": [
"predicate_type",
"tag"
]
},
"axis_aligned_linear_pos": {
"title": "Axis Aligned Linear",
"type": "object",
"properties": {
"axis": {
"title": "Axis",
"description": "",
"type": "string",
"enum": [
"x",
"y",
"z"
]
},
"max_chance": {
"title": "Max Chance",
"description": "",
"type": "number",
"minimum": 0.0,
"exclusiveMaximum": 1.0
},
"max_dist": {
"title": "Max Dist",
"description": "",
"type": "integer",
"minimum": 0.0
},
"min_chance": {
"title": "Min Chance",
"description": "",
"type": "number",
"minimum": 0.0,
"exclusiveMaximum": 1.0
},
"min_dist": {
"title": "Min Dist",
"description": "",
"type": "integer",
"minimum": 0.0
},
"predicate_type": {
"title": "Predicate Type",
"description": "",
"type": "string",
"const": "minecraft:axis_aligned_linear_pos"
}
},
"required": [
"predicate_type"
]
}
},
"additionalProperties": false,
"properties": {
"processor_type": {
"title": "Processor Type",
"type": "string",
"const": "minecraft:rule"
},
"rules": {
"title": "Rules",
"type": "array",
"items": {
"$ref": "#/definitions/rule"
}
}
},
"required": [
"processor_type",
"rules"
]
}