EnderpearlCrossbow 是一款适用于 Minecraft 1.21.1 的轻量级 Fabric 模组,它通过允许弩加载并发射末影珍珠而非箭矢或烟花来增强原版弩。玩家无需手动投掷射程短且精度差的珍珠,只需在主手持有弩的同时在副手放置末影珍珠,然后右键即可将其装入弩中并发射,从而显著提升速度、精度和射程。该模组使用基于 Mixin 的字节码注入技术修改 CrossbowItem 类,不添加任何新的物品或方块,并注册了一个自定义数据组件(enderpearlcrossbow:is_pearl_loaded)以追踪珍珠是否已装填。其中一个 Mixin 修改了加载逻辑,使其接受来自副手槽位的珍珠;另一个则拦截 shootAll 方法,以弩的速度和偏差生成 EnderPearlEntity,播放投掷音效,施加耐久度伤害,清除已装填的投射物,并取消原版的射击行为。视觉上,该模组通过资产替换提供自定义物品模型覆盖,利用 has_component 条件在装填时将弩的纹理切换为带有可见嵌入珍珠的自定义版本,并配合自定义拉弓动画纹理,带来无缝的体验。本质上,该模组通过将弩的机械精度与珍珠的实用性相结合,提供了一种实用、战术性强且可靠的末影珍珠传送方式,同时保持游戏平衡且不添加新物品。
EnderpearlCrossbow is a lightweight Fabric mod for Minecraft 1.21.1 that enhances the vanilla crossbow by allowing it to load and fire Ender Pearls instead of arrows or fireworks. Instead of manually throwing a pearl with short range and poor accuracy, players can place an Ender Pearl in their off-hand while holding a crossbow, then right-click to load it and fire with significantly improved velocity, accuracy, and range. The mod uses Mixin-based bytecode injection to modify the CrossbowItem class without adding any new items or blocks, and it registers a custom data component (enderpearlcrossbow:is_pearl_loaded) to track whether a pearl is loaded. One mixin modifies the loading logic to accept pearls from the off-hand slot, while another intercepts the shootAll method to spawn an EnderPearlEntity with the crossbow's speed and divergence, play the throw sound, apply durability damage, clear the loaded projectile, and cancel vanilla shooting behavior. Visually, the mod provides a custom item model override via asset replacement, using a has_component condition to switch the crossbow texture to a custom version with a visible embedded pearl when loaded, along with custom pull animation textures for a seamless experience. In essence, this mod offers a practical, tactical, and reliable way to use Ender Pearls for teleportation by combining the crossbow's mechanical precision with the pearl's utility, all while keeping the game balanced and adding no new items.
下载 EnderpearlCrossbow
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EnderpearlCrossbow
下载 EnderpearlCrossbow
下载 EnderpearlCrossbow
下载 EnderpearlCrossbow
兼容所有 1.21.x 版本
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
高科技机械、强大的能量生成、炫酷的小工具以及更多内容。现已登陆 Modrinth!
评论 0
登录后参与评分
还没有评论,来抢沙发吧