方块路由器
本模组为 Alpha(测试)版本,方块、物品及行为可能会发生变化。
这是你的新模组。Block Router 是一个添加了用于传输物品的方块的模组。
历史
我从一开始就玩整合包版的 Minecraft(那时模组是通过覆盖 jar 包中的 Java 类来安装的)。
有时候我需要一些只能通过模组机械实现的行为(例如使用 Xnet 配合来自其他模组的抽屉),所以我决定在这个模组中描述所有这些行为。
对于老牌的(整合包版)Minecraft 玩家来说,你可能已经注意到了图标纹理的侧面,它看起来很像 Factorization 中的路由器。你的猜测是正确的,因为它使用了相同的颜色且形状几乎相同。
Factorization 的路由器可以从连接的库存中传输(分散和检索)物品:例如,你放置了一些熔炉(来自 IC2)和一个路由器,你只需要把你想熔炼的东西放进路由器里,该方块就会自动进行分散和检索。
可用方块
路由器
上述描述的行为比我的实现要简单得多。我的实现提供了以下功能:
- 分散与检索
- 模式(Patterns),允许使用更复杂的机器,如 Mekanism 注入工厂
- 允许从不同侧插入物品(提取始终从底部进行)
- 可以要求精确数量的相同物品才能进行处理(例如:1 个煤炭 AND 8 个沙子)
- 路由器只会检测那些相同且堆叠在上方的机器。
使用示例:

分散与检索器
- 分散或检索
- 从顶部插入或从底部提取
- 只会检测那些相同且堆叠在上方的机器。
使用示例:
从抽屉中检索物品。在每个抽屉上分散 1 个树苗。

模式编码器
使用示例:
编码配方以在原版熔炉中熔炼粗金。

缓冲器
- 在允许提取之前,保持并等待一定数量的相同物品,然后在完全排空之前等待切换至插入/保持并等待。
使用示例:
我需要 15 个草方块,其余部分将保留在输入槽(顶部),直到导出槽(底部)为空为止。

分发路由器
允许我们使用多块机器(如基座或合成墙)来制作物品。
真空路由器
允许我们将地面上的掉落物拾取作为配方的一部分,或将物品丢在地上。
插槽路由器
这是一个测试方块,用于验证此功能是否有用。它允许我们将物品插入到特定的插槽中。
路线图
首先,我想测试我的实现。
然后:
- 改进代码和算法。
- 支持 NBT 作为过滤器
- 添加能量生成器(可能)
- 添加流体路由器
- 基于分发模式编码器添加区域方块放置器
- 添加区域方块破坏器
- 实现带过滤器的传输路由器
- 实现幻影方块(以便从其他方块访问 TileEntity)
- 在模式编码器上显示假 ItemStack
- 实现数量升级
- 实现交易站
- 为什么不合并物品和流体呢?
Block Router
The mod is an Alpha version, blocks, items and behavior can change.
This is your new mod, Block Router is a mod that add blocks that route things.
history
I play modded minecraft since the beginning (when a mod was installed by overriding the java class in the jar).
Sometime i need some behaviors that are only possible with mod contraptions (like Xnet with drawers with... other mods) so i decided to describe all these behaviors on this mod.
For the older (in modded mc), you probably have recognized the side of the icon texture, it look like the Router from Factorization. Your guess is right because its the same colors and almost the same shape.
The router from Factorization transfer (scatter and retrieve) items from connected inventories ex: you place a bunch of furnace (from IC2) and a Router, you only need to put the things you want to smelt in the router, the block will automatically scatter and retrieve.
Available blocks
Router
The behavior described above is much simpler than my implementation. My implementation provide:
- Scatter and Retriever
- Patterns that allow to use more complex machines like Mekanism Infusing factory
- Allow insertion from different sides (extraction is always made from the Bottom)
- To require a precise number of the same item to process (ex: 1 coal AND 8 sand)
- The router will only detect machines that are the same and stacked on top.
Example of use:

Scatter & Retriever
- Scatter Or Retrieve
- Insert from the Top Or Extract from the bottom
- Will only detect machines that are the same and stacked on top.
Example of use:
Retrieve items from drawers. Scatter 1 sapling on each drawers.

Pattern Encoder
- Allow creation of Patterns
- One ItemStack Per Side is Allowed
Example of use:
Encode recipe to smelt raw gold in vanilla furnace

Buffer
- Keep and wait for a certain amount of the same item before allowing their extraction, then wait to be fully empty to switch to Insertion/Keep and wait.
Example of use:
I need 15 Grass blocks, the rest will stay on the input slot (top) until the export slot (bottom) is empty.

Dispatcher router
Allow us to use multiblock machines (like pedestals or crafting walls) to craft things
Vacuum router
Allow us to drop and pick up items on the ground as recipe.
Slot router
A test block if this feature can be usefull, it allow us to insert items on specific slots.
RoadMap
In the first place i want to test my implementation.
Then:
- Improve code and algorithm.
- Handle NBT as filter
- Add Energy generator (probably)
- Add Fluid Routers
- Add area block placers based on dispatcher pattern encoder
- Add area block breakers
- Implement transfer router with filters
- Implement phantom blocks (to access tile entities from other blocs)
- Display fake ItemStacks on the Pattern Encoder
- Implement Quantity Upgrade
- Implement Trading station
- Why not merge Items And Fluids
评论 0
登录后参与评分
还没有评论,来抢沙发吧