介绍 Morph: Enhanced And Transformed
又名 MEAT
Morph 已彻底重写(又一次重写?!),现已回归 1.16.5+ 版本!全新的动画!全新的系统!全新的机制(某种程度上)!
击杀一个生物并将其收录,随心所欲地变身。
与之前一样:
[ ] 键打开/导航选择器(按住 SHIFT 水平导航)。
`(通常也称为 ~ )在选择器中收藏模组并打开收藏夹径向菜单。
我们的社区成员 luckyu19 整理了一份模组中可用特性 & 能力列表,以及哪些生物拥有这些能力,你可以在这里找到。
遗憾的是,从内容角度来看,该模组尚未完成。
我原本计划通过“生物质”能力为模组添加适当的进度系统,该能力本应默认可用。然而,由于时间限制和现实生活中的义务,我决定结束对该模组的开发并发布“经典”模式。经典模式就是我们熟知且喜爱的 Morph:击杀生物,变成它,使用其能力。大多数使用过旧版 Morph(1.12.2 之前版本)的玩家会对模组的工作方式感到熟悉,但我仍会在下方概述原本的计划。
由于模组未完成,一些默认模式的残留部分会延续到经典模式中(例如配置项),但它们已无实际效果。这将在稍后解决。示例如下:
按键绑定:
- Biomass - “生物质”尚未实现,但将占用一个按键以打开菜单。
- Abilities - 这些指的是主动能力,旨在与“生物质”配合使用,因此也已禁用。被动能力和特性,如缓慢降落、水下呼吸、创造飞行等,即 MC 1.12.2 版本中 Morph 所拥有的那些,现包含在模组中。遗憾的是,目前在游戏中也无法得知哪些生物拥有哪些特性 & 能力。
已知问题:
10.2.0:
- 模组生物显示为猪:猪是 Morph 的“失败捕获”实体。详情请见下文。
- 存在一个模组(可能是 Optifine)阻止 Morph 的 GUI 渲染。除此项外,模组的其他功能均正常工作。
某些生物的外观不正确。
为了解决旧版 Morph 存在的生物重复问题,我现在剥离了所有无关的 NBT 数据。NBT 修饰符用于告知 Morph 在变形中保留哪些 NBT 数据。
对于部分显示为“Invalid Morph Pig”的实体,由于代码问题可能导致创建失败。模组开发者需要在他们的模组中修复此问题。(给开发者的说明:继承 IAngerable 接口的实体需要修复 MC-189565,即在读取 NBT 数据时将对象强制转换为 ServerWorld 之前检查 world.isRemote,类似于 Forge 对实现该接口的 6 个类所做的补丁处理。如果这不是问题所在,则很可能是在客户端创建实体并处理 NBT 数据时抛出了其他错误。
对于显示类型正确但纹理/模型错误的实体,则需要特殊的 NBT 修饰器(NBT Modifiers)来让 Morph 正确捕获其 NBT 数据。有关创建这些文件的详细信息如下。
添加与模组的兼容性
要为模组生物或模组能力添加兼容性,Morph 需要(最多)三种类型的 JSON 文件:Hand Info、Mob Data 和 NBT Modifiers。这些文件需放入 /config/morph/ 目录中。
Hand Info 使用 Tabula 创建。导入模组生物后,导出一个新的 Hand Info JSON。步骤将引导你完成操作。
Mob Data 通过命令 "/morph resources generate mob" 创建。这将打开一个图形界面,显示你的变形形态,以便你添加和修改变形的特性。
NBT 修饰符可通过命令 “/morph resources generate nbt [entity]” 创建。你需要一个活体实体,而不是变身形态。请注视你要为其创建修饰符的实体,或使用目标选择器如 @e[type=<type>]。这将打开一个图形界面,允许你修改 NBT 键值,并将生物的外观与其变身外观进行比较。
其他术语
计划中:
默认模式:
默认模式添加了生物质能力,该能力需通过下界解锁,要求同时激活凋零与再生效果。这将使玩家能够吸收/消耗其他生物的生物质,最终实现升级与解锁(例如变形能力和容量提升)。
主动能力:
Morph 现在将旧的能力系统拆分为「特性」和「能力」。能力在使用时会消耗生物质,大部分为被动效果,其余为主动效果。大多数能力需要使用生物质来解锁,从而让玩家有使用生物质的途径并带来 progression(成长感)。所有 Morph 原有的能力都已为此重写,未来还将添加更多内容。这也让模组开发者更容易为其怪物添加支持。
未来经典模式支持:
由于 JSON 文件在多种模式间共享,对默认模式的更新也将涵盖经典模式,这意味着经典模式也会随着时间的推移获得更多特性/能力。让我们拭目以待!
关于 JSON 数据文件:
Morph 会提取一套默认的模组支持数据包(类似于 Hats/Googly Eyes)到 /config/morph/ 文件夹中。这些文件被分为“biomass”、“hand”、“mob”和“nbt”四类。
“biomass”目前显然尚未使用,但它会在服务器与客户端之间同步。这部分内容将在稍后完善。
“hand” 表示实体的手部模型部分,并在客户端渲染它们(当你未手持任何物品时)。仅适用于客户端。如前所述,你可以使用 Tabula 来生成这些模型。
“mob” 表示该生物的所有特性与能力,以及每个能力对应的(最终)生物质消耗。这些数据不会在客户端与服务器之间同步。你可以在 此处 找到它们的反序列化版本。如果你想为特定生物添加映射,请使用上述命令。
“nbt” 表示对击杀的生物需要保留或修改的 NBT 数据。仅服务器端需要这些配置。这些配置按实体类进行设置,父类的修改器会自动继承。这些文件的反序列化版本可以在 此处 找到。使用上述命令可以帮助你创建此类配置。
如果你创建了新的文件,可以通过 /morph 命令或在 Morph 的游戏内配置中重新加载所有文件。如果你制作了相关文件,请分享到官方 Discord 服务器!和之前一样,我依赖社区贡献来支持第三方生物,我无法亲自为所有生物进行映射,因此你的贡献将帮助更多人更好地体验此模组!
模组开发者的额外福利:
我努力简化模组开发者为其模组添加支持的流程,从 IMC 消息 到尽可能多地将功能放入 API。如果 GitHub 上还有任何你需要但尚未提供的功能以方便支持,请告诉我,我会尽力提供适配!
1.12.2 及更早版本:
更多信息请访问 iChun 的博客。
Introducing Morph: Enhanced And Transformed
aka MEAT
Rewritten from the ground up (Another rewrite?!), Morph is back for 1.16.5+! New animations! New systems! New mechanics (kinda)!
Kill a mob and acquire it, turn into it at will.
Like before:
[ ] keys opens/navigates the selector (Hold SHIFT to navigate horizontally).
` (more commonly known as ~ ) to favourite a morph in the selector and open the favourites radial menu.
Our fellow community member luckyu19 has compiled a list of traits & abilities available in the mod and which mobs have them which you can find here.
Unfortunately, the mod isn't finished, content-wise.
I had plans on adding proper progression to the mod via the Biomass ability which was meant to be available by default. Unfortunately due to time constraints and IRL obligations, I've decided to wrap up development on this mod and release a "Classic" mode. Classic mode is Morph as we know and love: Kill a thing, become it, use its abilities. Most of you who have used old Morph (pre-1.12.2 era) will be familiar with how the mod works, but I'll outline what's planned anyway down below.
Because the mod is unfinished, there are remnants of default mode that spill over to classic mode (eg configs) that have no effect. This will be addressed later. Examples of these will be:
Key binds:
- Biomass - Biomass hasn't been implemented yet, but will take up a key bind to open the menu.
- Abilities - These refer to active abilities that are meant to be used with Biomass and as thus have also been disabled. Passive Abilities and Traits such as slow fall, water breathing, creative flight, etc, those that were in Morph for MC 1.12.2, are in the mod. Unfortunately there is also no way to figure out which mobs have what traits & abilities in-game.
Known Issues:
10.2.0:
- Modded morphs appear as pigs: Pigs are Morph's "fail-catch" entity. Read below for details.
- There is a mod (probably Optifine) that prevents Morph's GUI from rendering. Everything else from the mod works except for this.
Some mobs don't look right.
To address the concerns of mob duplications which the old Morph had, I now strip all irrelevant NBT data. NBT modifiers are required to tell Morph which NBT data to keep in the Morph.
For some mobs that appear as "Invalid Morph Pig", these mobs are erroring out possibly due to a code issue and fail to be created. Mod devs will have to fix this on their end. (For the devs:) Entities that extend IAngerable will have to fix MC-189565 by checking world.isRemote before casting to ServerWorld when reading NBT data, similar to how Forge patches the 6 classes that implement it. If this isn't the issue then it's likely there is another error thrown somewhere during mob creation on the client-side with NBT data.
For mobs that appear as the correct type but wrong texture/models, they will need special NBT modifiers to allow Morph to capture their NBT data properly. Details on creating these files below.
Adding compatibility with mods
To add compatibility with modded mobs or modded capabilities, Morph needs (up to) three types of JSON files. Hand Info, Mob Data, NBT Modifiers. These files go into /config/morph/
Hand Info is created with Tabula. Import the modded mob and then export a new Hand Info JSON. The steps will guide you.
Mob Data is created with the command "/morph resources generate mob". This will show you your morphs with a GUI for you to add and modify the morph's traits.
NBT Modifiers are created with the command "/morph resources generate nbt [entity]". You will need a living entity for this and not a morph. Either look at the entity you want to make a modifier for or use a target such as @e[type=<type>]. This will show you a GUI where you can modify NBT keys and compare the mob's appearance with its morph appearance.
Additional Jargon
Planned:
Default Mode:
Default mode adds a Biomass ability that would be gated by the Nether, requiring the wither and regeneration effects active at the same time. This unlocks the ability for players to absorb/consume other mobs' biomass, eventually leading to upgrades and unlocks (such as the morph ability, and capacity).
Active Abilities:
Morph now splits the old abilities system into Traits and Abilities. Abilities will cost Biomass to use, most will be passive and others active. Most of these will have to be unlocked using Biomass to give the players a use for Biomass and a sense of progression. All of old Morph's abilities have been rewritten for this, and more will come in the future. It ought to also be easier for Mod Devs to add support for their mobs.
Future Classic Mode Support:
Since the JSON files are shared between modes, updates to those for Default mode will include Classic mode, that means Classic mode will get more traits/abilities over time as well. Only time will tell!
About the JSON Data Files:
Morph extracts a default pack of mob support (similar to Hats/Googly Eyes) into the /config/morph/ folder. These are split to "biomass", "hand", "mob" and "nbt".
"biomass" obviously isn't used currently, but it is synced between servers and clients. These will be completed later on.
"hand" denotes which model part is the entity's hand and renders them on the client (when you're not holding anything). Client only. As mentioned you can use Tabula to generate these.
"mob" denotes all the mob's traits and abilities and the (eventual) biomass cost of each. These are not synched between clients and server. You can find their deserialised versions here. If you want to add mappings for a particular mob, use the command mentioned above.
"nbt" denotes which NBT data to keep/modify for mobs killed. Only the server needs these. These are done by entity class, modifiers for super classes are automatically inherited. The deserialised version of these files can be found here. Use the command mentioned above to help make one.
If you make any new files you can reload all the files using the /morph command or in the in-game config for Morph. If you made any files please share them on the Official Discord Server! Like before, I'm relying on community contributions for 3rd party mob support, I can't map them all myself, so your contribution would help many others enjoy the mod better!
Bonus for Mod Developers:
I've tried to make it much easier for mod devs to add support for their mods, from IMC messages to putting as much as I can into the API. Please let me know (on the GitHub) if there is anything else you need that would help and I'll see where I can accommodate!
1.12.2 and older:
More information can be found at iChun's Blog.
评论 0
登录后参与评分
还没有评论,来抢沙发吧