Loading...

Simple Daylight Sensor - Computercraft Tutorial (Crafticy)

1,618 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jan 28, 2013

How to use a Minecraft computer to detect daylight, or any clock time. This way you can make automatic night lights, for example.

-- Lua Code --
while true do
if os.time() **= 18.5 or os.time() **= 5 then
retstone.setOutput("right",true)
else
redstone.setOutput("right",false);
end

sleep(5)
end

** use smaller than and greater than! (can't do that in YouTube descriptions)

Crafticy is a new YouTube channel devoted to Minecraft videos. For this video, we used the Feed the Beast beta A package. If you have any questions, be sure to leave a comment below!

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...