3D Printer(3D 打印机)
基本信息
| 属性 | 值 |
|---|---|
| TileEntity | li.cil.oc.common.tileentity.Printer |
| 父类 | traits.Environment, traits.Inventory, traits.Rotatable, SidedEnvironment, traits.StateAware, ISidedInventory |
| 设备类型 | Manufacturing(制造设备) |
功能
3D Printer 允许玩家通过 OpenComputers 脚本打印三维物体(方块和物品)。
打印流程
- 设计阶段:在计算机上使用建模工具设计 3D 模型
- 编译阶段:将模型编译为可打印格式
- 打印阶段:通过 Printer 方块消耗材料打印实物
物品栏
Printer 实现了 ISidedInventory 和 traits.Inventory,提供多个物品槽:
- 材料槽:放置 chamelium block(打印材料)
- 输出槽:接收打印完成的物品/方块
- 工具槽:可能的工具更换槽
旋转支持
- 实现了
Rotatable:打印方向可调整
Lua API
local printer = require("component").printer
-- 打印三维模型
printer.reset()
printer.cube(1, 1, 1, 10, 10, 10, "minecraft:stone")
printer.commit(1, 1, 1)
状态
- 实现了
StateAware:有就绪/打印中/完成状态
Chamelium Block
打印所需材料为 Chamelium Block(一种特殊方块),通过以下配方合成:
第三方集成
| 集成 Mod | 集成类型 | 功能 |
|---|---|---|
| NEI | 配方显示 | GUI 处理器和配方显示 |
| BuildCraft | 管道/可控方块 | 物品管道集成 |
- 2× 圆石 + 2× 青色染料 + 1× 青色羊毛 = 1× Chamelium Block