Updated for 1.21.60 (#334)

* - Add crafting item catalogs
* - Removed experimental warning for item visual
* - Added renders_when_invisible entity component
* - Removed experimental warning for liquid detection
* - Added property inheritance to breedable
* - Added min_looked_at_duration field to look_at component
* - Added combine_parent_colors to breedable
* - Update catalog file schema
* - Split storage item components
* - Added new entity filters
* - Added surface opacity to water appearance biome component
* - Remove actor_id loot table example as it is no longer the standard
* - Add set_armor_trim trim loot table function
* - Added match_tool loot table condition
* - Added creature_spawn_probability component
* - Added verticalFlySpeed to has_ability
* - Update descriptions and default values
* - Add base field to block_sounds
* - Removed block sounds enum as creators can specify custom ones too
* - Change default format version
This commit is contained in:
Xterionix
2025-02-13 18:38:27 +05:00
committed by GitHub
parent 968d0c70d2
commit 40569873a8
38 changed files with 453 additions and 252 deletions

View File

@@ -11,6 +11,10 @@
"if": { "properties": { "condition": { "type": "string", "const": "has_mark_variant" } } },
"then": { "$ref": "./conditions/has_mark_variant.json" }
},
{
"if": { "properties": { "condition": { "type": "string", "const": "match_tool" } } },
"then": { "$ref": "./conditions/match_tool.json" }
},
{
"if": { "properties": { "condition": { "type": "string", "const": "killed_by_player" } } },
"then": { "$ref": "./conditions/killed_by_player.json" }

View File

@@ -0,0 +1,60 @@
{
"$id": "blockception.minecraft.behavior.condition.match_tool",
"type": "object",
"additionalProperties": false,
"description": "Returns the condition true if the block of the loot table was broken with a specific item.",
"title": "Killed By Player",
"required": ["condition", "item", "count"],
"properties": {
"condition": { "type": "string", "const": "match_tool", "title": "Condition", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"item": {
"title": "Item",
"description": "The item to match",
"type": "string"
},
"count": {
"title": "Count",
"description": "Minimum count to match of the given item",
"type": "integer",
"minimum": 0
},
"enchantments": {
"title": "Enchantments",
"description": "List of enchantments to check for",
"type": "array",
"items": {
"type": "object",
"patternProperties": {
"^[a-zA-Z]+$": {
"type": "object",
"properties": {
"level": {
"type": "integer"
}
},
"required": ["level"]
}
},
"minProperties": 1,
"maxProperties": 1
},
"minItems": 1
},
"minecraft:match_tool_filter_all": {
"title": "Match Tool Filter All",
"description": "List of tags the item must have",
"type": "array",
"items": {
"type": "string"
}
},
"minecraft:match_tool_filter_none": {
"title": "Match Tool Filter None",
"description": "List of tags the item must NOT have",
"type": "array",
"items": {
"type": "string"
}
}
}
}

View File

@@ -19,6 +19,7 @@
"random_block_state",
"random_dye",
"set_actor_id",
"set_armor_trim",
"set_banner_details",
"set_book_contents",
"set_count",
@@ -42,6 +43,7 @@
"minecraft:random_block_state",
"minecraft:random_dye",
"minecraft:set_actor_id",
"minecraft:set_armor_trim",
"minecraft:set_banner_details",
"minecraft:set_book_contents",
"minecraft:set_count",
@@ -74,6 +76,7 @@
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*random_aux_value$" } } }, "then": { "$ref": "./functions/random_aux_value.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*random_block_state$" } } }, "then": { "$ref": "./functions/random_block_state.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*set_actor_id$" } } }, "then": { "$ref": "./functions/set_actor_id.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*set_armor_trim$" } } }, "then": { "$ref": "./functions/set_armor_trim.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*set_banner_details$" } } }, "then": { "$ref": "./functions/set_banner_details.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*set_book_contents$" } } }, "then": { "$ref": "./functions/set_book_contents.json" } },
{ "if": { "properties": { "function": { "type": "string", "pattern": "^(minecraft:)*set_count$" } } }, "then": { "$ref": "./functions/set_count.json" } },

View File

@@ -0,0 +1,60 @@
{
"$id": "blockception.minecraft.behavior.loot_tables.set_armor_trim",
"additionalProperties": false,
"type": "object",
"description": "The function set_armor_trim.",
"title": "Set Armor Trim",
"required": ["function", "material", "pattern"],
"properties": {
"function": {
"type": "string",
"const": "set_armor_trim",
"title": "Function",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
},
"material": {
"title": "Material",
"description": "Trim's material",
"type": "string",
"enum": [
"amethyst",
"copper",
"diamond",
"emerald",
"gold",
"iron",
"lapis",
"netherite",
"quartz",
"redstone",
"resin"
]
},
"pattern": {
"title": "Pattern",
"description": "Trim pattern",
"type": "string",
"enum": [
"sentry",
"vex",
"wild",
"coast",
"dune",
"wayfinder",
"shaper",
"raiser",
"host",
"ward",
"silence",
"tide",
"snout",
"rib",
"eye",
"spire",
"flow",
"bolt"
]
}
}
}

View File

@@ -5,23 +5,6 @@
"description": "A minecraft loot table.",
"title": "Loot Table",
"type": "object",
"examples": [
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:spawn_egg",
"weight": 1,
"functions": [{ "function": "set_count", "count": { "min": 1, "max": 1 } }, { "function": "set_actor_id" }]
}
]
}
]
}
],
"definitions": {
"pools_spec": {
"title": "Pools",