RangedJS 图标

RangedJS

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.2.5-forge
本资源为搬运资源,原资源地址: https://modrinth.com/mod/rangedjs
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: equipment game-mechanics utility

资源介绍

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.

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)
            })
        })
    }})
})
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Pufferfish Boat

价格:0 墨喵币
下载量:0

查看详情
FaweSchematicCloudPlus

价格:0 墨喵币
下载量:0

查看详情
[Resource Pack] Three Slots Challenge

价格:0 墨喵币
下载量:0

查看详情
Alan walker Music Ultimate Music Pack

价格:0 墨喵币
下载量:0

查看详情