All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Ranged Weapon API

Ranged Weapon API

by ZsoltMolnarrr • Downloads: 3 • Followers: 0
Description
Gallery
Changelog
Versions

Ranged Weapon API

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

bow

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:

  1. 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).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
  3. Move the downloaded Ranged Weapon API file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
2mo ago 2
26.3
Neoforge
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.20.1
Forge Neoforge
2mo ago 1
26.2
Neoforge
2mo ago 1
26.2
Fabric
2mo ago 1
26.1.x
Neoforge
2mo ago 1
26.1.x
Fabric
2mo ago 1
1.21.11
Neoforge
2mo ago 1
1.21.11
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.x
Fabric
2mo ago 1
1.21.1
Fabric
2mo ago 1
1.21.1
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.21
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.20.1
Fabric
2mo ago 1
[4.0.0+26.3-fabric] 4.0.0+26.3 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

[4.0.0+26.3-neoforge] 4.0.0+26.3 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

[2.3.4+1.20.1-fabric] 2.3.4+1.20.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 2.3.4+1.20.1

  • 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

[2.3.4+1.20.1-forge] 2.3.4+1.20.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 2.3.4+1.20.1

  • 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

[4.0.0+26.2-neoforge] 4.0.0+26.2 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

[4.0.0+26.2-fabric] 4.0.0+26.2 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

[4.0.0+26.1.2-neoforge] 4.0.0+26.1.2 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

[4.0.0+26.1.2-fabric] 4.0.0+26.1.2 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

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:properties and the config-derived attribute modifiers now bind at resource reload (components are empty until the first reload)
  • Removed the assets/minecraft/items/bow.json override: vanilla's use_duration definition already animates custom pull times
  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is 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 two ProjectileUtil mixins merged into one

# 4.0.0

Package and maven group reworked, no functional change.

  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is deprecated
  • Fix potion and tipped arrow names on 1.21.11
  • Trimmed mob-AI injects that vanilla no longer reaches

[4.0.0+1.21.11-fabric] 4.0.0+1.21.11 by ZsoltMolnarrr on Oct 09, 2026
Download
# 4.0.0

Package and maven group reworked, no functional change.

  • Java package is now net.rpg_foundation.ranged_weapon (was net.fabric_extras.ranged_weapon)
  • Maven group is now net.rpg_foundation (was net.foundation), artifact ranged_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/CustomCrossbow no longer take a repair ingredient supplier; repairability is the vanilla minecraft:repairable component (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), crossbows minecraft:crossbow/pull; ranged_weapon:pull is deprecated
  • Fix potion and tipped arrow names on 1.21.11
  • Trimmed mob-AI injects that vanilla no longer reaches

[3.0.0+1.21.1-neoforge] 3.0.0+1.21.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 3.0.0

Ranged weapon properties are now stored in the ranged_weapon:properties item component, instead of injected instance fields.

  • New ranged_weapon:properties item component: pull_time (definitive pull time, in ticks), optional damage (weapon-physics damage baseline, falls back to 6 for bows and 9 for crossbows) and optional velocity (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_time entity 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's damage field instead of setTypeBaseline), CrossbowMechanics, BowMechanics and TooltipUtil.
  • BREAKING: RangedWeaponItem subclasses other than bows and crossbows no longer receive damage scaling implicitly; they participate by carrying the component.
  • New authoring type RangedWeaponConfig using absolute values: damage (full charge), pull_time (ticks), optional velocity bonus and optional attribute list. CustomBow/CustomCrossbow gained constructors taking it.
  • DEPRECATED: RangedConfig (bonus-based values) and the constructors taking it. They keep working (converted via RangedConfig.toAbsolute()) but will be deleted in a future release — migrate to RangedWeaponConfig.
  • Override the vanilla Power enchantment definition: instead of flat arrow damage (which bypasses the attribute system), Power now grants +8% ranged_weapon:damage per 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 the mixin/ai package, so they can be temporarily disabled together during game version migrations.)

[3.0.0+1.21.1-fabric] 3.0.0+1.21.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 3.0.0

Ranged weapon properties are now stored in the ranged_weapon:properties item component, instead of injected instance fields.

  • New ranged_weapon:properties item component: pull_time (definitive pull time, in ticks), optional damage (weapon-physics damage baseline, falls back to 6 for bows and 9 for crossbows) and optional velocity (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_time entity 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's damage field instead of setTypeBaseline), CrossbowMechanics, BowMechanics and TooltipUtil.
  • BREAKING: RangedWeaponItem subclasses other than bows and crossbows no longer receive damage scaling implicitly; they participate by carrying the component.
  • New authoring type RangedWeaponConfig using absolute values: damage (full charge), pull_time (ticks), optional velocity bonus and optional attribute list. CustomBow/CustomCrossbow gained constructors taking it.
  • DEPRECATED: RangedConfig (bonus-based values) and the constructors taking it. They keep working (converted via RangedConfig.toAbsolute()) but will be deleted in a future release — migrate to RangedWeaponConfig.
  • Override the vanilla Power enchantment definition: instead of flat arrow damage (which bypasses the attribute system), Power now grants +8% ranged_weapon:damage per 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 the mixin/ai package, so they can be temporarily disabled together during game version migrations.)

[2.3.4+1.21.1-fabric] 2.3.4+1.21.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 2.3.4

  • Fully translated content, now supporting 20 languages
  • Marked as library for Fabric
  • Updated project icons

[2.3.4+1.21.1-neoforge] 2.3.4+1.21.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 2.3.4

  • Fully translated content, now supporting 20 languages
  • Marked as library for Fabric
  • Updated project icons

[2.3.4+1.21.1-fabric] 2.3.4+1.21.1 by ZsoltMolnarrr on Oct 09, 2026
Download
# 2.3.4

  • Fully translated content, now supporting 20 languages
  • Marked as library for Fabric
  • Updated project icons

Ranged Weapon API Icon
Download Ranged Weapon API
Select game version
Select platform