From 865f33e09ecf945f8c34216ec43fb9bd3d3c446f Mon Sep 17 00:00:00 2001 From: XiaoMoMi Date: Tue, 9 Dec 2025 17:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A01.21.11=E7=9A=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E8=A3=85=E5=A4=87=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../momirealms/craftengine/core/item/DataComponentKeys.java | 6 ++++++ .../craftengine/core/item/equipment/EquipmentLayerType.java | 2 ++ 2 files changed, 8 insertions(+) diff --git a/core/src/main/java/net/momirealms/craftengine/core/item/DataComponentKeys.java b/core/src/main/java/net/momirealms/craftengine/core/item/DataComponentKeys.java index 601f3046b..bc1c3ef40 100644 --- a/core/src/main/java/net/momirealms/craftengine/core/item/DataComponentKeys.java +++ b/core/src/main/java/net/momirealms/craftengine/core/item/DataComponentKeys.java @@ -25,6 +25,7 @@ public final class DataComponentKeys { public static final Key CUSTOM_MODEL_DATA = Key.of("minecraft", "custom_model_data"); public static final Key CUSTOM_NAME = Key.of("minecraft", "custom_name"); public static final Key DAMAGE = Key.of("minecraft", "damage"); + public static final Key DAMAGE_TYPE = Key.of("minecraft", "damage_type"); public static final Key DAMAGE_RESISTANT = Key.of("minecraft", "damage_resistant"); public static final Key DEBUG_STICK_STATE = Key.of("minecraft", "debug_stick_state"); public static final Key DEATH_PROTECTION = Key.of("minecraft", "death_protection"); @@ -43,6 +44,7 @@ public final class DataComponentKeys { public static final Key ITEM_MODEL = Key.of("minecraft", "item_model"); public static final Key ITEM_NAME = Key.of("minecraft", "item_name"); public static final Key JUKEBOX_PLAYABLE = Key.of("minecraft", "jukebox_playable"); + public static final Key KINETIC_WEAPON = Key.of("minecraft", "kinetic_weapon"); public static final Key LOCK = Key.of("minecraft", "lock"); public static final Key LODESTONE_TRACKER = Key.of("minecraft", "lodestone_tracker"); public static final Key LORE = Key.of("minecraft", "lore"); @@ -51,8 +53,10 @@ public final class DataComponentKeys { public static final Key MAP_ID = Key.of("minecraft", "map_id"); public static final Key MAX_DAMAGE = Key.of("minecraft", "max_damage"); public static final Key MAX_STACK_SIZE = Key.of("minecraft", "max_stack_size"); + public static final Key MINIUM_ATTACK_CHARGE = Key.of("minecraft", "minimum_attack_charge"); public static final Key NOTE_BLOCK_SOUND = Key.of("minecraft", "note_block_sound"); public static final Key OMINOUS_BOTTLE_AMPLIFIER = Key.of("minecraft", "ominous_bottle_amplifier"); + public static final Key PIERCING_WEAPON = Key.of("minecraft", "piercing_weapon"); public static final Key POT_DECORATIONS = Key.of("minecraft", "pot_decorations"); public static final Key POTION_CONTENTS = Key.of("minecraft", "potion_contents"); public static final Key POTION_DURATION_SCALE = Key.of("minecraft", "potion_duration_scale"); @@ -65,12 +69,14 @@ public final class DataComponentKeys { public static final Key REPAIR_COST = Key.of("minecraft", "repair_cost"); public static final Key STORED_ENCHANTMENTS = Key.of("minecraft", "stored_enchantments"); public static final Key SUSPICIOUS_STEW_EFFECTS = Key.of("minecraft", "suspicious_stew_effects"); + public static final Key SWING_ANIMATION = Key.of("minecraft", "swing_animation "); public static final Key TOOL = Key.of("minecraft", "tool"); public static final Key TOOLTIP_DISPLAY = Key.of("minecraft", "tooltip_display"); public static final Key TOOLTIP_STYLE = Key.of("minecraft", "tooltip_style"); public static final Key TRIM = Key.of("minecraft", "trim"); public static final Key UNBREAKABLE = Key.of("minecraft", "unbreakable"); public static final Key USE_COOLDOWN = Key.of("minecraft", "use_cooldown"); + public static final Key USE_EFFECTS = Key.of("minecraft", "use_effects "); public static final Key USE_REMAINDER = Key.of("minecraft", "use_remainder"); public static final Key WEAPON = Key.of("minecraft", "weapon"); public static final Key WRITABLE_BOOK_CONTENT = Key.of("minecraft", "writable_book_content"); diff --git a/core/src/main/java/net/momirealms/craftengine/core/item/equipment/EquipmentLayerType.java b/core/src/main/java/net/momirealms/craftengine/core/item/equipment/EquipmentLayerType.java index b0a25b94c..7501f20a4 100644 --- a/core/src/main/java/net/momirealms/craftengine/core/item/equipment/EquipmentLayerType.java +++ b/core/src/main/java/net/momirealms/craftengine/core/item/equipment/EquipmentLayerType.java @@ -13,9 +13,11 @@ public enum EquipmentLayerType { PIG_SADDLE("pig_saddle"), STRIDER_SADDLE("strider_saddle"), CAMEL_SADDLE("camel_saddle"), + CAMEL_HUSK_SADDLE("camel_husk_saddle"), HORSE_SADDLE("horse_saddle"), DONKEY_SADDLE("donkey_saddle"), MULE_SADDLE("mule_saddle"), + NAUTILUS_BODY("nautilus_body"), SKELETON_HORSE_SADDLE("skeleton_horse_saddle"), ZOMBIE_HORSE_SADDLE("zombie_horse_saddle"), HAPPY_GHAST_BODY("happy_ghast_body");