RangedJS: KubeJS Addon
If you have ever tried to design a custom bow in a Minecraft modpack, you know the struggle. Vanilla bow behavior is buried deep in hardcoded logic, and getting a new ranged weapon to feel right usually means writing a full mod from scratch. RangedJS: KubeJS Addon changes that entirely. It is a scripting add-on built for pack developers who want to create custom bows and crossbows, or modify the existing ones, using nothing but KubeJS scripts.
What RangedJS: KubeJS Addon Actually Does
At its core, this add-on exposes bow and crossbow mechanics to KubeJS so you can register new ranged items and adjust vanilla behavior without touching Java. Instead of compiling a mod, you write a script, reload, and test. That fast loop is exactly what pack devs need when balancing a dozen weapons across a progression system.
The add-on covers the practical pieces you would expect: charge time, base damage, arrow hit callbacks, and custom models. It also plays nicely with related mods, which we will get to below.
Creating Custom Bows
You can register a brand-new bow through a KubeJS event and then chain modifiers onto it. Charge timing, damage values, and on-hit effects are all scriptable. Want an arrow that spawns lightning when it lands? That is a few lines of code, not a new mod project.
Modifying Existing Bows
Not every pack needs new items. Sometimes you just want the vanilla bow to charge faster or hit harder. Using ItemEvents.modification, you can target minecraft:bow directly and adjust its full charge tick count or base damage. This is perfect for overhaul packs that rebalance vanilla gear without adding clutter to the creative menu.
Custom Models Without the Headache
Weapon feel is half numbers and half visuals. RangedJS includes a client script helper, easyBowModel, that generates a vanilla-style bow model for your custom item. Drop your textures into the KubeJS assets folder using the standard naming pattern, including the pulling frames, and the model resolves automatically. No JSON wrestling, no missing texture cubes.
Mod Compatibility and Known Limits
Two quirks are worth knowing before you build around this add-on. Skeletons do not natively use custom bows, so if you want mobs firing your new weapons, pair it with a mod like Skeleton Uses Custom Bow. Similarly, pillagers handle custom crossbows by default, but piglins do not, and Piglin Hunt Fix covers that gap. Plan for these if your pack leans on mob combat.
Archery Expansion is also supported. If that mod is installed, you can attach its properties to your scripted bow, such as walk speed modifiers, directly inside the bow builder. Use ProbeJS to discover the available methods.
Speaking of convenience, the foxygame.net launcher keeps RangedJS: KubeJS Addon in its add-on catalog and handles version matching automatically, so your scripted weapons stay compatible when you update your pack's Minecraft version.
Supported Versions and Installation
The add-on targets modern Minecraft releases on the NeoForge and Forge loaders, with KubeJS as a hard dependency. Before you download RangedJS: KubeJS Addon, confirm your KubeJS build matches your loader and game version, since script APIs shift between major releases.
Here is how to install it in a typical setup:
- Install Minecraft with NeoForge or Forge for your target version.
- Drop KubeJS into the mods folder first.
- Add RangedJS: KubeJS Addon to the same folder.
- Launch once to generate the kubejs folder structure.
- Write your scripts in server_scripts or client_scripts, then run /reload.
Example scripts for bows, crossbows, and Archery Expansion integration live on the project wiki, which is the fastest way to get a working prototype.
Final Thoughts
For pack developers, RangedJS: KubeJS Addon removes the biggest barrier to custom ranged combat: the code. It turns bow design into a scripting exercise, keeps vanilla modifications simple, and slots cleanly into existing KubeJS workflows. If your modpack needs distinctive bows and crossbows, this add-on deserves a spot in your mods folder.