ModularShoot
一个框架模组,提供基于属性驱动、模块化组装的枪械系统。
其目标:打造一个数值易于调整、功能易于扩展的射击系统。
特性
枪械属性必须绑定至原版属性,因此玩家/装备的属性修饰符会直接影响枪械。
只需对玩家应用原版属性修饰符,其持有的枪械就会变强或获得新特性。制作枪械增益饰品和装备变得轻而易举。
数据驱动
大多数注册通过数据包完成,随时重载即可立即生效。
身体窃取(Body Snatching)
你可以将现有物品(原版或其他模组的物品)冠以我们的插件或枪械身份。这仅附加枪械/插件功能——原始 ID 及其原有特性(合成配方、饰品槽位等)保持不变。
模块化插件系统
你是否玩过 Apotheosis 或 Mine & Slash?它们都允许你将宝珠嵌入装备中。我们也采用了相同的设计——将插件嵌入枪械。
独特之处在于:我们的插槽具有类型限制且可无限注册,一个插件可适配多种插槽类型——本质上是标签匹配插槽。
我们还提供了互斥组和优先级机制。
动态渲染
我们毫不掩饰地借鉴了 The Binding of Isaac —— 枪械纹理和子弹支持动态着色、纹理叠加及其他视觉效果,这些效果可从插件甚至饰品堆叠而来。
开放扩展点
我们添加了大量的钩子和事件。
开发者便利与规范
针对常见的扩展模式,我们提供了统一的接口和系统。
例如:枪械动作键、加权子弹变体池(用于随机变体射击)等。
(但不包含换弹系统。)
不足之处
枪械不支持 3D 模型——如果 Minecraft 是一款 2D 游戏,这个缺点根本不存在。(不过,子弹支持 3D 模型!)
视觉效果未必能惊艳所有人;老实说,我只在乎它是否好玩。哈哈。
文档
FAQ
Q1: 你为什么制作这个模组?
A1: 最初它是为 Yanbwe 自己的整合包制作的私人模组,但其设计足够有趣,最终决定作为任何人都能使用的框架发布。愿每位开发者在打造数值膨胀的射击内容时都能保持愉悦。
Q2: 你会支持更多 Minecraft 版本吗,比如 1.20.1?
A2: 暂无计划。我在等待最新 Minecraft 版本实现质的飞跃的那一天。
Q3: 模组的封面艺术与模组本身有什么关系?
A3: 我梦到的。
Q4: 等等,我只是个玩家——这个模组有什么可玩的吗?
A4: 有三件看起来像枪械的物品,以及十三件自称是插件的物品——我是说,一些示例内容。请持续关注 Yanbwe 即将推出的扩展模组。
Q5: 我以为这是个关于射击枪的模组,但示例内容让我觉得这是个奇怪又古怪的模组。
A5: 发挥你的想象力——“射击”并不局限于枪械。
ModularShoot
A framework mod that add an attribute-driven, modularly-assembled gun system.
Its goal: a shooting system where numbers are easy to tweak and features are easy to extend.
Features
Gun stats must be bound to vanilla attributes, so player/equipment attribute modifiers affect guns directly.
Just apply a vanilla attribute modifier to a player and their gun gets stronger, or gains traits. Building gun-boosting trinkets and gear becomes trivial.
Data-Driven
Most registrations are done through data packs, reload anytime and feel it immediately.
Body Snatching
You can crown an existing item (vanilla, or from another mod) as one of our plugins or guns. It only tacks on gun/plugin functionality — the original id and its features (crafting recipes, trinket slots, etc.) stay untouched.
Modular Plugin System
Ever played Apotheosis or Mine & Slash? They both let you socket orbs into gear. We did the same — socket plugins into guns.
The twist: our sockets are typed and infinitely registrable, and a plugin can fit multiple socket types — tag-matching sockets, basically.
We also ship mutual-exclusion groups and priorities.
Dynamic Rendering
We shamelessly copied The Binding of Isaac — gun textures and bullets support dynamic tinting, texture layering and other visual effects, stacking from plugins or even trinkets.
Open Extension Points
We added a ton of hooks and a ton of events.
Dev Conveniences & Conventions
For common extension patterns, we provide unified interfaces and systems.
E.g. a gun action key, a weighted bullet-variant pool (for random variant fire), and more.
(But no reload system.)
The Downsides
Guns don't support 3D models — if Minecraft were a 2D game, this downside wouldn't exist at all. (Bullets, though, do support 3D models!)
The visuals won't wow everyone; honestly, I only care whether it's fun. Haha.
Documentation
FAQ
Q1: Why did you make this mod?
A1: It started as a private mod for Yanbwe's own modpack, but the design turned out interesting enough to release as a framework anyone can use. May every developer stay happy while crafting their number-bloated shooting content.
Q2: Will you support more Minecraft versions, like 1.20.1?
A2: No plans. I'm waiting for the day the latest Minecraft version has a qualitative breakthrough.
Q3: What does the mod's cover art have to do with the mod?
A3: I dreamed it.
Q4: Wait, I'm just a player — does this mod have anything to play with?
A4: There are three items that look gun-related and thirteen items that call themselves plugins — I mean, some sample content. And stay tuned for Yanbwe's upcoming expansion mods.
Q5: I thought this was about shooting guns, but the sample content makes me think this is a weird, quirky mod.
A5: Use your imagination — "shooting" isn't exclusively a gun thing.
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
下载 ModularShoot
新增
- 枪械定义可声明属性挂载点:
attribute_mount接受item/player;玩家端枪械不再携带物品属性修改器组件,属性挂载交由声明方处理。 - 玩家端工具提示属性栏:最终值从属性持有者处读取;若无可用持有者,则显示基础值并附带“基于持有者的数值”说明。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧