From b8348e838eca239db2b8e941639c92cbf6d8c90e Mon Sep 17 00:00:00 2001 From: granny Date: Mon, 17 Jun 2024 18:30:47 -0700 Subject: [PATCH] add infinity-works-with-any-arrow datapack --- .../data/minecraft/enchantment/infinity.json | 39 +++++++++++++++++++ .../infinity-works-with-any-arrow/pack.mcmeta | 7 ++++ 2 files changed, 46 insertions(+) create mode 100644 packs/infinity-works-with-any-arrow/data/minecraft/enchantment/infinity.json create mode 100644 packs/infinity-works-with-any-arrow/pack.mcmeta diff --git a/packs/infinity-works-with-any-arrow/data/minecraft/enchantment/infinity.json b/packs/infinity-works-with-any-arrow/data/minecraft/enchantment/infinity.json new file mode 100644 index 0000000..4b8db25 --- /dev/null +++ b/packs/infinity-works-with-any-arrow/data/minecraft/enchantment/infinity.json @@ -0,0 +1,39 @@ +{ + "anvil_cost": 8, + "description": { + "translate": "enchantment.minecraft.infinity" + }, + "effects": { + "minecraft:ammo_use": [ + { + "effect": { + "type": "minecraft:set", + "value": 0.0 + }, + "requirements": { + "condition": "minecraft:match_tool", + "predicate": { + "items": [ + "#minecraft:arrows" + ] + } + } + } + ] + }, + "exclusive_set": "#minecraft:exclusive_set/bow", + "max_cost": { + "base": 50, + "per_level_above_first": 0 + }, + "max_level": 1, + "min_cost": { + "base": 20, + "per_level_above_first": 0 + }, + "slots": [ + "mainhand" + ], + "supported_items": "#minecraft:enchantable/bow", + "weight": 1 +} diff --git a/packs/infinity-works-with-any-arrow/pack.mcmeta b/packs/infinity-works-with-any-arrow/pack.mcmeta new file mode 100644 index 0000000..bd605a7 --- /dev/null +++ b/packs/infinity-works-with-any-arrow/pack.mcmeta @@ -0,0 +1,7 @@ +{ + "pack": { + "pack_format": 48, + "description": "Allows any arrow to work with the infinity enchantment", + "supported_formats": {"min_inclusive": 48, "max_inclusive": 48} + } +}