RangedJS

RangedJS

A kubejs addon to add/modify bows and crossbows

1 545 downloads 1 followers

A KubeJS addon for pack dev to easily create custom bows and modify existing bows/crossbows. Please feel free to request modded ranged weapon support in comments.

Update August 6th 2025 - Add compat with Archery Expansion.

Example codes can be found on the wiki page.

<iframe src="https://www.youtube.com/embed/PGyJwQTI4RA" width="560" height="314" allowfullscreen="allowfullscreen"></iframe>

<iframe src="https://www.youtube.com/embed/MSPBJp4Y9eA" width="560" height="314" allowfullscreen="allowfullscreen"></iframe>

You can also create vanilla-like bow model with client script:

ClientEvents.highPriorityAssets(event => {
    event.easyBowModel("kubejs:bow_golden")
})

You just need to put texture pictures in kuebjs/assets/kubejs/textures/item/ The texture file names should be bow_golden.png, bow_golden_pulling_0.png, bow_golden_pulling_1.png, bow_golden_pulling_2.png

You can also modify existing bows with ItemEvents.modification like this:

ItemEvents.modification(event => {
    const $BowItem = Java.loadClass("net.minecraft.world.item.BowItem")
    event.modify("minecraft:bow", item => {if(item instanceof $BowItem){
        item.bow(bow => {
            bow
            .onArrowHit(arrow => {arrow.hitBlock(event => {
                event.arrow.block.createEntity("lightning_bolt").spawn()
            })})
            .modifyBow(attributes => {
                attributes.fullChargeTick(15).baseDamage(6)
            })
        })
    }})
})

No gallery available for this project.

Version Minecraft Loader Download

RangedJS 1.2.5-forge

1.2.5-forge

1.20.1
forge
Download

RangedJS 1.3.1-neoforge-1.21.1

1.3.1-neoforge-1.21.1

1.21.1
neoforge
Download

RangedJS 1.2.3-forge

1.2.3-forge

1.20.1
forge
Download

RangedJS 1.2.2-forge

1.2.2-forge

1.20.1
forge
Download

RangedJS 1.2.1-forge

1.2.1-forge

1.20.1
forge
Download

0.9.2-fabric

1.20.1
fabric
Download

RangedJS 1.2.0-forge

1.2.0-forge

1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6
forge
Download