Real, working traffic signals for your Minecraft streets.
mzycTransit adds a compact set of street furniture — poles and traffic lights — with the one thing decoration mods usually skip: signals that actually change on their own, in sync, and count down before they switch.
Requirements: Minecraft 1.20.4 · Fabric Loader · Fabric API
### What's inside
- Four pole types — thick round pole, thin pole, thin bent pole, thin horizontal pole — enough to build mast arms, gantries and full intersections.
- Round-frame traffic light with a three-lens head and a 7-segment countdown in the middle lens.
- Horizontal signal head and pedestrian signal for the rest of the street.
- Everything is four-directional: blocks snap to one of four orientations when placed, so a head can face any approaching lane.
### How the lights behave
- Lights are on by default; right-click with a stone axe to switch a signal off (and back on).
- The 60-second cycle is driven by world time, not by a per-block timer — every signal on a server switches at the same moment:
- North–South: green 26 s → yellow 3 s → red 31 s
- East–West: starts on red — red 31 s → green 26 s → yellow 3 s
- Place one of each at a crossing and they are perfectly complementary: one direction flows while the other stops.
- Countdown: the middle lens stays clean most of the phase, then counts 10 → 01 over the last 10 seconds of green and 15 → 01 over the last 15 seconds of red, one digit per second. Green digits are green, red digits are red.
- Lit lenses glow at light level 15.
- A third variant, "All", is a permanently unlit, static copy — for signals that are off, covered up, or purely decorative.
### Details that matter
- Collision boxes come from the model itself: every cube in the original model becomes part of the block's shape, rotated with the block and clipped to its own cell — so you can stand on a mast arm or walk past a head without clipping through it.
- Sane break particles: a dense signal model would normally throw hundreds of debris particles when broken; this mod emits 16, colored from the block's own red/yellow/green/grey texture.
- Lightweight: no block entities, and countdown digits are separate digital models composed through multipart block states instead of full model copies — baked geometry stays small, so you can line a whole city with them.
### Credits & License
Signal and pole models and textures are adapted from JINZAI Traffic Lights. Artwork © Crzay 津仔,original code and configuration © QiZhang, MIT licensed. See the bundled THIRD_PARTY_NOTICES.txt for the full notice. Mod code © mzycAB/crazyjinzai, MIT.
------
给你的世界装上真正会工作的红绿灯。
mzycTransit 是一组城市交通装饰方块 —— 杆件与红绿灯 —— 并且做了装饰模组通常不做的那件事:信号灯真的会自己变色,彼此同步,切换前还会倒计时。
前置需求: Minecraft 1.20.4 · Fabric Loader · Fabric API
### 内容一览
- 四种杆件:粗圆杆、细杆、细弯杆、细横杆,足以搭出悬臂、门架和完整路口。
- 圆框红绿灯:三灯位灯头 + 中灯位 7 段数码管倒计时。
- 横型信号灯与**人行道信号灯**,补齐街道上的其余位置。
- 所有方块均为**四向朝向**:放置时自动对齐四个方向之一,灯头可以朝任意一条车道。
### 红绿灯的行为
- 灯**默认开启**,拿**石斧右键**可以关机 / 重新开机。
- 60 秒循环由**世界时间**驱动,而不是每个方块各自计时 —— 同一个服务器上所有信号灯在同一瞬间切换:
- 南北向:绿 26 秒 → 黄 3 秒 → 红 31 秒
- 东西向:以红灯开头 —— 红 31 秒 → 绿 26 秒 → 黄 3 秒
- 路口各放一个,两向正好互补放行:一向通行时另一向必然停。
- 倒计时:中灯位大部分时间是干净的,只在相位快结束时出现 —— 绿灯最后 10 秒倒数 10 → 01,红灯最后 15 秒倒数 15 → 01,每秒一跳,绿字为绿、红字为红。
- 点亮的灯镜**发光等级 15**。
- 第三个变体 「全能」是常灭的静态副本,不跑循环、不响应石斧 —— 用于关闭中、被遮挡或纯装饰的信号。
### 值得注意的细节
- 碰撞箱直接由建模生成:原模型里的每个 cube 都参与方块形状,随朝向旋转并裁剪到方块自身格内 —— 所以你可以站在横杆上,侧身走过灯头也不会穿模。
- 破坏粒子克制:这类密集模型在原版下破坏会喷出几百个碎屑,这里只撒 16 个,颜色取自方块自己的红 / 黄 / 绿 / 灰贴图。
- 轻量:没有方块实体;倒计时数字不是把整份灯体复制一遍,而是拆成独立的数码管模型用 multipart 拼接 —— 烘焙几何很小,整条街铺满也不卡。
### 致谢与许可
红绿灯与杆件的模型、贴图**改编自 JINZAI Traffic Lights**,美术素材版权 Crzay 津仔,原始代码与配置版权 QiZhang,MIT 许可;完整声明见 jar 内的 THIRD_PARTY_NOTICES.txt。模组代码 © mzycAB/crazyjinzai,MIT 许可。