Skip to content

Commit

Permalink
✨ Add new equipment layers and component select
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Jan 16, 2025
1 parent f4a5280 commit ff2353f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java/assets/equipment.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = struct {
Expand Down
6 changes: 6 additions & 0 deletions java/assets/item_definition.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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..,
Expand Down

0 comments on commit ff2353f

Please sign in to comment.