Minecraft Wiki

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

了解更多

Minecraft Wiki
Advertisement

这个教程将向你介绍随机产生器的建造,它是一种广泛地被用于在红石作品中增加随机部分的方法。这个作品事实上是用随机游荡的生物,通过压力板或绊线,这种随机的游荡可以被转化为一个红石信号。总是包含猪随机产生器的作品包括赌博机和boss战斗。(请注意现在可以用一种更简洁的方法产生随机,即使用投掷器, 漏斗红石比较器

原材料

  • 大量实体方块,种类不限
  • 玻璃
  • 压力板若干
  • 一只动物

建造方法

  1. 为你的随机器建造一个房间。可以是任意你想要的尺寸,只要能把你的动物安置进去。
  2. 在屋子内部安放压力板或绊线钩。
  3. 将动物赶入屋内,确保它可以激活你的压力板或拌线钩。
  4. 将压力板与红石电路相连。

提示与技巧

  • It is recommended that you use passive mobs, as they won't despawn and will be easier to place inside.
  • If you do feel the need to use a hostile mob, either give it some armor or something to hold (this will work with zombies, skeletons and zombie pigmen) or use a name tag on it. All of these will prevent the mob from despawning.
  • If the mob is too far from a player, it will stop moving, so it is recommended that you place the randomiser as close to the player as possible.
  • Two commonly used mobs in pig randomisers are snow golems and chickens. Snow golems are used because they move silently and can be created inside the randomiser, and chickens because they are one of the smallest usable mobs (allowing the randomiser to be compact) and they can also be created inside of the randomiser.
  • To decrease how often the redstone is activated, make the room bigger or remove some pressure plates. To increase how often the redstone is activated, do the opposite.

例子

FVDisco's slot machine 使用3个猪随机产生器建造的老虎机。

Advertisement