Short Circuit
快速、紧凑且模块化的红石电路设计方式。
以下是使用 Short Circuit 制作的 Bad Apple:
下载
Short Circuit 可在 Modrinth 和 Curseforge 上下载,支持多种加载器,包括 Fabric、Forge、NeoForge 和 Quilt(基于 Fabric)。
你也可以使用 JDK 21 并通过运行以下命令从源代码构建模组:
git clone https://github.com/North-West-Wind/ShortCircuit.git
cd ShortCircuit
./grawdlew build
编译后的模组文件将输出至 {loader}/build/libs/,其中 {loader} 可以是 fabric、forge 或 neoforge。
用法
我制作了一个视频教程,如果你更喜欢有视觉演示的话。
该模组提供 4 种可合成的物品:
- Circuit(电路)
- Poking Stick(探测棒)
- Truth Assigner(真值表分配器)
- Labelling Stick(标签棒)
Circuit

电路物品看起来像一个带有绿色火把的中继器。放置后,它显示为一个内部铺有地毯的玻璃块。
这是一个未初始化的电路。要使其工作,请手持 Poking Stick(探测棒),并对其右键点击。
你将进入电路内部。
内部有 6 面墙,中间分别标记为 U(上)、D(下)、L(左)、R(右)、F(前)、B(后)。 这些方向对应你放置电路方块时的朝向。
使用 Poking Stick(探测棒)通过潜行右键点击墙壁,根据需要将其标记为输入或输出。 输入是外部红石信号传入的地方,输出则是电路内部信号传向外界的地方。
在内部构建你的电路。完成后,你可以使用 Poking Stick(探测棒)右键点击墙壁离开内部。
出来后,用空手右键点击电路方块。 如果电路没有违反规则,你应该能在方块中看到你在电路内部放置的组件。 此电路现在已准备好接收信号!
复制
你可以通过右键点击放置在电路方块上的电路物品来复制电路。
Poking Stick

正如在电路部分介绍的那样,Poking Stick(探测棒)是与电路交互的主要方式。
不过,它还有其他用途。
通过潜行右键点击电路,你可以隐藏其内部组件。 当你渲染的动态电路过多可能导致卡顿的时候,这非常有用。
你还可以使用 Poking Stick(探测棒)设置电路的外部尺寸。 右键点击该物品指向虚空,可以在 4 到 256 之间循环切换尺寸(仅限 2 的幂次方)。
Truth Assigner

这是 Short Circuit 中“快速”的部分。
由于电路是基于现有红石组件构建的,它们会有一定的延迟。
Truth Assigner(真值表分配器,又名洗衣机)解决了这个问题。
Truth Assigner 是一台模拟动态(普通)电路以创建集成电路(IC)的机器。 它会记录动态电路的输出并为其构建真值表,因此被称为真值表分配器。
集成电路是 Truth Assigner 转换后的产物。 集成电路的主要优势在于它们是 0 刻的,意味着它们能即时响应外部源,并且在发生变化时也会立即更新相邻方块。
然而,需要注意的是,集成电路并不总是最佳选择。 在以下两种主要情况下,你不应该将动态电路转换为 IC。
- 延迟是有意为之
- 电路包含记忆组件
第 1 点显而易见。由于 IC 是 0 刻的,转换后不会保留任何延迟。 第 2 点仅指电路的输出是否依赖于电路内部非恒定状态的方块。 例如,如果电路的输出依赖于电路内部的铜灯泡,且该铜灯泡会根据不同的输入发生变化,那么它就是记忆组件。
复制
与动态电路类似,集成电路也可以通过右键点击方块上的电路物品以相同方式进行复制。 任何电路物品都可以在动态电路和集成电路之间切换。
Truth Assigner 设置
为了输出正确的集成电路,还需要对 Truth Assigner 进行配置。
第一个数字字段是最大延迟。它是一个每秒(游戏)刻数的数值。 在每次模拟迭代中,如果电路的输出在最大延迟后仍未改变,其输出将被强制记录。
最大延迟下方的按钮是记录模式。它可以在“首次变化”或“完整延迟”之间切换。 “首次变化”会导致 Truth Assigner 在任何一个输出发生变化后立即记录输出, 而“完整延迟”则会让它等待完整的最大延迟持续时间后再记录输出。
最大延迟旁边的按钮是位按钮。它在 4、2 和 1 位之间循环切换。 由于红石信号的强度范围可以从 0 到 15,它可以表示为一个 4 位数字。 在模拟过程中,如果设置为 4 位,将尝试所有可能的信号强度组合。 但是,如果一个电路有很多输入面,这可能需要很长时间。 例如,一个 3 输入电路将进行 16x16x16=4096 次迭代,即使最大延迟仅为 1 刻,耗时也将超过 3 分钟。
对于 3 输入电路,使用 2 位将导致 4x4x4=64 次迭代,而使用 1 位将导致 2x2x2=8 次迭代。 如果你的电路不依赖信号强度,请考虑使用 1 位或 2 位。
标签棒

标签棒是一种用于更改电路颜色的物品。
这对集成电路(IC)特别有用,因为它们都拥有完全相同的模型。
通过更改颜色,玩家可以区分具有不同功能的电路。
右键点击任何电路方块,该方块的颜色会在 16 种染料颜色之间循环切换。 在蹲下时进行此操作将以相反顺序循环切换颜色。
该棒也可以用于电路方块内部的墙壁上。 右键点击墙壁可以切换其注释显示状态。
已知问题
- 当使用 MoreCulling 模组时,集成电路的方块模型可能会导致玩家能够透视世界。
- 集成电路无法直接向电路墙壁输出信号。
报告错误
请直接使用 GitHub 上的 Issues 功能。
为了让我更容易修复问题,如果你遇到了看似非预期的行为,请尝试先执行以下操作:
- 创建不同变体的有问题的电路。这可以缩小故障范围。变体示例包括:
- 交换组件顺序
- 更改输入/输出侧
- 复制该电路并放置多个副本。检查是否有任何一个能正常运行。
如果你确认某个电路持续存在 bug,请在错误报告中附上该电路。
灵感来源
本模组受到另一个模组 Compact Machines 以及现实世界计算机工程的启发。
Compact Machines
这是一个允许玩家创建内部体积更大的单个方块的模组。 玩家可以通过机器的侧面传递物品、流体和能量。
Short Circuit 将此概念应用于红石系统。
计算机工程
这不仅限于计算机工程,还包括一般的电路设计。 在现实世界的电路设计中,电路通常由更小、更简单的电路组成。
一些示例:
- 一位全加器(FA),它将 3 个一位值相加并输出它们的总和与进位,使用了 2 个 XOR 门、2 个 AND 门和 1 个 OR 门。
- 算术逻辑单元(ALU)基本上是由 AND、OR、NOT、XOR 逻辑门、全加器和多路复用器(MUX)组合而成。
- CPU 内部结合了 ALU、内存和其他一些寄存器来发挥作用。
正如这些示例所示,我们利用先前设计的电路来创建更新、更好、更复杂的电路。 Short Circuit 旨在通过将电路压缩到 1 个方块中并使其可克隆来实现这一目标,从而让电路得以重复使用。
支持
如果你觉得我的项目很棒,考虑在 Ko-fi 上支持我!
Short Circuit
Fast, compact, modular way to design redstone circuits.
Here's Bad Apple using Short Circuit:
Downloads
Short Circuit is available for downloads on Modrinth and Curseforge, for multiple mod loaders including Fabric, Forge, NeoForge and Quilt (uses Fabric).
You may also build the mod from source using JDK 21 and by running the following:
git clone https://github.com/North-West-Wind/ShortCircuit.git
cd ShortCircuit
./grawdlew build
Compiled mod files will be output at {loader}/build/libs/, where {loader} can be either fabric, forge or neoforge.
Usage
I have made a video for this, if you prefer having some visuals.
This mod comes with 4 items you can craft:
- Circuit
- Poking Stick
- Truth Assigner
- Labelling Stick
Circuit

A circuit item looks like a repeater with green torches. When placed, it is shown as a glass block with a carpet inside.
This is an uninitialized circuit. To make it work, hold the Poking Stick, and right-click on it.
You will be brought to the inside of the circuit.
The inside has 6 walls, with the middle of them labelled U (up), D (down), L (left), R (right), F (front), B (back). They relate to the direction you placed the circuit block in.
Mark the sides as input or output as you need with the Poking Stick by crouch right-clicking the wall. Input is where external redstone signals will be passed into, and output where signals from inside the circuit will be output to the world.
Build your circuit inside. Once you are done, you can leave the inside by right-clicking the wall with the Poking Stick.
When you get out, right-click the circuit block with an empty hand. If the circuit doesn't break the rules, you should see the components you placed inside the circuit in the block. This circuit is now ready to receive signals!
Duplication
You can duplicate circuits by right-clicking circuit items on a placed circuit block.
Poking Stick

As introduced in the circuit section, the Poking Stick is the main way to interact with the circuit.
However, there are additional uses for it.
By crouch right-clicking a circuit, you can hide its inner components. This is useful when you have too many dynamic circuits rendering, which may cause some lag.
You can also set the exterior size of a circuit using the Poking Stick. By right-clicking the item towards nothing, you can cycle sizes between 4 and 256 (only powers of 2).
Truth Assigner

This is the "fast" part of Short Circuit.
As circuits are made base on existing redstone components, they will have a certain amount of delay.
The Truth Assigner (aka the washing machine) fixes this problem.
The Truth Assigner is a machine that simulates dynamic (normal) circuits to create integrated circuits (ICs). It records the output of the dynamic circuit and constructs a truth table for it, thus being called the Truth Assigner.
Integrated circuits are the outputs of Truth Assigner's conversion. The main advantage of integrated circuits is that they are 0-tick, meaning they activate instantly from external sources, and also immediately update neighbor blocks if they changed.
However, one should be aware that, integrated circuits are not always the best way. Under 2 main situations, you should not convert a dynamic circuit to an IC.
- Delay is intentional
- The circuit has a memory component
1 is trivial. As ICs are 0-tick, no delay is preserved after the conversion. 2 simply refers to if the output of the circuit depends on states of blocks inside the circuit that are not constant. For example, if the output of the circuit depends on a copper bulb inside the circuit, and said copper bulb can change from receiving different inputs, then it is a memory component.
Duplication
Similar to dynamic circuits, integrated circuits can be duplicated in the same way, by right-clicking circuit items on the block. Any circuit items can change between dynamic or integrated circuits.
Truth Assigner Settings
The Truth Assigner also needs to be configured in order to output the correct integrated circuit.
The first number field is the maximum delay. It is a number in (game) ticks per second. In each simulation iteration, if the output of the circuit doesn't change after the max delay, its output will be forcefully recorded.
The button below max delay is the record mode. It can be toggled between "First Change" or "Full Delay". "First Change" causes the Truth Assigner to record the output as soon as one of the outputs changed, while "Full Delay" makes it wait for the full max delay duration to record the output.
The button next to max delay is the bit button. It cycles between 4, 2 and 1-bit. As redstone signal can have strength ranging from 0 to 15, it can be represented as a 4-bit number. During simulation, all possible signal strength combinations will be tried if it is set to 4-bit. However, if a circuit has a lot of input sides, it can take a long time. For example, a 3-input circuit will take 16x16x16=4096 iterations, which even with 1 tick max delay will still cost more than 3 minutes.
Using 2-bit for 3-input will result in 4x4x4=64 iterations, while using 1-bit will result in 2x2x2=8 iterations. If your circuit is not signal strength dependant, consider using 1 or 2-bit.
Labelling Stick

The Labelling Stick is an item for changing colors of circuits.
This is particularly useful for ICs, as all of them have the exact same model.
Changing the color allow players to distinguish between circuits with different functionality.
By right-clicking on any circuit block, the block will cycle through the 16 dye colors. Doing so while crouching will cycle them in reverse.
The stick can also be used on the walls inside the circuit block. By right-clicking on the wall, it will toggle its annotation.
Known Issues
- The block model of integrated circuit can be used to see through the world when MoreCulling is used.
- Integrated circuits cannot output directly to walls of circuits.
Reporting Bugs
Just use the issues tab on GitHub.
To make it easier for me to fix things, if you encounter a seemingly unintentional behaviour, try to do the following first:
- Create different variations of the buggy circuit. This can narrow down what actually went wrong. Examples of variation:
- Swapping component order
- Changing input/output sides
- Duplicate the circuit and place down multiple of them. Check if any of them run correctly.
If you confirm that a circuit is consistently buggy, please also include the circuit in the bug report.
Inspiration
This mod is inspired by another mod, Compact Machines, and real world computer engineering.
Compact Machines
Is a mod that allows players to create single blocks that houses a bigger inside volume. Players can pass item, fluid and energy through the machine's side.
Short Circuit takes this concept and apply it for redstone.
Computer Engineering
It is not just computer engineering, but circuit design in general. In real world circuit design, a circuit is often composed of smaller and simpler circuits.
Some examples:
- A 1-bit full adder (FA), which adds 3 1-bit values together and output their sum and carry, uses 2 XOR gates, 2 AND gates and 1 OR gate.
- In an arithmetic and logic unit (ALU), it is basically a combination of AND, OR, NOT, XOR logic gates, a full adder, and a multiplexer (MUX).
- Inside a CPU, it combines the ALU, memory and some other registers to function.
As these examples have shown, we use circuits that have been previously designed to create newer, better, more complex circuits. Short Circuit aims to achieve that by squashing circuits into 1 block, and making them cloneable, so that circuits can be reused.
Support
If you find my projects great, consider supporting me on Ko-fi!
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Short Circuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
错误修复
- 未初始化的电路现在会掉落物品 (#24)
- NeoForge 版本现在使用半透明渲染电路方块 (#25)
早期版本已修复的问题
- 修复卸载崩溃问题 (#15)
- 修复真值表生成不一致的问题 (#19)(可能在 v1.0.9 中已修复)
已知问题
- Truth Assigner 的“首次更改”模式实际上不会在首次更改时触发,而是等待完整延迟时间
- Forge 可能因新的项目配置而无法正常工作。如果遇到此情况,请报告
- 将很快添加对 26.1.2 和 26.2 的支持
项目重构
本项目现在支持多加载器和多版本!它使用了与 Autofish for Everyone 相同的设置。如果你是模组开发者且对此感兴趣,欢迎查看。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧