Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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).

share|improve this question
    
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 Apr 30 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. –  Trent Hawkins Apr 30 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/… –  Marco Geertsma Apr 30 at 14:23
2  
This may be possible in the new snapshot, where slime blocks pushed by pistons move surrounding blocks too... –  fredley Apr 30 at 14:26
1  
@OrcJMR You're wrong, see my answer. –  orlp May 1 at 6:54

7 Answers 7

up vote 11 down vote accepted

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

share|improve this answer
2  
This is great, good use of carpets! –  fredley May 1 at 9:45
    
A brilliant use of furnaces, rather :-) Why not chests, though? Can't carpets be put on them? –  Orc JMR May 1 at 10:44
    
String might also be a solution, haven't tested it though. –  MrLemon May 1 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 May 1 at 13:32
    
Neat and nicely compact. I'll be using this, thanks! –  Luke May 6 at 11:09

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!

share|improve this answer
2  
Not the OP, but here you go Here is a copy of the world so you can inspect it rapidshare.com/share/8E9F2291940D8376C8E58CADFEDC2158, one pressure plate extends, one turns it on, and one retracts it. Just wire the 3 ciructs in to a daylight sensor and some comparators so only one ciruct is on at a given time and you are good to go. –  Scott Chamberlain May 1 at 1:55

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.

share|improve this answer

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.

share|improve this answer
    
Amazing! Is it possible to get a video of this at work? –  Luke May 1 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 May 1 at 11:25
    
Thanks, I might just try building it myself. –  Luke May 1 at 11:58
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 May 6 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 May 10 at 12:11

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.

share|improve this answer
    
I only just started the server last weekend, haven't had time to install any mods. –  Luke Apr 30 at 16:34

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

share|improve this answer

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,

share|improve this answer
    
eh, these 2 last screenshots are identical. –  Nyerguds Jun 4 at 9:10
    
thank you for noticing, i'll fix this now –  jc3833 Jun 4 at 23:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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