Traffic light control

6223 views
Complexity: simple
<h1 class=Traffic light control"/>

Traffic light control

A working circuit for traffic lights in Minecraft.

Two traffic lights that switch in opposite directions, just like in real life. Simplified explained, the andesite blocks of the traffic light are replaced by colored clay and this again by andesite blocks. Redstone repeaters are used between the traffic light phases for delay. In doing so, the traffic light can be in a completely different place thanks to the command blocks.

The whole thing is a pretty elaborate gimmick, of course, but at the major intersections you can make the effort.

Instructions:

I.Phase)
Traffic light1: Yellow light off, Red light on
Traffic light2: Yellow light off, Red light off, Green light on

-

Afterwards 12Repeater on highest level

II.phase)
Traffic light1: Yellow light on
Traffic light2: Yellow light on, green light off

-

Then 2 repeaters at the highest level, 1 repeater at the lowest level.

III.phase)
Traffic light1: Yellow light off, Red light off, Green light on
Traffic light2: Yellow light off, Red light on

-

Afterwards 12Repeater on highest level

IV.phase)
Traffic light1: Yellow light on, Green light off
Traffic light2: Yellow light on

-

Then 2Repeater on highest, 1Repeater on lowest and close the loop.

General overview:
-

To "turn off" a light replace the block with andesite:
-

To "turn on" a light replace the block with colored clay:
-

IDs:
Green clay-> minecraft:stained_hardened_clay 5
Yellow clay-> minecraft:stained_hardened_clay 4
Red clay-> minecraft:stained_hardened_clay 14
Andesite -> minecraft:stone 6

You can read the coordinates of the traffic light blocks by pressing F3 when you look at the corresponding block.

19 COMMENTS

  1. Well, as I already described, it doesn't matter (logically) where the command blocks are located. And because the Minecraft world is almost infinitely expandable, I see no space problem at all.

  2. That is of course was for example one could build a whole central in the whole circuits stand
    but still very space consuming and too much waste of time for such a small traffic light
    dislike

  3. *you mean for two traffic lights
    And time is relative. The idea is most suitable on (LAN) servers and there you can build with several people. Still no comparison to huge projects. You don't have to have a traffic light at every intersection. It is already a nice highlight, if at some places such a traffic light stands.

    In the end, it's just 16commands and a pair of repeaters.

    I understand that of course - if you rarely work with command blocks and look at it like that, it looks like a colossal effort at first. But I have the whole thing with me at about 10Kreuzungen stand and that did not take too long. Especially it goes, after you have built the whole one / two times, very quickly.

  4. Find the idea super. Build eh very much with command blocks. However, command blocks do not have infinite range. This is only a certain number of chunks, unless that was changed in the 1.8.

  5. In principle, you're right.
    It's like anything else in Minecraft, though, like Redstone or NPCs. Command blocks work infinitely far in theory, but only a limited number of chunks are supplied with game ticks at any given time, in order to reduce the load on RAM. I think this corresponds to the set visibility range (approx.8chunks each direction) Anything outside this range will not work then. But that doesn't depend on how far the command chunks are from the traffic light, but with the position of the player.

    If you then consider how big a chunk each is, and you can also build these things into the ground or air, that still doesn't justify space problems, of course....

  6. if i would know about command blocks i probably would have already built a traffic light. that's why i find the idea cool, like

    fits in every city.

  7. The traffic light is a block wide. I find that now not soo big xD

    But you can also build it exactly the same way as in your link - it will still work. The trapdoors on the side are only so that one does not perceive the signal from the side so strongly. But of course you can also build it with frames. The blocks are changed so quickly that the frame does not fall down.
    The only thing that is mandatory is that the traffic light has 3 blocks. But if you don't even want to do this work, you can easily convert it to a simpler 2-block-high red-green traffic light. That's only 8command blocks and a few repeaters for 2 traffic lights. (But that would be too easy for me and I wouldn't need a manual).
    Maybe that would also be an alternative solution for the people who find the hassle too much.

  8. The explanation above is not complicated, but detailed so that you can build it step by step (even if you don't necessarily know anything about command blocks), which is why it's called a manual.

    For you, however, gladly the short version:

    When one light is green, the second is red.
    It will stay like this for a while, depending on the number of repeaters,
    Then the first becomes yellow, the second red-yellow.
    This then remains shorter and then everything happens in reverse. And the whole thing then always in a circle.
    Colored tone is in each case the light, andesite comes there when a light is off. See above for orders. Done.

  9. Thanks, I'm glad you like it.

    That have now already said a few people that you would be a little too big. But narrower than 1 block is not an option. My only suggestion would be to widen your street, then it may no longer seem disproportionate. Otherwise, you can still reduce the traffic light to red-green, then it loses height.

  10. Quite okay, but I prefer the idea with the frames on this page. Then you can also simply exchange the items and ready. Nevertheless, great that you have taken so much time to explain!

  11. Idea itself is good, I'm building a huge city with skyscrapers, shops, etc. I'm tinkering with a traffic light system right now. Funny that NOW an idea just comes in with the name: Traffic Light System! Fits so well right now! Thanks! One question: could you replace the block, not andesite (whatever that is) but, black wool or so?
    Likes x5

LEAVE A REPLY