
Lake's CC Additions 为 ComputerCraft 提供了一种将物理物品读取为数据,并将数据还原为物理物品的途径。
扫描仪

这是一个带有单个槽位的周边方块。在其中放入物品后,计算机可以读取它:
- 打印纸 - 包含完整文本和逐字符颜色,可直接用于 term.blit
- 书籍 - 支持笔与书及已签署的书籍,页面以纯文本形式呈现
- 已填充地图 - 包含 128x128 图像、元数据以及命名旗帜标记
- 潜影盒 - 无需打开即可列出内容物
- 曝光照片 - 像素、胶片类型、摄影师(需 Exposure 1.9+)
- 任意物品 - 完整的 NBT 数据作为 Lua 表格提供,并附带 SHA-256 指纹
用于验证两份文档是否完全一致
它也支持反向操作:createPrintout() 可以直接从 Lua 构建打印页,包括逐字符颜色——这是 CC 打印机本身无法做到的,并且这使得灰度照片打印成为可能(通过抖动处理实现最多四种墨水色调,或将其分散在页面网格上作为海报打印)。
扫描仪还会触发事件。当槽位发生变化时,计算机会收到通知;玩家手持空手右键点击会发送其名称和 UUID——只需几行 Lua 代码即可构建门锁、打卡站或身份验证系统。
漏斗可以从上方进料并从下方取物。
文件文件夹

一种便携式容器,仅容纳打印纸和纸张——共 27 个槽位,每个槽位可堆叠 16 组。
口袋多功能工具

口袋电脑只有一个升级槽位。这个升级组件同时具备末地 modem 和扬声器的功能——在一个口袋电脑上实现无限范围的 rednet 通信和音频输出,可通过 peripheral.find 分别按两个名称查找。
钢笔

钢笔是一款方便的工具,可用于在页面上做标记。这增加了对打印文档的另一层交互方式。像素大小会自动吸附到打印文档的网格上,钢笔提供三种颜色:蓝色、红色和黑色。
印章

印章与钢笔类似,但允许你放置预配置的徽章、印章、徽标或其他任何你想要的图案。非常适合用于签署官方文件。
依赖项
Minecraft 1.20.1,Forge,CC:Tweaked 1.119.0+。Exposure 1.9+ 为可选依赖,仅在进行照片扫描时需要。
完整文档:[lakehouse.gg]

Lake's CC Additions gives ComputerCraft a way to read physical items as data,
and to turn data back into physical items.
THE SCANNER

A peripheral block with a single slot. Put something in it and a computer can
read it:
- Printouts - full text and per-character colors, ready for term.blit
- Books - book & quill and signed books, pages as plain text
- Filled maps - the 128x128 image, metadata, and named banner markers
- Shulker boxes - contents listed without opening them
- Exposure photographs - pixels, film type, photographer (Exposure 1.9+)
- Any item at all - complete NBT as Lua tables, plus a SHA-256 fingerprint
for verifying that two documents are identical
It works in the other direction too: createPrintout() builds printed pages
directly from Lua, including per-character colors - which the CC printer can't
do, and which makes greyscale photo prints possible (dithered, up to four ink
tones, or spread across a grid of pages as a poster).
The scanner also fires events. Computers are told when the slot changes, and
sneak-clicking with an empty hand sends the player's name and UUID - enough to
build door locks, clock-in stations, or ID checks with a few lines of Lua.
Hoppers can feed from above and take from below.
THE DOCUMENT FOLDER

A portable container that holds only printouts and paper - 27 slots, 16 per
slot.
THE POCKET MULTITOOL

Pocket computers have one upgrade slot. This upgrade is an ender modem and a
speaker at the same time - unlimited-range rednet and audio in one pocket
computer, found by peripheral.find under either name.
THE PEN

The Pen is a handy tool which lets you mark up pages. This adds another layer of interaction with printed documents. The pixel size snaps to printed document's grid, and the pen comes in three colors: Blue, Red, and Black.
THE STAMP

The Stamp is similar to the Pen, however the stamp allows you to place pre-configured emblems, seals, logos, or whatever else you want. Useful for signing official documents.
REQUIREMENTS
Minecraft 1.20.1, Forge, CC:Tweaked 1.119.0+. Exposure 1.9+ is optional and
only needed for photograph scanning.
Full documentation: [lakehouse.gg]
评论 0
登录后参与评分
还没有评论,来抢沙发吧