Smart City Lights
受够了你的建筑在夜晚看起来死气沉沉,因为所有的灯要么一直亮着,要么一直熄灭?Smart City Lights 添加了模拟真实居住者行为的灯具:它们会按照自己的时间表自动开关、像电路故障一样表现异常、仅在有人经过时亮起,或者仅在你设定的自定义时间段内发光。将它们放入你的建筑中然后忘掉它们——剩下的交给它们自己处理。

Mod Features
- 7 种即插即用的灯具:
- Day Lamp, Night Lamp, Flicker Lamp, Presence Lamp, Custom Lamp — 完整方块,占地面积与石头相同。
- Street Lamp & Pedestrian Lamp — 真实的灯柱(非完整方块),用于排列街道和小径。默认从黄昏到黎明开启。
- Lamp Pole — 一个普通的装饰性立柱,轮廓与街灯/行人灯相同。根据需要堆叠任意数量,然后在顶部放置一盏灯即可将其升至任意高度。
- 完全内置的游戏内灯具配置器 — 无需配置文件,无需外部工具:
- 在空气中右键点击以创建拥有你自定义设置的全新定制灯具。
- 右键点击已放置的灯具以打开 相同 的图形用户界面 (GUI),其中预填了其当前设置,并可将更改直接保存回该灯具(或保存到其所属的整个同步组,如果它属于某个组的话)。
- 所有数值(间隔、闪烁几率、突发持续时间/间隙、存在半径、保持时间、自定义时间范围)均支持平滑拖拽和滚动滑块。没有笨拙的固定步长。
- 触发器切换: 计划 vs. 玩家存在。
- 活跃窗口切换: 白天 / 夜晚 / 始终 / 自定义时间范围 — 设置你自己的开始和结束小时数,完全支持跨夜范围(例如晚上 10 点到早上 6 点)。同时适用于两种触发类型。
- 计划行为: 稳定、电压闪烁(具有可配置的静止状态——突发总是回归到该状态,不会出现随机的“卡住”帧),或 恒定(仅在活跃窗口内开/关,没有任何计时器)。
- 15 个内置预设,通过单个按钮循环切换,包括街道照明和自定义范围演示。
- 分区布局,带有颜色编码的分隔线(计划 / 闪烁 / 存在 / 自定义时间),因此表单仅显示与你当前设置相关的内容。
- 灯具视觉上展示其自身的配置 — 其外观会根据当前运行的行为进行更新,无论它最初是哪一种灯具。通过 GUI 将 Day Lamp 重新配置为闪烁灯后,它也会 看起来 像一盏闪烁灯。
- Lamp Linker 工具 — 右键点击一盏灯以标记它,右键点击第二盏灯将它们链接成一个同步组。可以添加任意数量的灯具;整个组会在共享的计划下同时开关。同步组随世界一起保存,并在重新加载或重启服务器后保留。
- 存在模式 — 当玩家进入可配置的半径(1–24 格)内时,灯具会亮起,并在玩家离开后的可配置保持时间内(0–60 秒)保持点亮。非常适合走廊或运动传感器照明。
- 每盏灯的行为完全独立 — 即使使用 WorldEdit 复制粘贴的灯具,由于基于位置随机播种,它们的表现也各不相同。
- 开箱即用的多语言支持: 英语、俄语和白俄罗斯语。
? How it works
每盏灯都保留其内部计时器,并自行决定何时翻转状态——除了同步组内的灯具外,没有两盏灯会完美同步地 ticking,因此充满这些灯的街道或建筑看起来真正生动,而不是循环播放。
使用 Lamp Linker 链接的灯具是例外:它们共享一个在每个世界刻计算一次的计划,因此它们完美同步地翻转——非常适合应该同时亮起的窗户行或排列着灯具的街道。
性能说明: 存在模式的灯具每个 tick 检查世界中每个玩家的距离。这对于数十甚至数百盏灯来说完全没问题。如果你在整个大地图上放置数千盏灯,请注意这一点——计划中有一个优化版的每隔几个 tick 检查的构建版本。
? What's in the box
| Item |
Description |
| Day Lamp |
仅在白天开启,稳定计划 |
| Night Lamp |
仅在夜间开启,稳定计划 |
| Flicker Lamp |
随机电压闪烁突发,始终激活 |
| Presence Lamp |
当玩家靠近时亮起(“走廊灯”) |
| Custom Lamp |
空白画布——随意配置 |
| Street Lamp |
带有横跨道路悬臂的灯柱,默认从黄昏到黎明开启 |
| Pedestrian Lamp |
用于路径和人行道的直立式灯柱 |
| Lamp Pole |
装饰性立柱,可将任何灯具升至所需高度 |
| Lamp Configurator |
通过游戏内 GUI 制作和编辑定制灯具 |
| Lamp Linker |
将多个灯具链接到一个持久的同步组中 |
Good to know
- 使用 Lamp Linker 创建的同步组存储在维度级别的存档旁边,因此它们在世界重新加载和服务器重启后得以保留。
- 所有纹理均以清晰、易读的占位符形式提供——模组旨在允许资源包进行换肤,无需额外设置。
Have a question, suggestion, or idea?
Smart City Lights
Tired of your builds looking dead at night because every light is either always on or always off? Smart City Lights adds lamps that behave like real people live behind them: flicking on and off on their own schedule, misbehaving like a faulty circuit, lighting up only when someone walks by, or just glowing on a custom time range you set yourself. Drop them into a build and forget about them — they'll do the rest.

Mod Features
- 7 ready-to-place lamps:
- Day Lamp, Night Lamp, Flicker Lamp, Presence Lamp, Custom Lamp — full block, same footprint as stone.
- Street Lamp & Pedestrian Lamp — real lamp posts (not full blocks), for lining streets and paths. On by default from dusk till dawn.
- Lamp Pole — a plain decorative post with the same profile as the street/pedestrian lamp. Stack as many as you need, then cap it off with a lamp to raise it to any height.
- A fully in-game lamp configurator — no config files, no external tools:
- Right-click in the air to craft a brand-new custom lamp with your own settings.
- Right-click an already-placed lamp to open the same GUI pre-filled with its current settings, and save your changes straight back into it (or into its entire sync group, if it belongs to one).
- Smooth drag-and-scroll sliders for every numeric value — intervals, flicker chance, burst length/gaps, presence radius, hold time, custom time range. No clunky fixed steps.
- Trigger switch: Schedule vs. Player Presence.
- Active window switch: Day / Night / Always / Custom time range — set your own start and end hour, with full support for overnight ranges (e.g. 10 PM to 6 AM). Works with both trigger types.
- Schedule behavior: Steady, Voltage-Flicker (with a configurable resting state — bursts always resolve back to it, no random "stuck" frames), or Constant (just on/off with the active window, no timer at all).
- 15 built-in presets cycled with a single button, including street lighting and a custom-range demo.
- Sectioned layout with color-coded dividers (schedule / flicker / presence / custom time) so the form only shows what's relevant to your current settings.
- A lamp visually shows its own configuration — its appearance updates to match whatever behavior it's currently running, regardless of which lamp it started out as. Reconfigure a Day Lamp into a flicker light through the GUI, and it'll look like a flicker light too.
- Lamp Linker tool — right-click one lamp to mark it, right-click a second to link them into a synchronized group. Add as many lamps as you like; the whole group switches on and off together, on a shared schedule. Sync groups are saved with your world and survive reloading or restarting the server.
- Presence mode — a lamp lights up when a player steps within a configurable radius (1–24 blocks) and stays lit for a configurable hold time after they leave (0–60 seconds). Perfect for hallway or motion-sensor lighting.
- Fully independent behavior per lamp — even lamps copy-pasted with WorldEdit behave differently from one another, thanks to per-position random seeding.
- Multi-language support out of the box: English, Russian, and Belarusian.
? How it works
Every lamp keeps its own internal timer and decides for itself when to flip states — no two lamps (outside a sync group) ever tick in perfect lockstep, so a street or building full of them genuinely looks alive rather than looping.
Lamps linked with the Lamp Linker are the exception: they share one schedule computed once per world tick, so they flip in perfect unison — ideal for a row of windows that should light up together, or a street lined with lamps.
Performance note: Presence-mode lamps check the distance to every player in the world once per tick. This is completely fine for dozens or even hundreds of lamps. If you're placing thousands across a large map, keep this in mind — an optimized check-every-few-ticks build is planned.
? What's in the box
| Item |
Description |
| Day Lamp |
On only during the day, steady schedule |
| Night Lamp |
On only at night, steady schedule |
| Flicker Lamp |
Random voltage-flicker bursts, always active |
| Presence Lamp |
Lights up when a player is nearby ("hallway light") |
| Custom Lamp |
Blank slate — configure it however you like |
| Street Lamp |
Lamp post with an arm over the road, dusk till dawn by default |
| Pedestrian Lamp |
Straight lamp post for paths and sidewalks |
| Lamp Pole |
Decorative post to raise any lamp to the height you need |
| Lamp Configurator |
Craft and edit custom lamps through an in-game GUI |
| Lamp Linker |
Link multiple lamps into one persistent synchronized group |
Good to know
- Sync groups created with the Lamp Linker are stored per-dimension alongside your world save, so they survive world reloads and server restarts.
- All textures ship as clean, readable placeholders — the mod is built to be reskinned by resource packs without any extra setup.
Have a question, suggestion, or idea?
|
|
|
Check our discord channel. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧