TrafficCraft: 交通灯倒计时
这是 TrafficCraft(由 MrJulsen 制作)的一个客户端 Fabric 附加组件。它为交通灯添加了倒计时计时器叠加层——就像现实世界中带有倒计时显示的交通信号灯一样。
功能说明
此模组直接在交通灯本身上渲染七段数码管倒计时,显示距离下一阶段变化还有多少秒。它会读取每个交通灯的排班表(或由控制器远程控制时进行观察),并在相应的段上显示计时器:
- 三段式信号灯 — 计时器显示在黄色段
- 两段式信号灯(行人过街)— 计时器显示在当前未点亮的段上(以避免与亮起的灯光混淆)
- 单段式信号灯 — 无计时器
数字的颜色会根据当前激活的信号灯颜色(红色或绿色)进行颜色编码。在黄色过渡阶段,由于时间太短而没有实际意义,因此计时器会完全隐藏。
为什么你应该安装它
- 使十字路口更加真实和沉浸
- 帮助玩家(以及车辆!)准确知道信号灯何时会变
- 零配置 — 开箱即用,兼容任何现有的 TrafficCraft 设置
- 仅客户端 — 无需在服务器上安装,可在原版多人游戏中运行
- 支持交通灯控制器 — 附加组件通过观察信号灯 1-2 个完整周期自动学习相位 timing
- 处理边缘情况:游戏暂停时显示闪烁的
-- --,对于过长的相位则闪烁99
要求
你必须安装以下所有组件:
- Minecraft 1.20.1
- Fabric Loader 0.15+
- Fabric API
- Architectury API (Fabric)
- Forge Config API Port (Fabric)
- DragonLib (Fabric, 1.20.1)
- TrafficCraft 1.2.0-beta.3+ (Fabric)
重要提示
- 仅当信号灯按排班表运行时(无论是自身还是控制器的排班),计时器才会出现。
- 对于由交通灯控制器控制的信号灯,计时器不会立即出现——附加组件需要观察1-2 个完整周期来学习相位持续时间。之后即可正常工作。
- 短于 3 秒的相位(如标准的黄灯)故意不显示计时器。
- 此模组不修改任何 TrafficCraft 方块或游戏玩法——它仅添加视觉叠加层。
兼容性
- ✅ 适用于单人游戏和多人游戏
- ✅ 服务器不需要安装此模组
- ✅ 兼容所有交通灯变体和配置
- ✅ 兼容交通灯控制器
致谢
- MrJulsen — TrafficCraft 和 DragonLib 的创作者,没有它们这个附加组件就不可能存在
- 设计灵感来源于现实世界的交通信号灯倒计时计时器
源码 & 问题反馈
TrafficCraft: Traffic Light Countdown
A client-side Fabric addon for TrafficCraft by MrJulsen. Adds a countdown timer overlay on traffic lights — just like real-world traffic signals with countdown displays.
What it does
This mod renders a 7-segment digital countdown directly on the traffic light itself, showing how many seconds remain until the next phase change. It reads the schedule of each traffic light (or observes it, if controlled remotely) and displays the timer on the appropriate segment:
- Three-section lights — timer on the yellow segment
- Two-section lights (pedestrian) — timer on the currently unlit segment (so it doesn't blend with the active light)
- Single-section lights — no timer
The digits are color-coded to match the currently active signal (red or green), and are hidden entirely during yellow transition phases, since they're too short to be useful.
Why you should install it
- Makes intersections more realistic and immersive
- Helps players (and traffic!) know exactly when the light will change
- Zero configuration — works out of the box with any existing TrafficCraft setup
- Client-side only — no need to install on servers, works in vanilla multiplayer
- Supports Traffic Light Controllers — the addon automatically learns the phase timing by watching the light for 1-2 full cycles
- Handles edge cases: shows a blinking
-- --when the game is paused, blinks99for overly long phases
Requirements
You must have all of the following installed:
- Minecraft 1.20.1
- Fabric Loader 0.15+
- Fabric API
- Architectury API (Fabric)
- Forge Config API Port (Fabric)
- DragonLib (Fabric, 1.20.1)
- TrafficCraft 1.2.0-beta.3+ (Fabric)
Important notes
- The timer only appears when the light is running on a schedule (either its own or a controller's).
- For lights controlled by a Traffic Light Controller, the timer will not appear immediately — the addon needs to observe 1-2 full cycles to learn the phase durations. After that, it works normally.
- Phases shorter than 3 seconds (like standard yellow) intentionally show no timer.
- This mod does not modify any TrafficCraft blocks or gameplay — it only adds a visual overlay.
Compatibility
- ✅ Works in singleplayer and multiplayer
- ✅ Server does not need this mod
- ✅ Works with all traffic light variants and configurations
- ✅ Works with Traffic Light Controllers
Credits
- MrJulsen — creator of TrafficCraft and DragonLib, without which this addon wouldn't exist
- Design inspired by real-world traffic signal countdown timers
Source & Issues
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TrafficCraft: Traffic light countdown
下载 TrafficCraft: Traffic light countdown
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
模组
为你的终界增添新生物群系、神秘仪式和全新生物
评论 0
登录后参与评分
还没有评论,来抢沙发吧