From ab75f9420f8e3ec1eb20a6b42aa7018bdbacdc6c Mon Sep 17 00:00:00 2001 From: Sergeant Acoustic Date: Thu, 12 Mar 2026 23:16:50 +0000 Subject: [PATCH] Add exclusive_set to all* enchantments *Excluding (for now): - Smite - Soul Speed - Bane Of Arthropods - Infinity - Power - Punch - Knockback - Depth Strider - Impaling --- .../data/minecraft/enchantment/mending.json | 31 ------------- .../minecraft/enchantment/mending.json.patch | 5 +++ .../enchantment/respiration.json.patch | 5 --- .../minecraft/enchantment/swift_sneak.json | 35 --------------- .../mc_rebalance_datapack/pack.mcmeta | 43 +++++++++++++++++++ .../patches/capability_enchantment.json.patch | 5 +++ .../patches/utility_enchantment.json.patch | 5 +++ 7 files changed, 58 insertions(+), 71 deletions(-) delete mode 100644 overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json create mode 100644 overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json.patch delete mode 100644 overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/swift_sneak.json create mode 100644 overrides/global_packs/mc_rebalance_datapack/patches/capability_enchantment.json.patch create mode 100644 overrides/global_packs/mc_rebalance_datapack/patches/utility_enchantment.json.patch diff --git a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json deleted file mode 100644 index 0fa1cad..0000000 --- a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "anvil_cost": 4, - "description": { - "translate": "enchantment.minecraft.mending" - }, - "effects": { - "minecraft:repair_with_xp": [ - { - "effect": { - "type": "minecraft:multiply", - "factor": 2.0 - } - } - ] - }, - "exclusive_set": "#mc_rebalance:exclusive_set/durability", - "max_cost": { - "base": 75, - "per_level_above_first": 25 - }, - "max_level": 1, - "min_cost": { - "base": 25, - "per_level_above_first": 25 - }, - "slots": [ - "any" - ], - "supported_items": "#minecraft:enchantable/durability", - "weight": 2 -} diff --git a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json.patch b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json.patch new file mode 100644 index 0000000..a2ce2c9 --- /dev/null +++ b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/mending.json.patch @@ -0,0 +1,5 @@ +{ + "op": "add", + "path": "/exclusive_set", + "value": "#mc_rebalance:exclusive_set/durability" +} diff --git a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/respiration.json.patch b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/respiration.json.patch index 7474307..42c6d24 100644 --- a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/respiration.json.patch +++ b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/respiration.json.patch @@ -1,9 +1,4 @@ [ - { - "op": "add", - "path": "/exclusive_set", - "value": "#mc_rebalance:exclusive_set/capability" - }, { "op": "add", "path": "/supported_items", diff --git a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/swift_sneak.json b/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/swift_sneak.json deleted file mode 100644 index 6f1c226..0000000 --- a/overrides/global_packs/mc_rebalance_datapack/data/minecraft/enchantment/swift_sneak.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "anvil_cost": 8, - "description": { - "translate": "enchantment.minecraft.swift_sneak" - }, - "effects": { - "minecraft:attributes": [ - { - "amount": { - "type": "minecraft:linear", - "base": 0.15, - "per_level_above_first": 0.15 - }, - "attribute": "minecraft:player.sneaking_speed", - "id": "minecraft:enchantment.swift_sneak", - "operation": "add_value" - } - ] - }, - "exclusive_set": "#mc_rebalance:exclusive_set/capability", - "max_cost": { - "base": 75, - "per_level_above_first": 25 - }, - "max_level": 3, - "min_cost": { - "base": 25, - "per_level_above_first": 25 - }, - "slots": [ - "legs" - ], - "supported_items": "#minecraft:enchantable/leg_armor", - "weight": 1 -} diff --git a/overrides/global_packs/mc_rebalance_datapack/pack.mcmeta b/overrides/global_packs/mc_rebalance_datapack/pack.mcmeta index f26bdbe..74b2dff 100644 --- a/overrides/global_packs/mc_rebalance_datapack/pack.mcmeta +++ b/overrides/global_packs/mc_rebalance_datapack/pack.mcmeta @@ -69,6 +69,49 @@ "worldgen/biome/ice_spikes.json" ] }] + }, + { + "pack_type": "server_data", + "patch": "utility_enchantment", + "targets": [{ + "namespace": ["minecraft"], + "path": [ + "enchantment/aqua_affinity.json", + "enchantment/blast_protection.json", + "enchantment/fire_protection.json", + "enchantment/fortune.json", + "enchantment/loyalty.json", + "enchantment/lure.json", + "enchantment/projectile_protection.json", + "enchantment/silk_touch.json" + ] + }] + }, + { + "pack_type": "server_data", + "patch": "capability_enchantment", + "targets": [{ + "namespace": ["minecraft"], + "path": [ + "enchantment/breach.json", + "enchantment/channeling.json", + "enchantment/density.json", + "enchantment/efficiency.json", + "enchantment/fire_aspect.json", + "enchantment/flame.json", + "enchantment/looting.json", + "enchantment/luck_of_the_sea.json", + "enchantment/lunge.json", + "enchantment/multishot.json", + "enchantment/piercing.json", + "enchantment/quick_charge.json", + "enchantment/respiration.json", + "enchantment/riptide.json", + "enchantment/sweeping_edge.json", + "enchantment/swift_sneak.json", + "enchantment/wind_burst.json" + ] + }] } ] }, diff --git a/overrides/global_packs/mc_rebalance_datapack/patches/capability_enchantment.json.patch b/overrides/global_packs/mc_rebalance_datapack/patches/capability_enchantment.json.patch new file mode 100644 index 0000000..e5bddc9 --- /dev/null +++ b/overrides/global_packs/mc_rebalance_datapack/patches/capability_enchantment.json.patch @@ -0,0 +1,5 @@ +{ + "op": "add", + "path": "/exclusive_set", + "value": "#mc_rebalance:exclusive_set/capability" +} diff --git a/overrides/global_packs/mc_rebalance_datapack/patches/utility_enchantment.json.patch b/overrides/global_packs/mc_rebalance_datapack/patches/utility_enchantment.json.patch new file mode 100644 index 0000000..4a91c44 --- /dev/null +++ b/overrides/global_packs/mc_rebalance_datapack/patches/utility_enchantment.json.patch @@ -0,0 +1,5 @@ +{ + "op": "add", + "path": "/exclusive_set", + "value": "#mc_rebalance:exclusive_set/utility" +}