Skip to content

Commit

Permalink
add infinity-works-with-any-arrow datapack
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Jun 18, 2024
1 parent 26c2859 commit b8348e8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
7 changes: 7 additions & 0 deletions packs/infinity-works-with-any-arrow/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -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}
}
}

0 comments on commit b8348e8

Please sign in to comment.