EnchantedShulkers
注意:此模组仅适用于 Fabric。如果你正在寻找具有类似功能的 Forge 模组,请查看 Shulker Enchantments
为潜影盒添加了一些实用的附魔。
项目设置基于 Fallen-Breath 的模板。
灵感来源
在观看 Xisumavoid 关于库存改进的视频后,我产生了制作此模组的灵感。 在该视频中展示了一个名为 Shulker Enchantments 的 Forge 模组。本模组现在试图为 Fabric 提供类似的功能,因为我能找到的唯一支持这些附魔的其他 Fabric 模组(即 BetterShulkers) 仅支持 Minecraft 1.16。
功能
本模组向游戏中添加了“吸取”(Siphon)和“补充”(Refill)附魔。它们可以像经验修补和其他宝藏附魔一样获得。可以在铁砧上将这些附魔添加到潜影盒以及可选地添加到末影箱中(见 配置)。
Siphon(吸取)
拥有吸取附魔时,只要你拾取的物品已经在容器中存在一个非满堆的同种物品,该物品就会被立即存储到附魔容器中。容器必须位于你的物品栏内。
Refill(补充)
拥有补充附魔时,当你用完任何物品或物品堆时,它将从附魔容器中补充,前提是使用过的堆是在手中持有的(见 配置)。同样,容器必须位于你的物品栏内。
Vacuum(真空)
真空附魔默认不生成,因此在生存模式下无法获得。要改变这一点,将 generateVacuum 选项设置为 true(并可选地将 generateSiphon 设置为 false 以禁用吸取)。其行为与吸取附魔非常相似,关键区别在于它不需要附魔容器中已经存在相同的物品。这意味着拥有真空附魔的容器会拿走你拾取的所有物品,只要它有空间容纳即可。
Void(虚空)
与 真空附魔 一样,虚空附魔默认也不生成。要在生存模式下使其可获取,
启用 generateVoid 选项。当你拾取与拥有虚空附魔的容器中包含相同类型的物品时,拾取的物品将被删除。附魔容器不需要空间来存放被删除的物品,而且与吸取不同,附魔容器中的堆可以是满的。
Augment(扩充)
扩充附魔扩展了潜影盒的大小。它有不同等级,每个等级为潜影盒的物品栏增加九个槽位。就像 真空 和 虚空 一样,在使用默认设置时,它在生存模式下是不可获得的,但可以通过 generateAugment 选项 进行配置。最大等级也可以通过 maxAugmentLevel 选项 更改。
关于资源包
当将 EnchantedShulkers 与更改潜影盒和/或末影箱外观的资源包一起使用时,关闭状态下的这些物品的附魔版本仍将使用原版纹理。这样做是为了修复这些方块上重叠的光泽效果。
你可以修补你的资源包以包含此模组所需的纹理,地址为 。
服务器/客户端
此模组实际上可以作为仅服务器模组运行,但建议同时在客户端和服务器上安装。如果玩家的客户端没有安装此模组,他们将看不到附魔容器的光泽效果。
我只是想快速试用一下
如果你只想在创造模式世界中快速测试这些附魔,有多种方法可以实现。
选项一:你可以在创造模式物品栏中搜索附魔书,并使用铁砧应用它们。
选项二:你可以使用命令给自己附魔书,并使用铁砧应用它们。请注意,ID 以 enchantedshulkers: 开头,而不是 minecraft:。
- 吸取的命令:
/give @s minecraft:enchanted_book{StoredEnchantments:[{id:"enchantedshulkers:siphon",lvl:1}]} - 补充的命令:
/give @s minecraft:enchanted_book{StoredEnchantments:[{id:"enchantedshulkers:refill",lvl:1}]}
选项三:你可以使用 /enchant 命令附魔你手持的物品。
- 吸取的命令:
/enchant @s enchantedshulkers:siphon - 补充的命令:
/enchant @s enchantedshulkers:refill
配置
客户端
要配置客户端设置,你必须安装 Cloth Config API 和 Mod Menu,并将其与 EnchantedShulkers 一起安装。然后,你可以通过打开模组菜单、选择 EnchantedShulkers 并点击右侧的设置按钮来打开设置。
以下选项可用:
| 选项 | 默认值 | 描述 |
|---|---|---|
| 对放置的容器应用附魔光效 | 是 | 为世界中已放置的附魔潜影盒和末影箱添加附魔光效 |
| 防止附魔光效与自定义模型重叠 | 是 | 使用不同的方块模型和纹理来显示关闭状态的容器,以防止附魔光效重叠。这不会改变关闭状态容器的外观,但始终使用原版纹理,因此在使用自定义资源包时应禁用此选项。仅当上述选项启用时,此选项才生效 |
| 在背包打开时自动填充 | 否 |
服务器
你可以在世界存档文件夹中的 enchantedshulkers.toml 配置文件内,或通过游戏内的 /enchantedshulkers 命令,针对每个世界调整模组的行为。以下是可用的选项列表。
| 选项 | 可选值 | 默认值 | 描述 |
|---|---|---|---|
refillOffhand |
true, false |
true |
允许副手栏中的堆叠物品自动补充 |
refillNonStackables |
true, false |
false |
允许非堆叠物品(如不死图腾)自动补充 |
enchantableEnderChest |
true, false |
false |
允许末影箱附魔 |
coloredNames |
true, false |
false |
以青色显示已放置的附魔容器的名称。此设置对所有玩家生效 |
creativeSiphon |
true, false |
false |
为创造模式玩家启用“汲取”附魔 |
creativeRefill |
true, false |
false |
为创造模式玩家启用“补充”附魔 |
creativeVacuum |
true, false |
false |
为创造模式玩家启用“真空”附魔 |
creativeVoid |
true, false |
false |
为创造模式玩家启用“虚空”附魔 |
generateSiphon |
true, false |
true |
通过允许附魔书生成该附魔,使“汲取”附魔在生存模式中可获取 |
generateRefill |
true, false |
true |
通过允许附魔书生成该附魔,使“补充”附魔在生存模式中可获取 |
generateVacuum |
true, false |
false |
通过允许附魔书生成该附魔,使“真空”附魔在生存模式中可获取 |
generateVoid |
true, false |
false |
通过允许附魔书生成该附魔,使“虚空”附魔在生存模式中可获取 |
generateAugment |
true, false |
false |
通过允许附魔书生成该附魔,使“增强”附魔在生存模式中可获取 |
nestedContainers |
0 到 32767 之间的任意整数 |
255 |
递归搜索容器,最多深入指定层数(例如:搜索末影箱中的潜影盒) |
strongerSiphon |
true, false |
false |
允许“汲取”附魔填充空槽位。可通过 weakerVacuum 为“真空”附魔启用相同行为 |
weakerVacuum |
true, false |
false |
要求容器中已存在相同的物品。可通过 strongerSiphon 为“汲取”附魔启用相同行为 |
maxAugmentLevel |
1 到 10 之间的任意整数 |
3 |
“增强”附魔的最高等级。更改此值后,请执行 /reload 以获得最佳体验 |
面向模组开发者
如果你的模组添加了新的容器并希望支持这些附魔,只需将该容器添加到 enchantedshulkers:portable_container 物品标签中即可。为此,请在你的模组文件夹 src/main/resources/data/enchantedshulkers/tags/items/ 中创建文件 portable_container.json,并包含以下内容:
{
"replace": false,
"values": ["your_mod_namespace:your_container_item"]
}
如果你的容器未继承原版的潜影盒类(Shulker Box class),你可能需要手动实现
EnchantableBlockEntity
接口,并支持渲染附魔光泽以及自定义显示名称的颜色。更多信息请参阅
ShulkerBoxBlockEntityRendererMixin.java 和
ShulkerBoxBlockEntityMixin.java。
如有任何其他问题或反馈,请在 GitHub 上提交 Issue。
EnchantedShulkers
Note: This mod is for Fabric only. If you are looking for a Forge mod with similar functionality, have a look at Shulker Enchantments
Adds some helpful enchantments for Shulker Boxes
The project setup is based off of Fallen-Breath's template.
Inspiration
I was inspired to create this mod after watching Xisumavoid's video about inventory improvements. In that video a Forge mod called Shulker Enchantments was presented. This mod now tries to provide similar functionality for Fabric, as the only other Fabric mod with these enchantments that I could find (i.e. BetterShulkers) only supports Minecraft 1.16.
Features
This mod adds the "Siphon" and "Refill" enchantments to the game. They can be obtained just like Mending and other treasure enchantments. The enchantments can be added to Shulker Boxes and optionally to Ender Chests (see configuration) on an anvil.
Siphon
With the Siphon enchantment, any item that you pick up will be immediately stored in an enchanted container as long as that container already has a non-full stack of that exact item inside. The container must be inside your inventory.
Refill
With the Refill enchantment, any item or item stack you use up will be refilled from an enchanted container as long as the used stack was held in one of the hands (see configuration). Again, the container must be inside your inventory.
Vacuum
The Vacuum enchantment doesn't generate by default making it unobtainable in
survival. To change that, set the generateVacuum option to true
(and optionally disable Siphon by setting generateSiphon to false). Its
behavior is very similar to that of the Siphon enchantment, with the key
difference that it doesn't require the same item to already be present in the
enchanted container. This means a container enchanted with Vacuum will take all
items you pick up as long as it has space to do so.
Void
Same as the Vacuum enchantment, the Void enchantment also doesn't
generate by default. To make it obtainable in survival mode,
enable the generateVoid option. When you pick up items of the same
type as a container with the Void enchantment contains, the picked up items will
be deleted. The enchanted container does not require space to put the deleted
items, and unlike Siphon, the stacks in the enchanted container can be full.
Augment
The Augment enchantment expands the size of a Shulker Box. It is available in
different levels where each level adds nine more slots to the Shulker's
inventory. Just like Vacuum and Void it is unobtainable in
survival when using the default settings, but that can be configured with the
generateAugment option. The maximum level can also be changed with
the maxAugmentLevel option.
A note on Resource Packs
When using EnchantedShulkers with a resource pack that alters the look of Shulker Boxes and/or Ender Chests, the enchanted versions of those items and blocks will still use the vanilla texture while closed. This had to be done to fix overlapping glint effects on said blocks.
You can patch your resource pack to include the necessary textures for this mod at .
Server/Client
This mod does actually work as a server-only mod, but it is recommended to be used on both client and server. Players without the mod on their client do not see an enchantment glint on enchanted containers.
I just wanna quickly try 'em out
If you just want to quickly test the enchantments in a creative world, there are multiple options to do so.
Option one: You can search for the enchanted books in the creative inventory and apply them with an anvil.
Option two: You can give yourself the enchanted books with a command and
apply them with an anvil. Note that the IDs begin with enchantedshulkers: and
not minecraft:.
- Command for Siphon:
/give @s minecraft:enchanted_book{StoredEnchantments:[{id:"enchantedshulkers:siphon",lvl:1}]} - Command for Refill:
/give @s minecraft:enchanted_book{StoredEnchantments:[{id:"enchantedshulkers:refill",lvl:1}]}
Option three: You can enchant the item you're holding with the /enchant
command.
- Command for Siphon:
/enchant @s enchantedshulkers:siphon - Command for Refill:
/enchant @s enchantedshulkers:refill
Configuration
Client
To configure client side settings, you must have Cloth Config API and Mod Menu installed alongside EnchantedShulkers. You can then open the settings by opening the mod menu, selecting EnchantedShulkers and clicking the settings button on the right side.
The following options are available:
| Option | Default | Description |
|---|---|---|
| Apply glint to placed containers | Yes | Applies the enchantment glint to enchanted shulker boxes and ender chests that are placed in the world |
| Prevent glint overlap with custom models | Yes | Uses different block models and textures for closed containers to prevent overlapping glint. This does not change the look of closed containers, but always uses the vanilla textures, so you should disable this when using a custom resource pack. This option only has effect when the above option is on |
| Refill while inventory is open | No |
Server
The behavior of the mod can be tweaked per world in the enchantedshulkers.toml
config file inside you world save folder, or with the /enchantedshulkers
command in game. Below is a list of available options.
| Option | Possible Values | Default Value | Description |
|---|---|---|---|
refillOffhand |
true, false |
true |
Allow refilling stacks in the offhand |
refillNonStackables |
true, false |
false |
Allow refilling non-stackable items like Totems of Undying |
enchantableEnderChest |
true, false |
false |
Allows Ender Chests to also be enchanted |
coloredNames |
true, false |
false |
Show the names of placed enchanted containers in aqua color. This applies to all players |
creativeSiphon |
true, false |
false |
Enable the Siphon enchantment for creative players |
creativeRefill |
true, false |
false |
Enable the Refill enchantment for creative players |
creativeVacuum |
true, false |
false |
Enable the Vacuum enchantment for creative players |
creativeVoid |
true, false |
false |
Enable the Void enchantment for creative players |
generateSiphon |
true, false |
true |
Make the Siphon enchantment obtainable in survival by allowing enchanted books to generate with it |
generateRefill |
true, false |
true |
Make the Refill enchantment obtainable in survival by allowing enchanted books to generate with it |
generateVacuum |
true, false |
false |
Make the Vacuum enchantment obtainable in survival by allowing enchanted books to generate with it |
generateVoid |
true, false |
false |
Make the Void enchantment obtainable in survival by allowing enchanted books to generate with it |
generateAugment |
true, false |
false |
Make the Augment enchantment obtainable in survival by allowing enchanted books to generate with it |
nestedContainers |
any integer between 0 and 32767 |
255 |
Search containers recursively up to the specified number of levels deep (e.g, search through Shulker Boxes in an Ender Chest) |
strongerSiphon |
true, false |
false |
Allow the Siphon enchantment to fill empty slots. The same behavior can be enabled for the Vacuum enchantment with weakerVacuum |
weakerVacuum |
true, false |
false |
Require the same item to already be present in the container. The same behavior can be enabled for the Siphon enchantment with strongerSiphon |
maxAugmentLevel |
any integer between 1 and 10 |
3 |
The maximum level for the Augment enchantment. For the best experience execute /reload after changing this value |
For Mod Developers
If your Mod adds a new container that should support these enchantments, you
must simply add the container to the enchantedshulkers:portable_container item
tag. To do that, create the file portable_container.json inside the
src/main/resources/data/enchantedshulkers/tags/items/ folder of your mod with
following contents:
{
"replace": false,
"values": ["your_mod_namespace:your_container_item"]
}
If your container does not extend the vanilla Shulker Box class, you might have
to manually implement the
EnchantableBlockEntity
interface and support rendering the enchantment glint and display name
colorizer. For more information have a look at
ShulkerBoxBlockEntityRendererMixin.java
and
ShulkerBoxBlockEntityMixin.java.
For any further questions or issues, please open an issue on GitHub.
下载 EnchantedShulkers
下载 EnchantedShulkers
下载 EnchantedShulkers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EnchantedShulkers
下载 EnchantedShulkers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EnchantedShulkers
下载 EnchantedShulkers
下载 EnchantedShulkers
下载 EnchantedShulkers
下载 EnchantedShulkers
新增内容
- 新增「增幅」附魔,用于增加潜影盒的大小 (#37)
- 每级额外增加 9 个槽位
- 最大等级可通过新增的
maxAugmentLevel选项进行配置,默认为3 - 超过 3 级的等级将使用基于 sgui 的服务端 GUI。未来将为模组客户端添加自定义界面
- 添加了与 Shulker Box Tooltip 和 Peek 的兼容性
修复问题
- 在原版客户端上显示附魔有时无法正常工作 (#39)
- 与最新版本的 Fabric API 发生崩溃 (#41)
- 与 Better Archaeology 及其他修改村民交易的模组存在部分不兼容
- 防止潜影盒在砂轮中堆叠
- 与 Spectrum 的不兼容问题 (#40)
- 未安装 EnchantedShulkers 的 Fabric 客户端无法加入模组服务器 (#45)
其他更改
- Polymer 和 Server Translations 现已嵌入并取代了原本半残废的自定义代码
nestedContainers选项的类型已从boolean改为int,且默认值变为255- 世界专属配置文件现在会发送给模组客户端
- 模组主体大部分已使用 Kotlin 重写,这意味着 Fabric Language Kotlin 现在是必需的依赖项
构建信息
- 文件名:
enchantedshulkers-mc1.20.2-v1.2.4.jar - SHA-256:
9fa6f7727f319984804c411ab7490b1cf3a9e3cd0d23106065266fff6bae654a - 构建来源:
检测到木马?
Windows Defender 最近开始错误地将大量模组标记为“Trojan:Script/Wacatac.B!ml”。这是误报,该问题已在 Windows Defender 中修复。如果您仍遇到此问题,请更新您的 Windows Defender 定义文件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
高科技机械、强大的能量生成、炫酷的小工具以及更多内容。现已登陆 Modrinth!
模组
更聪明地交易,随处存储,并用奇妙的原版增强机制打造更好的体验。
模组
所有本应存在的事物
模组
为 Minecraft 添加了小幽灵 :D
评论 0
登录后参与评分
还没有评论,来抢沙发吧