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} + } +}