ElytraRenderFix
通过 minecraft:equippable 组件,可以确定物品在装备时渲染的层。此模组修复了在同时渲染胸甲层和鞘翅时出现的错误。如果胸甲有纹饰(trim),由于 Minecraft 的渲染代码试图将纹饰应用到鞘翅层,导致鞘翅出现缺失纹理(missingno)。此模组通过简单地阻止在鞘翅层(翅膀)上渲染纹饰来修复此问题。这确保了胸甲、纹饰和鞘翅都能正确渲染。
请注意,需要让纹饰渲染在鞘翅上方的模组(例如“鞘翅纹饰”类模组)可能与本模组不兼容,因为它会跳过部分鞘翅渲染流程。如果遇到相关问题,请尝试先移除本模组——这可能已经能解决问题。
例如,以下 JSON 代码是一个装备模型(参见 Minecraft Wiki)。它指定了任何在 minecraft:equippable 组件中具有对应 asset_id 的物品(参见 Minecraft Wiki)应在人形(humanoid)和人形腿部(humanoid_leggings)层(即头盔、胸甲、护腿和靴子的盔甲层)渲染普通的下界合金盔甲,并且,在人形翅膀(wings)层额外渲染鞘翅(如果可用玩家披风则使用之)。
netherite_armor_with_elytra.json:
{
"layers": {
"humanoid": [
{
"texture": "minecraft:netherite"
}
],
"humanoid_leggings": [
{
"texture": "minecraft:netherite"
}
],
"wings": [
{
"texture": "minecraft:elytra",
"use_player_texture": true
}
]
}
}
物品的 minecraft:equippable 组件(此处为下界合金胸甲):
{
"slot": "chest",
"asset_id": "mynamespace:netherite_armor_with_elytra"
}
如果此物品带有盔甲纹饰,Minecraft 会尝试在普通盔甲层(humanoid / humanoid_leggings)以及翅膀层上渲染该纹饰。然而,由于翅膀层无法接受纹饰,它会完全接收缺失纹理(missingno)。
此模组的作用仅仅是防止在翅膀层上渲染纹饰。这样,带有纹饰的盔甲也能与此资源包配合使用。(示例见下文)
 |
 |
| 安装模组后 |
未安装模组 |
(由于需要为 26.1 大版本更新创建一个全新项目,我不得不新建一个仓库。旧仓库请点击 这里 访问,新仓库已通过 Modrinth 链接)
ElytraRenderFix
With the minecraft:equippable component, it is possible to determine the layers that an item renders when it is equipped. This mod fixes a bug that occurs when rendering a chestplate layer and an elytra together. If the chestplate has a trim, the Elytra has a missingno texture because Minecraft's rendering code tries to apply the trim to the Elytra layer. This mod fixes this bug by simply preventing the trims from being rendered on the Elytra layer (wings). This ensures that the chestplate, trim, and Elytra are rendered correctly.
Please note that mods requiring trims to render on top of the elytra (like Elytra Trim mods) might be incompatible with this one, since it skips part of the elytra rendering process.
If you experience issues, try removing this mod first — that might already fix it.
For example, the following JSON code is an equipment model (see Minecraft Wiki). This specifies that any item with the corrosponding asset_id in the item component minecraft:equippable (see Minecraft Wiki) should render normal netherite armor on the humanoid and humanoid_leggings layers (armor layers for helmet, chestplate, leggings, and boots) and, in addition, an elytra on the wings layer (using the player's cape if available).
netherite_armor_with_elytra.json:
{
"layers": {
"humanoid": [
{
"texture": "minecraft:netherite"
}
],
"humanoid_leggings": [
{
"texture": "minecraft:netherite"
}
],
"wings": [
{
"texture": "minecraft:elytra",
"use_player_texture": true
}
]
}
}
minecraft:equippable component of the item (here a netherite chestplate):
{
"slot": "chest",
"asset_id": "mynamespace:netherite_armor_with_elytra"
}
If this item now has an armor trim, Minecraft attempts to render the trim over the normal armor layer (humanoid / humanoid_leggings) as well as over the wings layer. However, since the wings layer cannot accept a trim, it receives a missingno texture in its entirety.
This mod does nothing more than prevent trims from being rendered on the wings layer. This way, armor with trim also works with such a resource pack. (See below for example)
 |
 |
| With the mod |
Without the Mod |
(I had to create a new repository because I needed to set up a brand-new project for the major version update to 26.1, Click here for the old repo, the new one is linked via modrinth)
评论 0
登录后参与评分
还没有评论,来抢沙发吧