Minecraft Wiki

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

了解更多

Minecraft Wiki
Advertisement

密碼門鎖是一種紅石電路。它們通常具有許多組件,必須以正確的組合設定以啟動諸如門之類的東西。密碼門在建立冒險地圖時非常有用。請注意,如果您正在玩生存多人遊戲,其他玩家仍然可以利用該機制並在不知道密碼的情況下啟動它。

Order-insensitive combination locks

拉桿鎖

Lever lock
16 (2^4) combinations

拉桿鎖是最容易建造的紅石鎖之一。每個拉桿能使鎖具的組合數量增加一倍。可以使用2^n找到可能性,其中n是使用的槓桿數。

在建造時,您可能首先要放置槓桿並將它們放入所需的位置。接下來,您應該放置紅石火炬和中繼器。火炬置於槓桿下方,而中繼器則置於槓桿後方。完成後,應關閉所有火炬和中繼器。如果沒有,請仔細檢查所有打開的組件。

物品展示框鎖

Item frame combination lock
256 (8^3) combinations

物品展示框 combination locks are a step up in complexity from lever locks. 物品s in item frames can be rotated into 8 different positions. This rotation can be detected by a 紅石比較器 which will output a 訊號強度 from 1 to 8 depending on the position. Since each item frame has 8 possible states, the number of possible combinations can be found with 8 ^ n, where n is the number of item frames.

If you want to make it extra tricky, it is also possible to detect an empty item frame by when a comparator doesn't output anything. Simply omit the 紅石火炬 and leave a 紅石中繼器 connected to the comparator.

Advertisement