Tags
Creators
Details
1.2.2
Compatibility
Changes
CityWorks 1.2.2 — Changelog
Minecraft 1.21.1 · NeoForge 21.1.248+ · Java 21 · works in Creative and Survival
Built from the 1.17.0 JAR you supplied, plus the CityWorks 1.2.1 source on this machine. The two
were identical except for the lighting system (FloodlightData, LightBrightness, CityGuide).
1.2.2 keeps your 1.17.0 lighting: light sources stay at the bulbs.
New features
Automatic traffic signals
- Sneak-click any traffic signal. Control now has three settings: manual, automatic and redstone.
- Automatic: signals change on world time, so every automatic signal in the world stays in step. North/south-facing signals run opposite to east/west-facing ones, so a four-way junction works with no wiring. Green time is adjustable from 4 to 60 s. Yellow lasts 3 s, and there is a 1 s all-red gap before the crossing direction turns green. Flip phase fixes junctions with odd layouts.
- Redstone: any pulse turns the signal yellow, then red. Red holds for the set time, and for as long as power stays on, then the signal goes back to green. The Pedestrian Button now works as a real crossing button: wire it to a signal set to redstone.
- Performance: there is no block-entity ticker. Each signal schedules one block tick for its next change.
Dusk-to-dawn street lights
- The light editor's Control setting now offers manual, redstone and dusk to dawn.
- Dusk-to-dawn lights switch on at night and in thunderstorms, and off at sunrise. In the Nether and the End they stay on.
- The Lighting Remote has a new ALL DUSK-DAWN button, and an Auto button for each light type, so you can switch a whole light type to dusk-to-dawn at once. This setting is saved with the world.
- Lights are checked once at each dusk and dawn, on a per-tick budget, not every tick.
Road markings (13 new blocks)
- White dashed, solid, edge and corner lines; crosswalk stripes; stop line; straight, left and right arrows; yellow dashed, solid and double lines; yellow hatched box.
- Paint sits on top of any full block, has no collision and breaks instantly. It pops off if the block under it is removed. Arrows point the way you are facing when you place them.
- Survival: 1 white or yellow dye + 1 smooth stone slab = 8 dashed lines. A stonecutter converts freely between all white styles, or all yellow styles.
Street name sign
- A new two-block post with two crossing street-name blades. Click it to type both street names, and hide the second blade if you only need one. Names appear on both faces of each blade.
- The post and blades are a baked model. Only the text is drawn per frame, and only within 40 blocks.
- Survival: 3 green dye over 2 iron ingots (in a column) = 2 signs.
City Wrench
- Click any CityWorks object to rotate it 90° without breaking it. This covers lights, signals, benches, decorations, highway signs, street signs and road markings.
- Sneak-click a light or signal to copy its settings: pole height, arm reach, widths, base, brightness, control mode, signal timing, speed limit, camera, and two-sided heads.
- Click another fixture of the same type to paste those settings. This makes it quick to set up a street of identical customised lamps.
- Sneak-use in the air clears the copy. The wrench glints while it holds settings, and its tooltip shows where they came from.
- Survival: iron ingots in the pattern
I I / _I_ / _I_.
Creative tabs and icons
- The single tab is now six themed tabs: Tools & Guide, Lighting, Traffic & Roads, Transit & Seating, Services & Utilities, and Parks & Landmarks.
- New pixel-art tab icons: a street lamp, a traffic signal, a bench, a fire hydrant, a tree, and the wrench.
- The Lighting Remote, Pressure Hose, Portable Monitor, Camera Linker and Bicycle have new flat inventory icons. Their 3D models are still used in your hand and on the ground.
- The mod now has a logo in the Mods list.
Survival quality of life
- Every CityWorks block is now in the vanilla
mineable/pickaxetag, ormineable/axefor wooden objects and trees. The right tool breaks them faster, and anything still breaks by hand.
Fixes
- Lighting: restored the 1.17.0 bulb lighting. The unfinished 1.18 "projected field" (hundreds of invisible light blocks laid on the ground per lamp) has been removed. Worlds saved with that field are cleaned up automatically as their chunks load.
- Other mods' blocks were being modified: when CityWorks scanned a chunk, it created a missing block entity for any block that could have one. That included other mods' blocks and vanilla blocks. It now only repairs CityWorks blocks.
- Blurry editor screens: the fixture, sign, phone and monitor editors ran the background blur twice per frame. The camera list and the chess/tree screens drew their titles underneath the blur, so the titles came out blurred.
- Live map: the map was drawn and then covered by a second full background pass, so it looked washed out and blurred. The widgets were also drawn twice.
- Map shading: the terrain shading on the north edge of each chunk compared a column with itself.
- Traffic cameras: players sitting on benches, swings or chess seats could be given tickets. City seats no longer count as vehicles.
- Light Remote: the per-type lamp counts were recomputed by scanning every lamp once per light type. They are now counted in a single pass.
- City Guide: updated for 1.2.2. The index now grows by itself as topics are added. There are 26 topics across 3 index pages.
Performance (smoother and lighter)
- Light discovery when chunks load: the queue used to process exactly one chunk per tick. Joining a world or flying fast could take more than 30 seconds to switch on distant lamps. It now works on a time budget of about 2 ms per tick, and always handles at least one chunk.
- Block place/break near lamps: the old code checked every lamp in the dimension on every block change. It now looks up only lamps in the surrounding chunks, using a chunk index.
- Fixture rendering: the base of a light or signal that hasn't been resized used to have a render box inflated by 26 blocks. It was drawn even when it was well off-screen. The box now hugs the base, so frustum culling skips it. The base is skipped beyond 96 blocks and its bolt details beyond 24.
- Dimmed lamps: a dimmed (1–99%) lamp that hasn't been resized now stays in the cached chunk mesh instead of being redrawn every frame. Only 0% (off) uses the per-frame model.
- Trees: added a third, coarse level of detail beyond 96 blocks, with roughly 60% fewer faces than the mid-range mesh.
- Bicycle input: the client sent a packet every tick while riding. It now sends one only when the input changes, plus a keep-alive every 5 ticks.
- Lighting upkeep: removed redundant light-engine re-checks. Placing a light block already schedules a lighting update.
- Editor screens: one translucent background pass instead of two full-screen blur passes.
Compatibility notes
- The network protocol version is now
6. Servers and clients must both run 1.2.2. - Existing worlds load normally. Signal and lamp control settings default to manual, which is the old behaviour.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Q5qbfLpt:kfWJrvLz"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Q5qbfLpt:kfWJrvLz"
}

