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

Item frame combination locks are a step up in complexity from lever locks. Items in item frames can be rotated into 8 different positions. This rotation can be detected by a comparator which will output a signal strength 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 redstone torch and leave a repeater connected to the comparator.

Advertisement