
ElytraSwap
一款模组,允许你将末地船物品框中的鞘翅替换为任何其他物品……无论是原版还是模组物品。
类似于“No Elytra”或“Remove Elytra”等模组/数据包的功能,但更优秀 ;)
功能特性
- 将末地船物品框中生成的鞘翅替换为可配置的物品
- 支持单人游戏和服务器环境。在服务器上使用时,玩家无需安装任何客户端模组即可加入
依赖项
配置
首次启动时,ElytraSwap 会生成 config/elytraswap-common.toml 文件:
#- 用于替换鞘翅并放置在末地船物品框中的物品(默认值:'minecraft:diamond_block')
replacementItem = "minecraft:diamond_block"
将 replacementItem 修改为任意有效的物品 ID,然后重启服务器(或在适用情况下使用 /reload 命令),更改即可对新生成的末地船生效。
注意: 已存在且已生成的末地船不会进行回溯性更改。此设置仅影响配置文件设定后新生成的船只。
更新合成配方
更改 replacementItem 只会改变物品框中显示的内容,它不会自动更新其他需要鞘翅作为配料的模组的合成配方。由于每个模组定义配方的方式不同,ElytraSwap 不会尝试自动重写它们——相反,你可以通过一个小巧的数据包自行覆盖特定的配方。
数据包覆盖之所以有效,是因为 Minecraft 通过完整路径(namespace:path)解析资源:如果数据包在某个位置定义了文件,而该位置已被模组提供的同名文件占据,则数据包的版本优先。这使得你可以只替换你关心的配方,而不影响其他内容。
示例:替换其他模组配方中的鞘翅配料
假设另一个模组 (somemod) 在其 data/somemod/recipe/some_recipe.json 处有一个需要 minecraft:elytra 的配方。在你的世界文件夹 datapacks 中创建如下结构的数据包:
world/datapacks/elytraswap_compat/
├── pack.mcmeta
└── data/
└── somemod/
└── recipe/
└── some_recipe.json
pack.mcmeta:
{
"pack": {
"pack_format": 48,
"description": "ElytraSwap recipe compatibility overrides"
}
}
some_recipe.json — 从模组的 jar 文件中复制原始配方文件,然后将其中的 minecraft:elytra 条目替换为你配置好的替代物品,例如:
{
"item": "minecraft:diamond_block"
}
使用 /reload 命令启用数据包(在已有世界中),或者开启新世界以加载它——可通过 /datapack list 检查其是否处于激活状态。

ElytraSwap
A mod that lets you replace the Elytra found in End Ship item frames with any other item... vanilla or modded.
Similar to mods/datapacks like "No Elytra" or "Remove Elytra", but better ;)
Features
- Replaces the Elytra generated in End Ship item frames with a configurable item
- Works in both singleplayer and on servers. When used on a server, no client-side mod is required for players to join
Dependencies
Configuration
On first launch, ElytraSwap generates config/elytraswap-common.toml:
#- The item to place in the End Ship item frame instead of an Elytra (default: 'minecraft:diamond_block')
replacementItem = "minecraft:diamond_block"
Change replacementItem to any valid item id, then restart the server (or use /reload where applicable) for the change to take effect on newly generated End Ships.
Note: existing, already-generated End Ships won't retroactively change. This only affects ships generated after the config is set.
Updating crafting recipes
Changing replacementItem swaps what appears in the item frame, but it does not automatically update crafting recipes in other mods that require an Elytra as an ingredient. Since every mod defines its recipes differently, ElytraSwap doesn't try to rewrite them automatically - instead, you can override any specific recipe yourself with a small datapack.
Datapack overrides work because Minecraft resolves resources by their full path (namespace:path): if a datapack defines a file at the exact same location as one already provided by a mod, the datapack's version wins. This lets you replace just the recipe you care about without touching anything else.
Example: replacing an Elytra ingredient in another mod's recipe
Suppose another mod (somemod) has a recipe at data/somemod/recipe/some_recipe.json that requires minecraft:elytra. Create a datapack like this in your world's datapacks folder:
world/datapacks/elytraswap_compat/
├── pack.mcmeta
└── data/
└── somemod/
└── recipe/
└── some_recipe.json
pack.mcmeta:
{
"pack": {
"pack_format": 48,
"description": "ElytraSwap recipe compatibility overrides"
}
}
some_recipe.json — copy the original recipe file from the mod's jar, then simply replace the minecraft:elytra entry with your configured replacement item, e.g.:
{
"item": "minecraft:diamond_block"
}
Enable the datapack with /reload (on an existing world) or by starting a new world — check it's active with /datapack list.
评论 0
登录后参与评分
还没有评论,来抢沙发吧