Re: [閒聊] 紅石燈+感光器
看板Minecraft (當個創世神)作者lc85301 (pomelocandy)時間11年前 (2013/05/21 17:04)推噓8(8推 0噓 7→)留言15則, 8人參與討論串2/2 (看更多)
※ 引述《lc85301 (pomelocandy)》之銘言:
※ 引述《ty95768 (清しく正しくお宅)》之銘言:
: 不知道有沒有人PO過
: 該構造是用6個紅石燈將感光器上下左右都包起來
: 如此一來,白天當然是全亮的XD
: 在日夜交替時也因電力不夠全暗
: 但是!!! 進入深夜後(應該相當於晚上7.8點吧)
: 6個紅石燈開始一閃一閃,簡直是天然的閃爍器(而且是六角球型)!!! 完美!
: 目前只確定要在空曠地有效
: 在室內則不知為何在晚上也判定為有陽光所以全亮 XD
我發現minecraft wiki daylight sensor有講:
Night:
Due to a bug, a covered sensor currently emits a signal at night.
The following table corresponds to a sensor that cannot receive any daylight.
Weather is irrelevant at night.
其實我有點懷疑是bug還是feature.
也不確定他們是有沒有想要修的意思
也許Mojang想要同時做得到daylight sensor跟night sensor
假設minecraft世界有三種狀態:
日光,夜光(月光),非自然光(密閉環境,有火把,及沒有光都算)
日光下:sensor依光強度發射信號
example: https://dl.dropboxusercontent.com/u/3192346/MC/sensor/light.png
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/light.png)
夜光下:sensor不發射
example: https://dl.dropboxusercontent.com/u/3192346/MC/sensor/night.png
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/night.png)
以上兩種狀況,sensor所在的位置都可以看到天空,所以是自然光。
非自然光:夜間sensor依時間發射信號
我們把sensor放到室內,如圖,自然光透不進來
https://dl.dropboxusercontent.com/u/3192346/MC/sensor/house_nolight.png
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/house_nolight.png)
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/house_signal.png)
在牆上敲洞,夜光透進來的話,就不發射了。
https://dl.dropboxusercontent.com/u/3192346/MC/sensor/house_night.png
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/house_night.png)
--
用這個…bug-feature完成日間與夜間的時間偵測
直接看圖:
https://dl.dropboxusercontent.com/u/3192346/MC/sensor/signal1.png
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/signal1.png)
![](https://dl.dropboxusercontent.com/u/3192346/MC/sensor/signal2.png)
因為夜間時間偵測必須要完全蓋住,看不到夜光才會有用
所以一定要像圖中,透過一層repeater經Block轉送
隨時間流動,就會看到亮起來的R數量不一樣,我試過最多八個
--
這個閃爍器是這個bug-feature的結果
我猜是因為紅石燈不亮的時候是opaque,但亮的時候會變成透明的
因此全部蓋住之後-> sensor測到非自然光,在深夜會發出信號 -> 紅石燈亮
紅石燈變透明,以致sensor看到夜光,不發射信號 -> 紅石燈暗
然後就重複了
放室內因為只剩非自然光,夜間持續發射,就全亮了
--
______ |\
/ \ | \
/ ● ● \ |__\
/ ______ \ |
/ \__/ \___|
/______________\ |
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.45.131
※ 編輯: lc85301 來自: 140.112.45.131 (05/21 06:11)
※ 編輯: lc85301 來自: 140.112.4.192 (05/21 11:06)
推
05/21 11:17, , 1F
05/21 11:17, 1F
推
05/21 11:22, , 2F
05/21 11:22, 2F
推
05/21 12:25, , 3F
05/21 12:25, 3F
推
05/21 14:11, , 4F
05/21 14:11, 4F
推
05/21 16:16, , 5F
05/21 16:16, 5F
卵石 is the best
※ 編輯: lc85301 來自: 140.112.45.131 (05/21 17:05)
推
05/21 17:06, , 6F
05/21 17:06, 6F
老實說,我真的懷疑這是bug還是feature,看起來很故意…
※ 編輯: lc85301 來自: 140.112.45.131 (05/21 17:14)
推
05/21 17:44, , 7F
05/21 17:44, 7F
→
05/21 17:45, , 8F
05/21 17:45, 8F
雖然說正午光強度不同
不過依維基的內容,每天sensor開始/停止輸出信號的時間是固定
都是13680-22340中間不輸出
→
05/21 19:39, , 9F
05/21 19:39, 9F
推
05/21 21:57, , 10F
05/21 21:57, 10F
→
05/22 08:50, , 11F
05/22 08:50, 11F
※ 編輯: lc85301 來自: 140.112.45.131 (05/23 19:07)
→
05/24 21:01, , 12F
05/24 21:01, 12F
→
05/25 09:44, , 13F
05/25 09:44, 13F
→
05/25 10:33, , 14F
05/25 10:33, 14F
→
05/25 10:35, , 15F
05/25 10:35, 15F
討論串 (同標題文章)
Minecraft 近期熱門文章
PTT遊戲區 即時熱門文章
82
146