Drawers & Bits
Drawers & Bits 是 Minecraft 模组 Chisels & Bits(作者 AlgorithmX2)和 Storage Drawers(作者 jaquadro)的一个附加模组。该模组添加了特殊的抽屉以及对位(bits)的支持。
此模组高度依赖 Storage Drawers 的版本,因此可能会因更新而失效。一旦发现问题,我会尽快修复。
Bit Drawer(位抽屉)
Bit Drawer 的工作原理类似于压缩抽屉,可以自动在位(bits)和完整方块之间进行转换。它只能存储可以被分解为位的方块。否则,它的行为与普通抽屉相同,即它可以成为抽屉控制器网络的一部分,支持升级并且可以被锁定等。
一个小警告:由于一个方块包含 4096 个位,抽屉的容量会接近 Storage Drawers 内部支持的物品数量上限。使用默认设置时没有问题,但如果您通过配置或升级提高了 Bit Drawer 的存储容量,您将很快达到限制(在 8191 组 @ 64 个方块时)。
特殊交互
目前所有这些功能仅在手动与 Bit Drawer 交互时生效。如果 Storage Drawers 中设置了相应的选项,潜行/非潜行左击的行为将会反转。
袋子(Bags): 右键点击携带袋子的玩家会将袋子中与点击槽位匹配的所有物品存入抽屉。这适用于位袋,但如果其他模组的袋子支持正确的 Forge 能力,也可以工作。位袋(Bit bags)不需要专门瞄准位槽,右键点击即可将位存入整个正面。左击带有位袋的正面会将抽屉中的位填充到袋子的一个槽位中(填充部分填充的槽位,如果没有部分填充的槽位则新建一个),操作时按住潜行键会将尽可能多的位装入袋子(直到装不下或用完为止)。
设计图(Designs): 左击位槽并持有一个设计图,您可以获得该设计图所描述的方块,按住潜行键则会获得一组。位组成会被忽略,它将完全由抽屉中的位制成。右键点击自定义槽位(右下角)并持有一个设计图,将设置从自定义槽位获得的雕刻方块。使用空的设计图可以清除。
雕刻方块(Chiseled blocks): 左击位槽的效果如同左击设计图。右键点击抽屉正面并持有一个雕刻方块,如果该方块完全由存储的位构成(且有足够空间),则会将该组插入抽屉。这仅在抽屉内容已设置的情况下有效。
Bit Drawer Controller(位抽屉控制器)
Bit Drawer Controller 是一个增强型抽屉控制器,添加了一些类似于 Bit Drawer 的新交互。注意:它仍然是一个抽屉控制器,因此在一个抽屉网络上只能存在其中一个。它可以与其他抽屉配合使用,因此并非仅针对 Bit Drawers。
特殊交互
目前所有这些功能仅在手动与 Bit Drawer Controller 交互时生效。如果 Storage Drawers 中设置了相应的选项,潜行/非潜行左击的行为将会反转。
袋子(Bags): 右键点击携带袋子的玩家会将袋子中的所有物品存入抽屉网络。这适用于位袋,但如果其他模组的袋子支持正确的 Forge 能力,也可以工作。左击带有位袋(bit bag)的正面,只要空间允许,就会用抽屉网络中每种可用的位的一组来填充袋子(填充部分填充的槽位,如果没有部分填充的槽位则新建一个)。
设计图或雕刻方块: 左击会给您提供设计图或方块所描述的方块,按住潜行键则会获得一组。右键点击并持有一个雕刻方块,如果所有位都容纳得下,则会将该组插入抽屉网络。
重要提示:默认情况下,双击会将所有兼容袋子的内容插入抽屉网络(如果有空间)。您可以在配置文件中关闭此行为。还有一个配置选项,可以在双击时将库存中的所有雕刻方块插入。默认情况下此功能是关闭的,以免不知情的人意外丢失他们的雕刻方块。
技术细节(主要针对其他模组开发者)
要使袋子兼容,它需要支持 IItemHandler 能力。
Drawers & Bits
Drawers & Bits is an addon for the Minecraft mods Chisels & Bits by AlgorithmX2 and Storage Drawers by jaquadro. The mod adds special drawers and support for bits.
This mod highly relies on the version of storage drawers, so it can break with an update. I will try to fix that as soon as I notice.
Bit Drawer
The Bit Drawer basically works similar to a compacting drawer by automatically converting between bits and the full block. It can only store blocks that can be broken down into bits. Otherwise it acts as any drawer, aka it can be part of a drawer controller network, accepts upgrades and can be locked etc.
A small warning, since a block has 4096 bits the drawer gets close to how many items Storage Drawers internally supports. With default settings you are fine, but if you upgrade the storage capacity of the bit drawer or upgrades in the config, you will rapidly hit the limit (at 8191 stacks à 64 blocks).
Special Interactions
For now all of these only work when manually interacting with the bit drawer. Sneak/non-sneak left-click behaviour will be inverted if the respective option is set for Storage Drawers.
Bags: Right-clicking with a bag will deposit everything in the bag matching the clicked slot into the drawer. This works with the bit bag but can also work with other mod's bags if they support the correct Forge capability. Bit bags do not need to target the bit slot, right-clicking to deposit bits works on the whole front. Left-clicking with a bit bag on the front will fill a slot in the bag with bits from the drawer (fill up a partial one or a new one if there is no partially filled slot), sneaking while doing so fills the bag with as many bits as are available/will fit.
Designs: Left-clicking the bit slot with a design gives you the block described by the design, sneaking gives you a stack. The bit composition is ignored, it will be made entirely from the bit in the drawer. Right-clicking the custom slot (bottom right) with a design will set the chiseled block you get from the custom slot. Use an empty design to clear.
Chiseled blocks: Left-clicking the bit slot works like left-clicking with a design. Right-clicking the drawer front with a chiseled block will insert the stack into the drawer if it's made entirely from the stored bit (and there is enough space). This only works if the drawer contents are set.
Bit Drawer Controller
The Bit Drawer Controller is an enhanced Drawer Controller adding some new interactions similar to the Bit Drawer. Note: It is still a drawer controller, so only one or the other can be on a drawer network. It works with other drawers, so it's not specific to Bit Drawers.
Special Interactions
For now all of these only work when manually interacting with the bit drawer controller. Sneak/non-sneak left-click behaviour will be inverted if the respective option is set for Storage Drawers.
Bags: Right-clicking with a bag will deposit everything in the bag into the drawer network. This works with the bit bag but can also work with other mod's bags if the support the correct Forge capability. Left-clicking with a bit bag on the front will fill the bag with a stack of each available bit from the drawer network (fill up a partial one or a new one if there is no partially filled slot) as long as there is space.
Designs or Chiseled blocks: Left-clicking will give you the block described by the design or block, sneaking gives you a stack. Right-clicking with a chiseled block will insert the stack into the drawer network if all of the bits fit.
Important: By default a double right-click will insert the contents of all compatible bags into the drawer network (if there is space). You can turn that behaviour off in the config file. There is also a configuration option to insert all chiseled blocks in your inventory on a double right-click. It is off by default so people unaware will not loose their chiseled blocks by accident.
Technical Details (mostly for other modders)
For a bag to be compatible it needs to support the IItemHandler capability.
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
下载 Drawers & Bits
* [FIXED] 修复了与位抽屉交互时的空指针异常
* [FIXED] 修复了红石升级的红石更新问题
* [MISC] 代码清理
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
高科技机械、强大的能量生成、炫酷的小工具以及更多内容。现已登陆 Modrinth!
模组
更聪明地交易,随处存储,并用奇妙的原版增强机制打造更好的体验。
模组
自动附魔,搭配 Create
模组
一款适用于 Fabric/(Neo)Forge 的模组,添加了各种各样的便利性功能(QoL),包括容器搜索、精确库存管理、酷炫的视觉效果等等!
评论 0
登录后参与评分
还没有评论,来抢沙发吧