Factory Mechanics
Factory Mechanics 添加了由红石驱动的方块,允许自动化资源采集、批量处理物品以及构建复杂装置。
深受 Create Mod 启发。
方块
所有方块都需要 红石信号 才能运行。
Copper Fan
生成定向气流,将物品推送并处理至多 7 个方块远的位置。
合成:
催化剂:
要处理物品,需将风扇的气流吹过风扇前方的以下催化剂方块之一:
- 清洗: 水、湿海绵、含水方块
- 熏制: 火、营火
- ** blast(炸裂):** 岩浆、岩浆块
- 驱灵: 灵魂火、灵魂营火
- 冷冻: 雪粉
机制:
- 处理速度: 使用单个风扇时,所有处理类型耗时 16 秒。
- 叠加风扇: 将多个(带有相同催化剂的)风扇对准同一物品会缩短处理时间。例如,2 个风扇 将时间减半至 8 秒,而 4 个风扇 可在 4 秒 内完成处理。
- 配方连锁: 如果处理后的物品是另一个配方的有效原料(例如 圆石 → 石头 → 平滑石头),它将立即继续处理。使用原版 红石漏斗过滤器 可以在所需阶段提取物品。
配方:
清洗

熏制

Blast(炸裂)

驱灵

冷冻

Mechanical Drill
通电时会挖掘其正前方的方块。
合成:
不可破坏的方块:
- 空气、水、岩浆、火
- 不可摧毁 & 技术性方块
- 传送门方块
- 其他:黑曜石、深板岩砖、远古残骸、下界合金块、信标、宝库、试炼刷怪箱、龙蛋
Mechanical Saw
砍伐其正前方的树木或蘑菇方块。当切割树干或巨型蘑菇的基部时,锯会自动砍倒整个结构。
合成:
机制:
- 掉落物: 巨型蘑菇掉落其菌盖和菌柄方块。树木掉落原木,同时树叶被销毁。
- 连接的植被: 当与已砍倒的结构相连时,树叶、蘑菇方块和疣块会自动被破坏,前提是另一个原木、木头或红树根方块位于直接破坏的方块的相邻位置或上方。
可直接破坏的方块:
Millstone
研磨从上方插入的物品,显示粒子效果,并在完成后从下方掉落处理后的输出物。
合成:
机制:
- 输入: 可以通过将物品投掷到磨盘上方来插入物品(只要输入缓冲区为空,它就会拾取任何物品),或者通过漏斗直接从顶部喂入。
- 输出: 处理后的物品会自动从底部弹出。在下方至少留出 1 个方块的开放空间,或者直接放置一个漏斗。如果在磨盘正下方放置实心方块,弹出的物品可能会卡在地面中。
- 处理速度: 所有粉碎配方耗时 3 秒完成。
- 无效物品: 目前没有有效粉碎配方的物品会原样穿过。
磨盘使用研钵作为其基础方块,因为它与模型尺寸紧密匹配且不像墙壁那样留下空隙。因此,作为一个不想要的副作用,右键点击磨盘会打开研钵 UI。但是,不要误以为该 UI 是磨盘的输入和输出,它与磨盘的功能无关。研钵仅用作碰撞基础方块,没有其他作用。
配方:
粉碎

Mechanical Harvester
收割其正前方所有成熟的作物,将物品掉落到地面上,并自动将作物重置为初始生长阶段。
合成:
收割与重种:
- 小麦、土豆、胡萝卜、甜菜根
- 下界疣
- 甜浆果丛、洞穴藤蔓(发光浆果)
- 野花、粉色花瓣
破坏:
- 甘蔗、海带、小型垂滴叶
- 扭曲藤蔓、诡异藤蔓
- 花朵、落叶层、枯死的灌木
- 树苗
- 小型蘑菇
- 树叶(掉落方块本身)
反馈与支持
如果您想提供反馈、提问或留下建议,请前往 Planet Minecraft 页面。
其他信息
自动化与农场构思
Factory Mechanics 可以与红石结合使用,构建完全自动化的资源农场和机械装置。
建造构思:
- 圆石与资源农场: 将机械钻头放置在圆石生成器前方,即可搭建一个简单的全自动圆石农场。配合研钵粉碎掉落物,并使用铜风扇清洗、冶炼或吹干,将其转化为铁、金、铜等各种资源。
- 隧道钻机(PurpurMC): 如果您在 PurpurMC 服务器上游玩,尝试在服务端配置中增加活塞推力上限。然后可以将机械钻头附加到原版飞行机器上,构建庞大且自动化的隧道钻探装置。
性能与优化
尽管 Factory Mechanics 经过了大量优化,但在可能的情况下使用原版机制始终能提供最优质的服务器性能。避免将这些自定义方块用于原版替代品已经可以处理的琐碎任务。
最佳实践:
- 小规模熔炼与烟熏: 对于标准的单物品处理,请使用熔炉,而不是单纯依赖铜风扇。
- 破坏方块: 虽然 TNT 复制器可以在原版中替代机械钻头,但钻头是一种更可预测、非破坏性的替代方案,特别是在默认禁用 TNT 复制的 PaperMC 服务器上。
- 提升物品与实体: 避免使用朝上的铜风扇作为电梯。请改用水泡柱或强效硫磺喷气口。
- 放置方块与种植作物: 如果您在 Minecraft 26.4 或更高版本上游玩,且仅需放置方块或播种,建议使用 More Dispenses 数据包。它利用原版的发射行为来放置方块和种植作物,具有零刻钟、零命令、零实体检测的特点,比部署者(未来更新)显著更快且更具性能优势。
未来特性
Factory Mechanics 是对原始数据包的全面重做。因此,前几代版本中的某些特性和方块仍在重新设计和重新实现中。
计划中的特性与方块:
-
铜风扇:
- 方块阻挡: 目前,气流会穿过所有方块。如果不会影响服务器性能,可能会在未来的更新中加入对阻挡实心方块的检测。
- 实体交互: 允许气流除了推动实体外,还对生物和玩家施加特殊效果(如冰冻、燃烧或灭火)。
-
机械收割机:
- 扩展作物支持: 添加对可可豆、西瓜茎和南瓜茎的收割支持。
-
研钵:
- 侧向漏斗输入: 允许漏斗从侧面而非仅从顶部向研钵插入物品。
- 无效物品处理: 行为可能会更新为在处理过程中销毁无效物品,而不是让其原样通过。
- 红石检测优化: 用直接检查周围红石电源和半连接的当前方块交换方法替换。
-
计划中的方块:
- 部署者: 模拟玩家右键操作以放置方块、种植作物和树苗,或在方块和实体上使用物品。
- 机械犁: 自动将泥土和草方块翻耕为耕地,并清除前方的可通行方块。
- 机械压机: 压缩物品。目前处于规划阶段,其配方仍在考虑之中,因为压缩已由工匠台处理。
- 溜槽: 批量向下运输和分发物品。目前尚在考虑中,因为投掷器和漏斗已经能够处理垂直的物品运输。
- 机械搅拌机: 混合其下方陶罐内的原料。目前处于规划阶段,因为陶罐对于加热配方存在挑战。陶罐不支持物品插入,且装满岩浆的陶罐会烧毁所有物品。
技术细节
实现说明:
- 基础方块与碰撞箱: 大多数方块使用铁活板门作为其底层基础方块,这导致碰撞箱略小。
- 电力检测: 大多数方块的红石电力通过铁活板门进行检测。然而,研钵依靠不断将其磨石基础方块与漏斗交换来进行检测。
自定义配方
Factory Mechanics 支持通过函数标签和存储区从其他数据包添加自定义配方。配方支持物品标签、输入/输出数量、掉落几率以及物品组件。
工作原理:
在执行 /reload 时,该数据包会在存储区 sfm:recipes 中重置其配方列表,并执行 #sfm:recipes/register 函数标签以填充它们。
要添加您自己的配方,请在另一个数据包的 data/sfm/tags/function/recipes/register.json 函数标签文件中追加您的函数:
{
"values": [
"namespace:recipes/register/splashing"
]
}
示例:
在您注册的函数内部,将配方对象追加到 sfm:recipes:
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:gravel"},results:[{id:"minecraft:flint",chance:0.25,count:2},{id:"minecraft:iron_nugget",chance:0.125}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"#minecraft:beds"},results:[{id:"minecraft:white_bed"}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:blaze_powder",count:2},results:[{id:"minecraft:blaze_rod"}]}
`data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:stone"},results:[{id:"minecraft:diamond",chance:0.5,components:{"minecraft:custom_name":{text:"Custom Name"}}}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:potion",components:{"minecraft:potion_contents":{potion:"minecraft:water_breathing"}}},results:[{id:"minecraft:prismarine_shard",count:2}]}`
对于现有配方的修改,将执行 #sfm:recipes/modify 函数标签。
要编辑或向现有配方中添加内容,请在另一个数据包中将你的函数追加到 data/sfm/tags/function/recipes/modify.json 函数标签文件中:
{
"values": [
"namespace:recipes/modify/crushing"
]
}
示例:
在你的注册函数内部,修改 sfm:recipes 中的配方对象:
data modify storage sfm:recipes crushing[{ingredient:{id:"minecraft:iron_ore"}}].results append value {id:"minecraft:experience_bottle",chance:0.75}
在数据包加载时,Factory Mechanics 会验证每个配方的原料物品 ID,以确保物品处理不受中断。无效的原料将被跳过并记录为错误。
Factory Mechanics
Factory Mechanics adds redstone-powered blocks that allow the automation of resource gathering, bulk processing of items, and construction of complex contraptions.
Heavily inspired by the Create Mod.
Blocks
All blocks require a redstone signal to operate.
Copper Fan
Generates directional air streams to push and process items up to 7 blocks away.
Crafting:
Catalysts:
To process items, blow the fan's air stream through one of the catalyst blocks below in front of the fan:
- Washing: Water, Wet Sponge, Waterlogged Blocks
- Smoking: Fire, Campfire
- Blasting: Lava, Magma Block
- Haunting: Soul Fire, Soul Campfire
- Freezing: Powdered Snow
Mechanics:
- Processing Speed: All processing types take 16 seconds with a single fan.
- Stacking Fans: Aiming multiple fans (with the same catalyst) at the same item divides the processing time. For example, 2 fans cut the time in half to 8 seconds, and 4 fans process items in 4 seconds.
- Recipe Chaining: If a processed item is a valid ingredient for another recipe (e.g. Cobblestone → Stone → Smooth Stone), it will immediately continue processing. Use a vanilla redstone hopper filter to extract items at the desired stage.
Recipes:
Washing

Smoking

Blasting

Haunting

Freezing

Mechanical Drill
Mines the block directly in front of it when powered.
Crafting:
Unbreakable Blocks:
- Air, Water, Lava, Fire
- Indestructible & Technical Blocks
- Portals Blocks
- Others: Obsidian, Reinforced Deepslate, Ancient Debris, Netherite Block, Beacon, Vault, Trial Spawner, Dragon Egg
Mechanical Saw
Chops down wood or mushroom blocks in front of it. When cutting the base of a tree or giant mushroom, the saw fells the entire structure automatically.
Crafting:
Mechanics:
- Drops: Giant mushrooms drop both their cap and stem blocks. Trees drop their logs while their leaves are destroyed.
- Connected Foliage: Leaves, mushroom blocks, and wart blocks are broken automatically when connected to the felled structure, provided another log, wood, or mangrove root block is adjacent to or above the block directly broken.
Directly Breakable Blocks:
- Logs & Wood (including Stripped variants)
- Mangrove Roots
- Mushroom Stems
Millstone
Grinds items inserted from above, displaying particles and dropping the processed output out from underneath after completion.
Crafting:
Mechanics:
- Input: Items can be inserted either by dropping them on top of the Millstone (it will pick up any item as long as its input buffer is empty) or by feeding them directly from the top via a hopper.
- Output: Processed items are automatically ejected from the bottom. Leave at least one block of open space or place a Hopper directly underneath. If a solid block is placed directly below the Millstone, ejected items may glitch through the floor.
- Processing Speed: All crushing recipes take 3 seconds to complete.
- Invalid Items: Items without a valid crushing recipe currently pass through unchanged.
The Millstone uses a Grindstone for its base block as it closely matches the model's dimensions without leaving gaps unlike walls. So as a unwanted side effect, right-clicking the Millstone will open the Grindstone UI. However, do not mistake the UI for Millstone input & output, it is not relevant to the function of the Millstone. The Grindstone only serves as a collision base block and nothing else.
Recipes:
Crushing

Mechanical Harvester
Harvests all mature crops directly in front of it, dropping the items onto the ground and automatically resetting the crops to their initial growth stage.
Crafting:
Harvests & Replants:
- Wheat, Potatoes, Carrots, Beetroot
- Nether Wart
- Sweet Berry Bushes, Cave Vines (Glow Berries)
- Wildflowers, Pink Petals
Breaks:
- Sugar Cane, Kelp, Small Dripleaf
- Twisting Vines, Warped Vines
- Flowers, Leaf Litter, Dead Bushes
- Saplings
- Small Mushrooms
- Leaves (drops the block)
Feedback & Support
Head over to the Planet Minecraft page if you want to give feedback, ask questions, or leave suggestions.
Additional Information
Automation & Farm Ideas
Factory Mechanics can be combined with redstone to build fully automated resource farms and contraptions.
Build Ideas:
- Cobblestone & Resource Farm: Place a Mechanical Drill facing a cobblestone generator for a simple automatic cobblestone farm. Pair it with Millstones to crush and Copper Fans to wash, blast, or haunt the drops into various resources such as iron, gold, and copper.
- Tunnel Bore (PurpurMC): If you play on a PurpurMC server, try increasing the piston push limit in the server config. Mechanical Drills can then be attached to vanilla flying machines to build massive, automated tunnel-boring contraptions.
Performance & Optimization
While Factory Mechanics is heavily optimized, using vanilla mechanics where possible will always provide the best server performance. Avoid overusing these custom blocks for mundane tasks that vanilla alternatives can already handle.
Best Practices:
- Small Scale Smelting & Smoking: Use Furnaces for standard single-item processing rather than relying solely on Copper Fans.
- Block Breaking: While TNT dupers can replace Mechanical Drills in vanilla, drills are a more predictable, non-destructive alternative, especially on PaperMC servers where TNT duping is disabled by default.
- Lifting Items & Entities: Avoid using upward-facing Copper Fans as elevators. Use water bubble columns or potent sulfur geysers instead.
- Placing Blocks & Planting Crops: If you play on Minecraft 26.4 or later and only need to place blocks or plant seeds, consider using the More Dispenses datapack. It leverages vanilla dispense behaviors to place blocks and plant crops with zero ticking, zero commands, and zero entity checks, making it significantly faster and more performant than deployers (future update).
Future Features
Factory Mechanics is a complete overhaul of the original data pack. As a result, several features and blocks from the previous iteration are still being reworked and re-implemented.
Planned Features & Blocks:
-
Copper Fan:
- Block Obstruction: Currently, air streams pass through all blocks. Detection for obstructing solid blocks may be considered for a future update, provided it does not negatively impacting server performance.
- Entity Interactions: Allow air streams to apply special effects (such as freezing, burning, or extinguishing) to mobs and players in addition to pushing them.
-
Mechanical Harvester:
- Expanded Crop Support: Add harvesting support for Cocoa Beans, Melon Stems, and Pumpkin Stems.
-
Millstone:
- Side Hopper Input: Allow hoppers to insert items into the Millstone from its sides in addition to the top.
- Invalid Item Handling: Behavior may be updated to destroy invalid items upon processing rather than passing through unchanged.
- Redstone Detection Optimization: Replace the current block-swapping method with direct checks for surrounding redstone power sources and quasi-connectivity.
-
Planned Blocks:
- Deployer: Simulates player right-click actions to place blocks, plant crops & saplings, or use items on blocks and entities.
- Mechanical Plough: Automatically tills dirt and grass blocks into farmland and clears passable blocks in front of it.
- Mechanical Press: Compresses items. Currently under planning, its recipes are still being considered, as compacting is already handled by Crafters.
- Chute: Transports and dispenses items downwards in bulk. Currently under consideration, as Droppers and Hoppers already handle vertical item transport.
- Mechanical Mixer: Mixes ingredients inside a Cauldron below it. Currently under planning, as Cauldrons present challenges for heated recipes. Cauldrons do not handle item insertion and lava-filled cauldrons burn all items.
Technical Details
Implementation Notes:
- Base Blocks & Collisions: Most blocks uses Iron Trapdoors as its underlying base block, which results in slightly smaller collision boxes.
- Power Detection: Redstone power for most blocks are checked through Iron Trapdoors. However, Millstones rely on constantly swapping its Grindstone base block with a Hopper for detection.
Custom Recipes
Factory Mechanics supports custom recipe additions from other data packs via function tags and storage. Recipes support item tags, input/output counts, drop chances, and item components.
How It Works:
On /reload, the data pack resets its recipe lists in storage sfm:recipes and executes #sfm:recipes/register function tag to populate them.
To add your own recipes, append your function to data/sfm/tags/function/recipes/register.json function tag file in another data pack:
{
"values": [
"namespace:recipes/register/splashing"
]
}
Examples:
Inside your registered function, append recipe objects to sfm:recipes:
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:gravel"},results:[{id:"minecraft:flint",chance:0.25,count:2},{id:"minecraft:iron_nugget",chance:0.125}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"#minecraft:beds"},results:[{id:"minecraft:white_bed"}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:blaze_powder",count:2},results:[{id:"minecraft:blaze_rod"}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:stone"},results:[{id:"minecraft:diamond",chance:0.5,components:{"minecraft:custom_name":{text:"Custom Name"}}}]}
data modify storage sfm:recipes splashing append value {ingredient:{id:"minecraft:potion",components:{"minecraft:potion_contents":{potion:"minecraft:water_breathing"}}},results:[{id:"minecraft:prismarine_shard",count:2}]}
For the modification of existing recipes, #sfm:recipes/modify function tag is executed to edit them.
To edit or add to existing recipes, append your function to data/sfm/tags/function/recipes/modify.json function tag file in another data pack:
{
"values": [
"namespace:recipes/modify/crushing"
]
}
Examples:
Inside your registered function, modify recipe objects in sfm:recipes:
data modify storage sfm:recipes crushing[{ingredient:{id:"minecraft:iron_ore"}}].results append value {id:"minecraft:experience_bottle",chance:0.75}
On data pack load, Factory Mechanics validates the ingredient item ID of each recipe to ensure uninterrupted item processing. Invalid ingredients will be skipped and logged as an error.
评论 0
登录后参与评分
还没有评论,来抢沙发吧