Перейти к содержимому
Mineforgian

Roadworks

Immersive American-style traffic management

Загрузки
3K
Подписчики
8
Обновлён
21 февраля 2025 г.
Лицензия
MIT

Опубликован 16 августа 2023 г.

Roadworks

Roadworks add immersive, American-style traffic management features to Minecraft. It is currently in beta, so please expect some bugs! Currently, the mod adds markings, cones, signals, bollards, and signs, though more may come in the future.

Todo

  • Add an included resource pack to add European-style signage
  • More signs
  • More markings
  • Pedestrian crossing signals
  • Make CC an optional dependency

Features

Signals

Controllable via a Traffic Controller and can be connected to one with a linker. Signals connected to a traffic controller can be controlled via a ComputerCraft computer, wrapped as a peripheral.

Posts

Posts connect when placed next to each other. They can connect to signals and signs.

Signs

Signs can be placed onto posts, or onto walls. Many are currently included, but there will hopefully be even more in the future.

Markings

Most that extend over a whole block will connect to a filler is placed in the correct way. Hopefully it's pretty easy to understand.

Bollards

Pretty simple. Kinda neat.

CC API

This will be improved in the future and moved to a wiki page.

getSignalType(id: int): string?

Gets the type of signal ID. Will be one of:

  • three_head
  • three_head_left
  • three_head_right
  • three_head_straight
  • five_head_left
  • five_head_right

getSignals(): table

Gets all signals connected to this controller. This returns an array of dictionaries containing the signal ID and the signal's type.

getSignalsOfType(type: string): table

Returns an array of IDs which have the specified type. See getSignalType for available types.

hasId(id: int): boolean

Returns true if the traffic cabinet has the specified id.

hasLight(type: string, light: string): boolean

Returns true if the specified type has the specified light.

setThreeHead(id: int, red: boolean, yellow: boolean: green: boolean): boolean

Sets the specified three-head signal of ID to the specified values.

setFiveHead(id: int, red: boolean, yellowLeft: boolean: greenLeft: boolean, yellowRight: boolean, greenRight: boolean): boolean

Sets the specified five-head signal of ID to the specified values.

Contribute

If you find a bug or have a feature request, please make an issue. PR's, as always, are accepted and appreciated. PR's will not be accepted if they produce bugs or add additional dependencies.

Ченджлог

1.0.0-beta5Бета1.20.1 · 21 февраля 2025 г.

Roadworks 1.0.0-beta5 has been released!

This update includes some stuff related to trains, and some improvements to signage and guide signs. Also, thanks so much for 1000 downloads! I guess I can consider myself a mod developer now.

  • Added new features for grade crossings
    • Crossing gates: Can be raised and lowered by a computer to prevent traffic from colliding with an oncoming train
    • Train bell: Dings a bell (a Safetran E-Bell, so Autumn tells me) to provide an audible warning that a train is approaching
    • Train signal: Provides a visual warning that a train is oncoming
    • Catwalks: Decoration for grade crossings
  • Blankouts
    • Can be toggled on or off to restrict movements at intersections
    • No left turn, no right turn, each with TRAIN supplements
    • No turn on red blankout
  • Flashing yellow arrow signals
  • Attachments can once again be put on walls
  • Added the following signs
    • 2 Tracks, 3 Tracks, 3 Way Intersection w/ Rail Left, 3 Way Intersection w/ Rail Right, 3 Way Intersection w/ Rail T, 4 Tracks, 4 Way Intersection w/ Rail Left, 4 Way Intersection w/ Rail Right, Crossbuck, Diagonal railway intersection
    • Guide Signs
      • Begin, Junction, End, Left arrow, Right arrow, Straight arrow, Bi-directional arrow, North, East, South, West
    • Object markers and road ending markers
    • No turn on red (as well as two alternates)
    • Keep right / keep left (both with 1 alternate)
    • Left turn yield on green
    • Left / right lane ends ahead
    • Oncoming traffic
    • Route shields
      • Can be edited to show any number 0-999
  • Modified the following signs:
    • Hard left & hard right
    • Road work ahead
    • Road closed, and road closed ahead signs
    • Supplemental ahead sign
  • Modifications to road name signs
    • Road name signs can now be mixed case, which is required by the MUTCD
    • Changed font to match Minecraft font
  • Added “targeted attachment” section to F3 screen
  • Some bug fixes
1.0.0-beta4Бета1.20.1 · 2 декабря 2024 г.

Roadworks 1.0.0-beta

This update mostly contains fixes, with a couple of new signs.

  • New signs: No Left Turn, No Right Turn, replaced 4-way sign with all-way sign, diagonal black arrow signs, road name sign with yellow background
  • Fix: Sign editing not updating
  • Fix: Post connections not working right
  • Fix: Australian roundabout signs
  • Other misc. sign improvements
1.0.0-beta3Бета1.20.1 · 27 ноября 2024 г.

Roadworks 1.0.0-beta3

  • Revamped post system. This has breaking changes!
  • Posts can now have more than one attachment per block. This means you can put a sign behind a signal!
  • More extensible post system
  • Improved rendering efficiency of posts
  • Signs now sync when joining a server
  • Wrenches
    • Smaller signs, such as the "Ahead," "One Way," and "4-Way" signs, can now be positioned at the top, middle, or bottom of a sign.
    • Beacons and road signs can be repositioned as well
    • A post only connected below can be changed to a "stub" post, a shorter kind of post.
  • Updated to Gradle 0.10.2
  • Updated to Fabric Loader 0.16.7
  • Updated to Fabric API to 0.92.2
  • Updated Loom to 1.8
  • Updated Fabric Language Kotlin to 1.12.3 (KT 2.0.21)

Warning: As part of this update, all signs, posts, signals, etc in your world will disappear. There are likely to be crashes as well. If you encounter anything, please create an issue on GitHub.

1.0.0-beta2Бета1.20.1 · 22 октября 2024 г.

Roadworks 1.0.0 Beta 2

  • Custom signs can be added via datapacka and resource packs
  • New signs
  • Added yield marking
  • Traffic lights are now emissive
  • Custom street signs
  • Configuration of traffic cabinet limits
  • Misc. bug fixes
1.0.0-beta1Бета1.20.1 · 7 июня 2024 г.

Initial beta release of the mod.

Комментарии

Загружаем…