跳到正文

CC;CPG: Pinout

作者:Breakdown

Adds the Pinout, a programmable set of pins that can be used to allow computers to control Create: Power Grid electrical systems directly.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

What is this mod?
This mod adds one block, the Pinout, a CC:Tweaked peripheral that is meant to bridge compatibility between CC:Tweaked and Create: Power Grid.

What is the pinout?
The pinout is a cc:tweaked peripheral with 9 Create: Power Grid electrical pins

Who is it for?
The pinout is for people who want to create more complex controlled systems without resorting to inventing analog hardware that can do the job.

What features does it have?

  • Adds one new block, the Pinout.

The pinout provides:

  • A CC:Tweaked API for computer control.
  • Allows Lua programs to connect or disconnect pins 1–8 to a shared common pin .
  • Allows Lua programs to measure voltages across arbitrary pins.

CC:Tweaked API
The Pinout exposes several Lua functions, including:
connectPin(pin)
disconnectPin(pin)
setPins(table)
setByte(value)
pinsConnected()
pinsVoltage(referencePin)
comparePin(pin, referencePin)
pinLayout()
This makes it possible to control individual pins, update several pins at once, output an 8-bit value, or read voltage differences between pins.

Mod code partially created with Generative AI.

常见问题

CC;CPG: Pinout 支持哪些 Minecraft 版本?

CC;CPG: Pinout 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

CC;CPG: Pinout 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分