ModularShootAmmo
一个针对 NeoForge 1.21.1 的弹药插件模组,为 ModularShoot 框架引入了基于弹匣的弹药系统、换弹机制以及弹药 HUD。
功能特性
基于弹匣的弹药
枪械通过数据包声明 uses_ammo 特性来启用弹药系统。弹匣数量、容量和换弹时间均通过框架的属性与状态管道进行传递,并可通过插件进行修改(例如:扩容弹匣可增加 +15 容量)。
弹药类型
支持注册任意数量的弹药类型(ammo_types 注册表):颜色、单发消耗量(如霰弹枪每发射一次消耗 2 发子弹)、备用弹药上限以及专用的换弹音效均可配置。
弹药 HUD
持握枪械时,屏幕角落会显示与弹药相关的信息,可通过配置文件进行调整。
数据驱动
与 ModularShoot 一样。
缺点
- 一把枪械只能绑定一种弹药类型;
- 内置纹理比较难看。
依赖要求
文档
Yanbwe 的 WIKI
常见问题
Q1: 我该如何换弹?我没有看到此模组添加的任何按键绑定。
A1: 此模组不添加任何按键绑定;它直接使用 ModularShoot 提供的“动作键”。
Q2: 所以现在终于有东西可以玩了吗?
A2: 是的——四种弹药类型和两把枪械,仅用于演示目的(或许也是为了统一性)。
Q3: 为什么不直接将其构建到 ModularShoot 中?
A3: 首先,我不喜欢那样;其次,为了证明 ModularShoot 的能力——此模组未使用任何 Mixin。
许可证
MIT
ModularShootAmmo
An ammo addon mod for NeoForge 1.21.1 that brings magazine-based ammunition, reloading, and an ammo HUD to the ModularShoot framework.
Features
Magazine-Based Ammo
A gun enables the ammo system by declaring the uses_ammo feature via data pack. Magazine count, capacity, and reload time all flow through the framework's attribute and state pipeline, and can be modified by plugins (e.g., an extended magazine adds +15 capacity).
Ammo Types
Supports registering any number of ammo types (the ammo_types registry): color, per-shot cost (a shotgun spends 2 shells per shot), reserve ammo cap, and dedicated reload sounds are all configurable.
Ammo HUD
While holding a gun, ammo-related info is shown in a corner of the screen, adjustable through configuration.
Data-Driven
Just like ModularShoot.
Drawbacks
- A gun can only be bound to one ammo type;
- The built-in textures are ugly.
Requirements
Documentation
Yanbwe's WIKI
FAQ
Q1: How do I reload? I don't see any keybind added by this mod.
A1: This mod doesn't add any keybinds; it uses the “action key” provided by ModularShoot directly.
Q2: So now there's finally something to play with?
A2: Yes — four ammo types and two guns, for demonstration purposes (and perhaps for unification).
Q3: Why not just build it into ModularShoot?
A3: First, I don't like it; second, to prove ModularShoot's capabilities — this mod uses no mixins.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧