From ff2353fcb414337e3314b099b78e492e6d93891c Mon Sep 17 00:00:00 2001 From: Misode Date: Thu, 16 Jan 2025 01:30:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20new=20equipment=20layers=20an?= =?UTF-8?q?d=20component=20select?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/assets/equipment.mcdoc | 8 ++++++++ java/assets/item_definition.mcdoc | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/java/assets/equipment.mcdoc b/java/assets/equipment.mcdoc index 877d966..e38ccf8 100644 --- a/java/assets/equipment.mcdoc +++ b/java/assets/equipment.mcdoc @@ -13,6 +13,14 @@ struct Layers { wolf_body?: [Layer<#[id(registry="texture",path="entity/equipment/wolf_body/")] string>], horse_body?: [Layer<#[id(registry="texture",path="entity/equipment/horse_body/")] string>], llama_body?: [Layer<#[id(registry="texture",path="entity/equipment/llama_body/")] string>], + pig_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/pig_saddle/")] string>], + strider_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/strider_saddle/")] string>], + camel_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/camel_saddle/")] string>], + horse_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/horse_saddle/")] string>], + donkey_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/donkey_saddle/")] string>], + mule_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/mule_saddle/")] string>], + zombie_horse_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/zombie_horse_saddle/")] string>], + skeleton_horse_saddle?: [Layer<#[id(registry="texture",path="entity/equipment/skeleton_horse_saddle/")] string>], } type Layer = struct { diff --git a/java/assets/item_definition.mcdoc b/java/assets/item_definition.mcdoc index bff7c6e..c637426 100644 --- a/java/assets/item_definition.mcdoc +++ b/java/assets/item_definition.mcdoc @@ -267,6 +267,7 @@ dispatch minecraft:numeric_item_property[use_cycle] to struct UseCycle { enum(string) SelectPropertyType { BlockState = "block_state", ChargeType = "charge_type", + #[since="1.21.5"] Component = "component", ContextDimension = "context_dimension", ContextEntityType = "context_entity_type", CustomModelData = "custom_model_data", @@ -282,6 +283,11 @@ dispatch minecraft:select_item_property[block_state] to struct BlockState { block_state_property: mcdoc:block_state_keys[%fallback], } +dispatch minecraft:select_item_property[component] to struct Component { + /// The component type to check the values of. + component: #[id="data_component"] string, +} + dispatch minecraft:select_item_property[custom_model_data] to struct CustomModelDataStrings { /// The index of the `strings` list in the `custom_model_data` component. Defaults to 0. index?: int @ 0..,