Ranged Weapon API
This mod is an API for developers, allowing easy bow and crossbow creation.

Features:
- Bows and Crossbow construction
- Customizable weapon properties: damage, pull time, projectile velocity (optional)
- Automatic item model predicate registration (matching vanilla model predicates)
- Correct rendering first and third person rendering
- Correct pull FOV
Read all technical details in the GitHub readme.
How to Install Ranged Weapon API (Mod)
Ranged Weapon API by ZsoltMolnarrr is verified for Fabric, Forge, Neoforge across Minecraft versions 1.20.1, 1.21, 1.21.1, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2 (latest release: 4.0.0+26.3-fabric, file size: 155 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.21, 1.21.1, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded Ranged Weapon API file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 2 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 |
Package and maven group reworked, no functional change.
- Minecraft 26.3 support
- Minecraft 26.2 support
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
Package and maven group reworked, no functional change.
- Minecraft 26.3 support
- Minecraft 26.2 support
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
- Ported to Minecraft 1.20.1, Fabric + **Forge 47** (first Forge build)
- 2.x public API preserved; deltas documented in the port notes
- EMI anvil-repair integration is not available on this game version
- Ported to Minecraft 1.20.1, Fabric + **Forge 47** (first Forge build)
- 2.x public API preserved; deltas documented in the port notes
- EMI anvil-repair integration is not available on this game version
Package and maven group reworked, no functional change.
- Minecraft 26.2 support
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
Package and maven group reworked, no functional change.
- Minecraft 26.2 support
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
Package and maven group reworked, no functional change.
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
Package and maven group reworked, no functional change.
- Minecraft 26.1.2 support (Java 25).
- Jars are no longer remapped: the shipped jar is the shaded platform jar
ranged_weapon:propertiesand the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)- Removed the
assets/minecraft/items/bow.jsonoverride: vanilla'suse_durationdefinition already animates custom pull times - Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Properties#repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Mobs now prefer the stronger ranged weapon when picking up a dropped one: a skeleton upgrades from its vanilla bow to a dropped custom bow, and no longer trades a custom bow away for a vanilla one. Candidates are ranked by ranged damage first, then by pull time (shorter wins). Applies to any weapon carrying
ranged_weapon:properties, and only between weapons of the same kind — bow vs crossbow stays vanilla's call. - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
- Internal mixin cleanup: dead code removed, stale comments corrected, mixin-private members made
@Unique, injector match counts pinned where a partial miss used to degrade silently, and the twoProjectileUtilmixins merged into one
Package and maven group reworked, no functional change.
- Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Settings.repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
Package and maven group reworked, no functional change.
- Java package is now
net.rpg_foundation.ranged_weapon(wasnet.fabric_extras.ranged_weapon) - Maven group is now
net.rpg_foundation(wasnet.foundation), artifactranged_weapon_api-<loader>unchanged - Mod id, resource namespaces and every
ranged_weapon:attribute/effect/component/property id are unchanged - Migration: update imports and the Gradle coordinate
- BREAKING:
CustomBow/CustomCrossbowno longer take a repair ingredient supplier; repairability is the vanillaminecraft:repairablecomponent (Item.Settings.repairable(tag)) - Ranged weapon item models use the vanilla properties: bows
minecraft:use_duration(scale 0.05, re-expressed against the item's real pull time), crossbowsminecraft:crossbow/pull;ranged_weapon:pullis deprecated - Fix potion and tipped arrow names on 1.21.11
- Trimmed mob-AI injects that vanilla no longer reaches
Ranged weapon properties are now stored in the
ranged_weapon:properties item component, instead of injected instance fields.- New
ranged_weapon:propertiesitem component:pull_time(definitive pull time, in ticks), optionaldamage(weapon-physics damage baseline, falls back to 6 for bows and 9 for crossbows) and optionalvelocity(weapon-physics launch velocity baseline, falls back to 3.0 for bows and 3.15 for crossbows). Component presence is what opts an item into the ranged weapon systems; vanilla bows and crossbows receive defaults automatically. Third-party bows/crossbows can be integrated by attaching this component - no Java integration needed. - BREAKING: the
ranged_weapon:pull_timeentity attribute is now display-only. It renders authentic tooltip lines but no longer participates in pull time calculation - attach the component instead to change pull time. - BREAKING: removed
CustomRangedWeapon(use the component'sdamagefield instead ofsetTypeBaseline),CrossbowMechanics,BowMechanicsandTooltipUtil. - BREAKING:
RangedWeaponItemsubclasses other than bows and crossbows no longer receive damage scaling implicitly; they participate by carrying the component. - New authoring type
RangedWeaponConfigusing absolute values:damage(full charge),pull_time(ticks), optionalvelocitybonus and optional attribute list.CustomBow/CustomCrossbowgained constructors taking it. - DEPRECATED:
RangedConfig(bonus-based values) and the constructors taking it. They keep working (converted viaRangedConfig.toAbsolute()) but will be deleted in a future release — migrate toRangedWeaponConfig. - Override the vanilla Power enchantment definition: instead of flat arrow damage (which bypasses the attribute system), Power now grants +8%
ranged_weapon:damageper level. - Mob AI can now use custom ranged weapons: Skeleton family + Illusioners fire custom bows (honoring their pull time), Pillagers and Piglins use custom crossbows, with correct arm poses. Works for any weapon carrying
ranged_weapon:properties. (These mixins live in themixin/aipackage, so they can be temporarily disabled together during game version migrations.)
Ranged weapon properties are now stored in the
ranged_weapon:properties item component, instead of injected instance fields.- New
ranged_weapon:propertiesitem component:pull_time(definitive pull time, in ticks), optionaldamage(weapon-physics damage baseline, falls back to 6 for bows and 9 for crossbows) and optionalvelocity(weapon-physics launch velocity baseline, falls back to 3.0 for bows and 3.15 for crossbows). Component presence is what opts an item into the ranged weapon systems; vanilla bows and crossbows receive defaults automatically. Third-party bows/crossbows can be integrated by attaching this component - no Java integration needed. - BREAKING: the
ranged_weapon:pull_timeentity attribute is now display-only. It renders authentic tooltip lines but no longer participates in pull time calculation - attach the component instead to change pull time. - BREAKING: removed
CustomRangedWeapon(use the component'sdamagefield instead ofsetTypeBaseline),CrossbowMechanics,BowMechanicsandTooltipUtil. - BREAKING:
RangedWeaponItemsubclasses other than bows and crossbows no longer receive damage scaling implicitly; they participate by carrying the component. - New authoring type
RangedWeaponConfigusing absolute values:damage(full charge),pull_time(ticks), optionalvelocitybonus and optional attribute list.CustomBow/CustomCrossbowgained constructors taking it. - DEPRECATED:
RangedConfig(bonus-based values) and the constructors taking it. They keep working (converted viaRangedConfig.toAbsolute()) but will be deleted in a future release — migrate toRangedWeaponConfig. - Override the vanilla Power enchantment definition: instead of flat arrow damage (which bypasses the attribute system), Power now grants +8%
ranged_weapon:damageper level. - Mob AI can now use custom ranged weapons: Skeleton family + Illusioners fire custom bows (honoring their pull time), Pillagers and Piglins use custom crossbows, with correct arm poses. Works for any weapon carrying
ranged_weapon:properties. (These mixins live in themixin/aipackage, so they can be temporarily disabled together during game version migrations.)
- Fully translated content, now supporting 20 languages
- Marked as library for Fabric
- Updated project icons
- Fully translated content, now supporting 20 languages
- Marked as library for Fabric
- Updated project icons
- Fully translated content, now supporting 20 languages
- Marked as library for Fabric
- Updated project icons