Skip to content

Better traffic lights#901

Merged
louis-e merged 6 commits into
louis-e:mainfrom
luigi052005:better-traffic-lights
Apr 9, 2026
Merged

Better traffic lights#901
louis-e merged 6 commits into
louis-e:mainfrom
luigi052005:better-traffic-lights

Conversation

@luigi052005

@luigi052005 luigi052005 commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

I used a custom banner pattern for the traffic lights to make them one block smaller and more detailed.
Works on Java & Bedrock edition.

@luigi052005

Copy link
Copy Markdown
Contributor Author

Seeing this finally work after hours was great!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the generated “crossing:traffic_signals” highway element to use a wall-banner pattern design for more detailed, smaller traffic lights, with supporting changes to write banner block-entity data for both Java Anvil and Bedrock .mcworld outputs.

Changes:

  • Add WorldEditor::place_wall_banner plus Java/Bedrock banner block-entity writers.
  • Fix Bedrock serialization for block_entities / entities records to write concatenated NBT compounds (Bedrock LevelDB format).
  • Update highway traffic-signal placement to use banners + add required block definitions and Bedrock block mapping.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/world_editor/mod.rs Adds banner placement helper and writes banner block-entity NBT into the per-chunk block_entities list for Java/Bedrock.
src/world_editor/bedrock.rs Changes Bedrock LevelDB writing of entity/block-entity records to concatenated-compound encoding.
src/element_processing/highways.rs Replaces wool-stack traffic lights with banner-based traffic lights around a pole.
src/block_definitions.rs Introduces new internal block IDs for black_wool and light_gray_wall_banner.
src/bedrock_block_map.rs Maps light_gray_wall_banner (with facing) and black_wool to Bedrock equivalents.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/world_editor/mod.rs
Comment thread src/world_editor/mod.rs
Comment thread src/world_editor/mod.rs
@louis-e

louis-e commented Apr 9, 2026

Copy link
Copy Markdown
Owner

LGTM

@louis-e louis-e merged commit 347dec7 into louis-e:main Apr 9, 2026
2 checks passed
@louis-e

louis-e commented Apr 12, 2026

Copy link
Copy Markdown
Owner

retrigger-benchmark

@github-actions

Copy link
Copy Markdown

⏱️ Benchmark run finished in 1m 38s
🧠 Peak memory usage: 2065 MB (↗ 120% more)

📈 Compared against baseline: 30s
🧮 Delta: 68s
🔢 Commit: 0286e97

🚨 This PR drastically worsens generation time.

📅 Last benchmark: 2026-04-12 17:59:35 UTC

You can retrigger the benchmark by commenting retrigger-benchmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants