Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
Ic translate
此條目的(部分)內容需要翻譯。

你可以幫助我們來翻譯此條目,但請勿使用機器翻譯

作為月光傳感器

Daylight Sensor NOT

一個最簡單的非門。紅石火炬會在夜晚點亮並在白天熄滅。中間的方塊可以是任何紅石火炬能依附的方塊,除了紅石磚。

透過將日光感測器與一個非門電路連接,日光感測器可以在亮度小於4時輸出訊號,這可以用於打開夜燈,或者控制自動門。

也可以將日光感測器封起來讓它無法探測陽光,再連接一個紅石比較器即可。

右擊日光感測器使其轉變成月光傳感器是另一種探測月光的方法。

作為鐘錶

因為日光感測器可以測量精確的亮度等級,所以可以用來製作鐘錶。

搭建"夜晚"字樣或者標明時間的吿示板,在其上安裝紅石燈並連接到日光感測器的傳出線路即可。

作為炸彈觸發裝置

日光感測器或月光傳感器跟 TNT 聯合可以用來製作炸彈觸發裝置。

除了最簡單的將其直接連接到 TNT 上來製作定時炸彈,也可以將日光感測器封閉起來,一旦封閉用的材料被破壞,日光感測器就會探測到陽光而觸發 TNT 。為了引誘玩家破壞,可以用蛋糕、礦石之類的材料。

透過不同的連接,還可以控制日光感測器連接的 TNT 的爆炸時間。

Timed jingle

Using some note blocks and redstone circuitry, you could make a set jingle that plays at certain times of the day, such as a device that warns you that nighttime is over, or is beginning. This could be used as a sort of morning alarm if you do not use a bed.

As a signal

The daylight sensor can easily be used to signal things at different times of day. With command blocks in the game, it can do many more things, like broadcast messages or change everyone's gamemodes (For whatever reason). Below are different methods for it.

Mining signal

If you are mining and you want to come up at a time of day, you can connect the daylight sensor and make it either send a redstone pulse down your mine or broadcast a command block message.

Command block command for message:

/say <message>

NOTE: On servers this will broadcast a message to the entire server.

So instead use this command to tell only yourself:

/tell <your name> <message>

As a server signal

Message

You can send out a message to the entire server at a certain point of day. The command block command for this is:
/say <message>

OR

/tell <player> <message>
First broadcasts a message to the server, second one tells a message to a player.

As a Weather Monitoring Station

Using a redstone clock that is synchronized with the Minecraft day that is broken up into segments according to the daylight sensor power output schedule, it is possible to use many daylight sensors to build a rainstorm and thunderstorm detector. Use a comparator to reduce the redstone clock's signal strength to below that of the daylight sensor's clear day output. Wire this into the side of another comparator that has a daylight detector wired to the back. The wire coming out of the end of the comparator will deactivate whenever there is a storm. Using this you can detect both rain and thunderstorms using two lines with adequate comparator sensitivity. Using this you can signal an alarm whenever there is a storm, count the number of storms, count the duration of the storms using another clock and some type of memory, and even all three. Note, however, that if the chunk is unloaded for any length of time, the redstone clock will no longer be in sync with the daylight sensors.


Advertisement