13

I am trying to design a street lighting system which is controlled by a light sensor.

What I would like to have is for the redstone lamps to be lowered, flush with the ground, during the day but at night a piston below raises them up from the ground and they switch on.

At first (having had no experience with pistons) I thought this would be easy. I figured if the piston is powered on, then it will transer power to the lamp. Apparently this is not the case. The lamp raises from the ground but it is not switched on.

I can get the lamp to switch on by putting a power source next to it, above ground, of course, but I'd rather this was totally clean, with just the lamp visible.

Is there a way of neatly powering this lamp when it is raised?

I have tried googling, but nobody else seems to have tried this before (or at least not documented it).

7
  • You'd want to push the lamp up, then move the piston out of the way and put a redstone block immediately below it. I imagine this would be rather complex.
    – fredley
    Commented Apr 30, 2014 at 13:25
  • 1
    @fredley and unfortunately, due to a glitch/feature, sticky pistons cannot pull redstone blocks down, as an upward facing piston with a redstone block ontop acts as a BUD. The only way I can figure out getting this to work without pulling a redstone block down when the system is "off" is to hide at least 2 blocks of wiring under a carpet next to the retracted lamp. Commented Apr 30, 2014 at 13:59
  • A while ago there has been a discussion about wireless redstone (with command blocks) as far as i know this has not yet been implemented. Forum link :minecraftforum.net/topic/… Commented Apr 30, 2014 at 14:23
  • 2
    This may be possible in the new snapshot, where slime blocks pushed by pistons move surrounding blocks too...
    – fredley
    Commented Apr 30, 2014 at 14:26
  • 1
    @OrcJMR You're wrong, see my answer.
    – orlp
    Commented May 1, 2014 at 6:54

7 Answers 7

11

In the latest snapshot of 1.8, this has become really easy. Here's a view of the redstone (the piston is sticky):

enter image description here

Those furnaces have to be something that can not be pushed by a piston, a furnace is the cheapest, but you can also use obsidian.

Top view:

enter image description here

Everything covered up:

enter image description here

5
  • 2
    This is great, good use of carpets!
    – fredley
    Commented May 1, 2014 at 9:45
  • A brilliant use of furnaces, rather :-) Why not chests, though? Can't carpets be put on them?
    – Orc JMR
    Commented May 1, 2014 at 10:44
  • String might also be a solution, haven't tested it though.
    – MrLemon
    Commented May 1, 2014 at 10:51
  • Tested it. Top furnaces can be chests. Lower furnace has to be a furnace, though - it needs to be solid and not redstone-powered (apart from having metadata to be immovable).
    – Orc JMR
    Commented May 1, 2014 at 13:32
  • Neat and nicely compact. I'll be using this, thanks!
    – Luke
    Commented May 6, 2014 at 11:09
6

EDIT: nightcracker has provided a much simpler answer, so this answer is only valid if you don't use Slime blocks for religious reasons :-)

EDIT 2: even if so, go use Bergi's design, it is still superior :-)

This is possible, albeit complex.

My prototype has 1 regular and 6 sticky pistons, and 6 redstone inputs that need to be cycled in a correct order for it to work. I'm afraid to think of control circuits it will require (either under each lamp, or 6 wires from the center to each lamp).

I am not very experienced in optimizing redstone signals, so I have limited myself to the mechanical part. If you finish this, please share!

1
3

Here's the simplest way, although it does have a single piece of redstone + a couple half slabs:

Day

enter image description here

Night

enter image description here

Covered up

enter image description here

The concept behind it is hooking the sticky piston and the anticipated position of the raised lamp up to a NOT gate, so when the sun goes down, the lack of power triggers both the piston and subsequently powers the lamp.

3

I liked the challenge so I went on improving and simplifying @OrcJMR's design. The idea to push/retract the lamp with a sticky piston and power it then enabling it by exchanging the piston with a side-powered block is the same (and probably the only way without slime blocks), yet everying else has changed.

It takes only two regular pistons (horizontal), two sticky pistons (vertical), four repeaters and two redstone torches:

front view from behind from above in powered state and from above in unpowered state

All the repeates are set to a 2-tick delay (1 click), except for the locked one in the FED, whose pulse will push in the piston for retracting the lamp and then (delayed by the torches) also flickers that piston, which is set to a 4-tick delay (3 clicks). The lever is located on the input, a daylight sensor or so will work as well.

5
  • Amazing! Is it possible to get a video of this at work?
    – Luke
    Commented May 1, 2014 at 11:03
  • 1
    @Luke: I fear not. I neither have screen capturing program, nor a video channel to publish it. I could however rebuild it on some public server where everyone can visit it.
    – Bergi
    Commented May 1, 2014 at 11:25
  • 1
    I built one and I love it. I probably won't use it for what I need this for, though, as it is a bulkier design than nightcracker's. I'll certainly keep a couple around though, since I love the way it operates. Just watching it go is fun. :)
    – Luke
    Commented May 6, 2014 at 11:15
  • @Bergi, did you try Minecraft's built-in streaming capability? I was amazed by how simple it is - the only thing to do beforehand (apart from registering on Twitch and connecting Mojang account) is to test bandwidth (in game options) and set your stream to approximately twice as low, for it to be stable. If you are not in the very... Siberia of the world, like me, you'll also have a nice quality :-)
    – Orc JMR
    Commented May 10, 2014 at 12:11
  • @OrcJMR: OK, I'll check it out when I'm back at my PC. Thanks for the tip
    – Bergi
    Commented May 10, 2014 at 14:56
2

Are you using any mods? Inverted lamps (FTB) just might do the trick for you... Just cover them when you move them back to ground.

1
  • I only just started the server last weekend, haven't had time to install any mods.
    – Luke
    Commented Apr 30, 2014 at 16:34
2

I tried to come up with a way to make that work with the new slime block mechanics, but the problem is when you use a slime block to push the redstone block in from the side, and then push it up from the bottom with another slime block, the slime blocks then connect, and pulling the redstone back down pulls the side slime block down as well, so you can't pull the redstone to the side afterwards. Perhaps someone else may figure out a way to do it, but I'm not sure it's possible.

I'm sure you've seen something like this already, but here's an option that you could use if you like it:

Redstone lamp daytime

Redstone lamp nighttime

0

one thing many of you are forgetting, is that he wants the light hidden during the day, I've come up with a solution to that problem, but it would need to be hidden in a hill and modified to fit, this includes hollowing out some of the hill in order to make the piston work Extended theoretical view Extended Theoretical View Lowered theoretical view Lowered Theoretical View Lowered practical view Lowered Practical View Extended practical view Extended Practical View.

please note that the hill I've used was a combination of naturally spawned land and constructed hills, also, I've just noticed that I've forgotten to get a better view of the redstone lamp in the extended practical view, it's barely visible as the side of one of the blocks on an edge piece.

aside from the hill and daylight detector, the light and redstone would be completely hidden,

1
  • eh, these 2 last screenshots are identical.
    – Nyerguds
    Commented Jun 4, 2014 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.