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