Drive By Wire — Typewriter
一个适用于 Minecraft 1.21.1 的 NeoForge 模组,它为 Drive By Wire (Sable) 网络添加了一个由键盘驱动的导线信号源,使用了 Create Aeronautics 的打字机机制。
功能说明
添加了 Typewriter Hub(打字机集线器)方块。空手右键点击它即可开始输入——你的按键将被广播为 Drive By Wire 网络上的红石信号,每个按键对应一个独立的频道。再次右键点击以停止输入。
方块
| 方块 |
描述 |
| Typewriter Hub |
将打字机和多频道导线信号源合二为一的方块。 |
按键频道
该集线器为每个按键暴露一个对应的频道:
- 字母
A–Z
- 数字
0–9
- 符号:空格、
'、,、-、.、/、;、=、[、]、\
- 匈牙利语字母:
á, é, í, ó, ö, ő, ú, ü, ű(使用匈牙利语键盘布局时显示相应频道)
- 控制键:Enter(回车)、Tab(制表符)、Backspace(退格)、Delete(删除)、Caps Lock(大写锁定)
- 导航键:方向键、Page Up/Down(上页/下页)、Home、End
- 修饰键:Shift、Ctrl、Alt、Super(超级键)、Menu(菜单键)
当按键被按住时,对应频道处于激活状态(值为 1),松开后变为非激活状态(值为 0)。同一时间只能有一名玩家使用某个集线器;断开连接或失去窗口焦点会重置所有频道。
依赖要求
| 模组 |
版本 |
| NeoForge |
21.1.228+ |
| Simulated (Create: Simulated) |
1.1.3+ |
| Drive By Wire |
0.2.9+ |
| Create |
6.0.10+ |
使用方法
- 在世界中放置一个 Typewriter Hub。
- 从集线器连接导线到你想要控制的设备。
- 空手右键点击集线器——此时你的按键将驱动网络。
- 再次右键点击以断开连接。
选择导线频道
- 手持导线并右键点击 Typewriter Hub 以将其选为信号源。
- 按住 Left Alt 键 0.3 秒以打开半透明的键盘覆盖层。
- 将鼠标悬停在某个按键上,然后释放 Alt 键以选中该导线频道。
- 右键点击目标位置,使用选中的频道进行连接。
将集线器选为导线信号源后,物品栏上方会显示提示,包含当前的快速选择快捷键以及所选频道。
可在 Minecraft 的 Options → Controls → Key Binds(选项 → 控制 → 按键绑定)中重新绑定 Select wire channel(选择导线频道)。
打开 Mods → Drive By Wire - Typewriter → Config(模组 → Drive By Wire - Typewriter → 配置),调整 Channel selection hold time (ms)(频道选择按住时间,毫秒)(默认值:300;范围:0–5000;设为 0 可立即打开)。
点击 Done 保存;新延迟设置无需重启游戏即可生效。
覆盖层使用当前活动的键盘布局,包括支持的匈牙利语字符。
当前选中的频道会以绿色高亮显示;鼠标悬停的按键则以蓝色高亮显示。
在按键区域外释放鼠标或按下 Escape 键可取消操作。该覆盖层仅在接线时可用,在集线器输入模式下不会打开。鼠标滚轮选择功能仍然可用。

关于本项目
本项目在开发过程中得到了 Claude Code (Anthropic) 和 Codex (OpenAI) 的大量协助。它是基于官方的
NeoForge 模组项目模板 (Mod Generator)
迭代构建而成的。
除了初始模板设置外,实现、重构、错误修复、文档编写和验证工作均通过与这些 AI 编码助手协作、并在人类指导下完成开发和优化。
许可证
本项目采用 MIT License(MIT 许可证)授权。
Drive By Wire — Typewriter
A NeoForge addon for Minecraft 1.21.1 that adds a keyboard-driven wire source to the Drive By Wire (Sable) network, using Create Aeronautics's typewriter mechanics.
What it does
Adds a Typewriter Hub block. Right-click it with an empty hand to start typing — your keypresses are broadcast as redstone signals on the Drive By Wire network, one channel per key. Right-click again to stop.
Blocks
| Block |
Description |
| Typewriter Hub |
A typewriter and multi-channel wire source in one block. |
Key channels
The hub exposes a channel for every key:
- Letters
A–Z
- Digits
0–9
- Symbols: Space,
', ,, -, ., /, ;, =, [, ], \
- Hungarian letters:
á, é, í, ó, ö, ő, ú, ü, ű (Channel shows when using a hungarian keyboard layout)
- Control: Enter, Tab, Backspace, Delete, Caps Lock
- Navigation: Arrow keys, Page Up/Down, Home, End
- Modifiers: Shift, Ctrl, Alt, Super, Menu
Each channel is active (1) while the key is held and inactive (0) when released. Only one player can use a hub at a time; disconnecting or losing window focus resets all channels.
Requirements
| Mod |
Version |
| NeoForge |
21.1.228+ |
| Simulated (Create: Simulated) |
1.1.3+ |
| Drive By Wire |
0.2.9+ |
| Create |
6.0.10+ |
Usage
- Place a Typewriter Hub in the world.
- Connect wire from it to whatever you want to control.
- Right-click the hub with an empty hand — your keypresses now drive the network.
- Right-click again to disconnect.
Select a wire channel
- Hold a wire and right-click a Typewriter Hub to select it as the source.
- Hold Left Alt for 0.3 seconds to open a semi-transparent keyboard overlay.
- Move the mouse over a key, then release Alt to select that wire channel.
- Right-click the destination to connect it using the selected channel.
Selecting a hub as the wire source shows a tip above the hotbar with your current
quick-selection shortcut alongside the selected channel.
Rebind Select wire channel in Minecraft's Options → Controls → Key Binds.
Open Mods → Drive By Wire - Typewriter → Config and adjust
Channel selection hold time (ms) (default: 300; range: 0–5000; 0 opens immediately).
Save with Done; the new delay applies without restarting the game.
The overlay uses the active keyboard layout, including supported Hungarian characters.
The current channel is highlighted in green; the hovered key is highlighted in blue.
Release outside a key or press Escape to cancel. The overlay is available while wiring,
and does not open during hub typing. Mouse-wheel selection remains available.

About This Project
This project was developed with substantial assistance from Claude Code (Anthropic) and Codex (OpenAI). It was
built iteratively on top of the official
NeoForge mod project template (Mod Generator).
Beyond the initial template setup, the implementation, refactors, bug fixes, documentation, and validation were
generated and refined through collaborative, human-directed development with these AI coding assistants.
License
This project is licensed under the MIT License
评论 0
登录后参与评分
还没有评论,来抢沙发吧