
版本:1.05
Bukkit:1.5.2/1.6.2/1.6.4
使用方法
端口(Port)
端口用于使你的电路与外部世界进行通信。例如,一个 XOR 门有两个“输入”端口和一个“输出”端口。一个记忆单元(SNNOR 锁存器/触发器)只有两个端口,“a”和“b”。
要创建一个端口,请在方块上放置告示牌并输入:
[port]
circuitname
instancename
portname
如果该实例名称尚未被占用,它将被创建。否则,此端口将被添加到电路实例集中。如果一个电路实例没有剩余端口,它将被自动清理。例如,一个 XOR 门的配置如下所示:
[port]
XOR
xor1
in1
[port]
XOR
xor1
in2
[port]
XOR
xor1
out
命令
你可以使用 /redstone、/circuit 和 /rm 来使用 Redstone Mania。
- /redstone list 列出所有电路;/redstone list [circuitname] 列出指定电路的端口
- /redstone port [name] 为你的电路设置一个真实世界的端口(首先选择一个方块)
- /redstone setdelay [delay] 在创建元件时设置延迟(选择方块)
- /redstone clickdelay [delay/disable] 设置点击方块时的延迟
- /redstone clearports 清除选定的端口
- /redstone cleardelays 清除已设置的延迟
- /redstone clear 同时清除端口和延迟
- /redstone save [name] 使用已设置的端口保存你的电路
- /redstone delete [name] 删除一个电路及其所有实例
- /redstone reload 重新加载所有电路(如果你更改了依赖电路)
- /redstone toggle [circuit] [instance] [port] ([state]) 切换给定电路的通电状态。要设置的状态是可选的,如果不提供则进行切换。
所有这些命令的权限为:
共享
电路以 .circuit 扩展名的文件形式存储在 circuits 子文件夹中。这些文件可以安全地随意传输。这是独一无二的,因为它允许你在多个服务器之间共享相同的电路。
常见问题解答
我尝试制作示例中的 XOR 电路,但找不到它?
没错,你必须先用红石制作一个。本页面上的视频展示了如何做到这一点。(在最末尾部分)我没有包含那些步骤,以便人们能够熟悉电路创建机制。
服务器抱怨缺少电路。我该怎么办?
移除 instances 子文件夹中该电路剩余的实例文件。可能是用户删除了一个电路,但实例文件没有被删除……原因不明。
我试图让我的电路即时运行,但它没有任何反应
检查电路中是否存在无限循环。如果发生这样的循环,插件会在某个时刻介入并停止它。如果你想在电路中使用循环,请为其设置最小的时钟频率为一刻钟(tick)。
链接


Version: 1.05
Bukkit: 1.5.2/1.6.2/1.6.4
Usage
Port
A port is used to make your circuit communicate with the outside world. An XOR-gate, for example, has two 'in' ports and one 'out' port. A memory field (SNNOR-latch/Flip-flop) has only two ports, 'a' and 'b'.
To make a port, place a sign on a block with:
[port]
circuitname
instancename
portname
If the instancename is not yet taken, it is made. Otherwise this port is added to the circuit instance set. If a circuit instance is out of ports it is automatically cleaned up. For example, an XOR-gate would look like this:
[port]
XOR
xor1
in1
[port]
XOR
xor1
in2
[port]
XOR
xor1
out
Commands
You can use /redstone , /circuit and /rm to use Redstone Mania.
- /redstone list to list all circuits, /redstone list [circuitname] to list the ports
- /redstone port [name] to set a real-world port for your circuit (first select a block)
- /redstone setdelay [delay] to set the delay for the element during creation (select block)
- /redstone clickdelay [delay/disable] to set a delay that is set when clicking blocks
- /redstone clearports to clear the selected ports
- /redstone cleardelays to clear set delays
- /redstone clear to clear both ports and delays
- /redstone save [name] to save your circuit using the ports set
- /redstone delete [name] to delete a circuit and all it's instances
- /redstone reload to re-load all circuits (in case you changed a dependency circuit)
- /redstone toggle [circuit] [instance] [port] ([state]) to toggle the powered state of a given circuit. State to set to is optional, toggles otherwise.
Permission for all these commands is:
Sharing
Circuits are stored in the circuits sub-folder as files with a .circuit extension. These files can be safely transferred as you like. This is unique, as it allows you to share the same circuits among multiple servers
FAQ
I tried to make the xor circuit in the example, but it couldn't find it?
That is right, you have to make one out of redstone first. The video on this page shows how to do just that. (at the very end) I didn't include those so people could get used to the circuit creation mechanisms.
The server is complaining about missing circuits. What do I do?
Remove remaining instance files of this circuit in the instances sub-folder. It could be an user deleted a circuit but the instances didn't get deleted...for whatever reason.
I tried to make my circuit instant, but it doesn't do anything
Check if there are no infinite loops going on in your circuit. If such a loop is happening, the plugin will step in at some point and stop it. If you want a loop in your circuit, give it the minimal clock rate of one tick.
Links

评论 0
登录后参与评分
还没有评论,来抢沙发吧