
无线红石火把
MagicTorches 提供了一种建立无线红石火把连接的方法。每个 MagicTorch 阵列包含一个发射器和任意数量的接收器。当发射器改变其状态(开启或关闭)时,该变化会传输到所有接收火把。
接收火把类型
| 类型 | 描述 |
|---|---|
| 直接(Direct) | 始终与发射器状态一致 |
| 反向(Inverse) | 始终与发射器状态相反 |
| 切换(Toggle) | 改变状态,并在一段时间内忽略所有其他传输信号。可用于制作在按下按钮时改变状态、但在释放按钮时不恢复状态的火把。 |
| 计时(Timer) | 改变状态,等待一段时间后(忽略所有其他传输信号),再恢复原状。 |
| 延迟(Delay) | 在处理信号前等待一段时间。其行为相当于发射器与接收器之间存在任意数量的中继器。 |
教程视频
这是来自上一个版本的视频,但它快速展示了如何设置相关内容。命令略有变化,且现在提供了更多选项。
<p>
德语教程(感谢 Rogge88):
命令
/mt create <name> [direct|inverse|toggle|delay|timer] - 创建一个 MagicTorch 数组。接收端红石火把的选择模式将为直连(默认)、反向、切换(上一版本中称为 delay)、延迟或计时器。
/mt edit <name> - 编辑现有的火把数组。
/mt cancel - 取消创建或编辑火把数组。
/mt finish - 完成 MagicTorch 数组的创建或编辑,并将其命名为 <name>。
/mt direct - 将接下来选择的接收端火把设置为直连接收模式。
/mt inverse - 将接下来选择的接收端火把设置为反向接收模式。
/mt toggle [time] - 将接下来选择的接收端火把设置为切换接收模式,并指定时间间隔。默认时间在 config.yml 中配置。
/mt delay [time] - 将接下来选择的接收端火把设置为延迟接收模式,并指定时间间隔。默认时间在 config.yml 中配置。
/mt timer [time] - 将接下来选择的接收端火把设置为计时器接收模式,并指定时间间隔。默认时间在 config.yml 中配置。
/mt delete <name> - 删除指定名称的火把数组。
/mt list [name] [page] - 分页列出你拥有的火把数组,或者管理员可以指定玩家名称以列出其数组。
/mt info <name> - 显示指定名称火把数组的信息。
/mt price - 显示当前正在编辑或创建的数组的价格。需要经济插件支持(Vault)。
/mt rate - 显示创建和编辑火把的费用比率。需要经济插件支持(Vault)。
/mt enable - 管理员:重新启用所有已加载的 MT Torch 数组,在其被禁用之后。
/mt disable - 管理员:禁用所有已加载的 MT Torch 数组。
/mt reload - 管理员:从数据库重新加载 MagicTorches。
/mt prune - 从数据库中移除任何未加载的 MagicTorch 数组。
权限
| 权限 | 描述 |
|---|---|
| magictorches.access | 基本命令访问权限。任何需要创建/编辑火把的用户都需要此权限。 |
| magictorches.create.direct | 允许用户创建具有直连接收模式的数组。 |
| magictorches.create.inverse | 允许用户创建具有反向接收模式的数组。 |
| magictorches.create.toggle | 允许用户创建具有切换接收模式的数组。 |
| magictorches.create.delay | 允许用户创建具有延迟接收模式的数组。 |
| magictorches.create.timer | 允许用户创建具有计时器接收模式的数组。 |
| magictorches.admin | 允许用户查看、编辑、列出和删除所有 MagicTorch 数组。还允许用户重新加载 MT 数据库。 |
| magictorches.* | 授予所有权限 |
| magictorches.use | 授予所有权限,除了 magictorches.admin |
默认 config.yml
默认的 config.yml 可以在 这里 找到。
基本使用说明
要开始创建一个 MagicTorch 数组(即一个无线发射火把连接到多种接收端火把),只需输入 /mt create <name>。左键点击红石火把会将其指定为无线发射端。右键点击红石火把会将其添加/移除出接收端数组。
每个接收端火把都被分配一种类型:直连、反向、切换、计时器或延迟。你可以在创建火把时通过输入 /mt create [direct|inverse|toggle|delay|timer],或者在创建 MagicTorch 数组时输入 /mt direct、/mt inverse、/mt toggle [time]、/mt timer [time] 或 /mt delay [time] 来指定类型。你可以拥有多种不同类型的接收端。类型仅适用于你在指定类型后选择的那些接收端。
当你选择了所有火把后,输入 /mt finish 完成数组创建,或输入 /mt cancel 取消数组创建。此时数组已激活,发射端火把会将它收到的任何功率变化传输到其数组中的每个接收端火把。
编辑过程类似。要编辑,请输入 /mt edit <name>。在重新分配火把类型时,你必须先从数组中移除该接收端,然后再以新的类型/设置将其添加回来。例如,要将直连接收端改为反向,你需要右键点击将该火把从数组中移除,然后输入 /mt inverse,再右键点击将该火把重新添加回数组。
讨论
请参见 论坛 以讨论此插件。

Wireless Redstone Torches
MagicTorches gives you a way to make wireless redstone torch connections. Each MagicTorch array has one transmitter and any number of receivers. When the transmitter changes its state (to on or off), that change is transmitted to all of the receiver torches.
Receiver Torch Types
| Type | Description |
|---|---|
| Direct | matches the transmitter at all times |
| Inverse | opposite of the transmitter at all times |
| Toggle | changes state, and ignores all other transmits for a period of time. Can be used to make a torch that changes state when a button is pushed down, but doesn't change back when the button is released. |
| Timer | changes state, waits some period of time (ignoring all other transmitted signals), then changes back. |
| Delay | waits a period of time before processing the signal. It acts as if there are any number of repeaters between the transmitter and receiver. |
Tutorial Video
This is from the last version, but it shows you quickly how to set things up. Commands have changed slightly, and there are more options now.
<p>
German Tutorial (thanks Rogge88):
Commands
/mt create <name> [direct|inverse|toggle|delay|timer] - Creates a MagicTorch array. Receiver torches selected will be direct (default), inverse, toggle (was called delay in last version), delay, or timer.
/mt edit <name> - Edit an existing torch array.
/mt cancel - Cancels a torch creation or edit.
/mt finish - Finishes the creation or edit of a MagicTorch array, and names it <name>.
/mt direct - Sets the next receiver torches selected to be direct receivers.
/mt inverse - Sets the next receiver torches selected to be inverse receivers.
/mt toggle [time] - Sets the next receiver torches selected to be toggle receivers, with the time specified. Default time is specified in config.yml.
/mt delay [time] - Sets the next receiver torches selected to be delay receivers, with the time specified. Default time is specified in config.yml.
/mt timer [time] - Sets the next receiver torches selected to be timer receivers, with the time specified. Default time is specified in config.yml.
/mt delete <name> - Delete the named torch array.
/mt list [name] [page] - paged list torch arrays that you own, or admins can specify a player's name to list their arrays.
/mt info <name> - Shows info for the named torch array.
/mt price - Shows the current price of the array you're editing or creating. Requires economy (vault).
/mt rate - Shows the rates for creating and editing torches. Requires economy (vault).
/mt enable - Admin: Reenables all loaded MT Torch arrays, after they have been disabled.
/mt disable - Admin: Disables all loaded MT Torch arrays.
/mt reload - Admin: Reloads MagicTorches from the database.
/mt prune - Removes any non-loaded MagicTorch arrays from the database.
Permissions
| Permission | Description |
|---|---|
| magictorches.access | basic access to the command. Needed for anyone who will create/edit torches. |
| magictorches.create.direct | allows a user to create an array with direct receivers. |
| magictorches.create.inverse | allows a user to create an array with inverse receivers. |
| magictorches.create.toggle | allows a user to create an array with toggle receivers. |
| magictorches.create.delay | allows a user to create an array with delay receivers. |
| magictorches.create.timer | allows a user to create an array with timer receivers. |
| magictorches.admin | allows a user to see, edit, list and delete all MagicTorch arrays. Also allows user to reload the MT db. |
| magictorches.* | Gives all permissions |
| magictorches.use | Gives all permissions, except for magictorches.admin |
Default config.yml
The default config.yml can be found here.
Basic Instructions
To begin the creation a MagicTorch array (i.e., a wireless transmitter torch connected to a variety of receiver torches), simply type /mt create <name>. Left clicking on a redstone torch will designate that torch as a wireless transmitter. Right clicking on a redstone torch will add/remove it from the receiver array.
Each receiver torch is assigned a type: direct, inverse, toggle, timer or delay. You can specify the type when you create the torches by typing /mt create [direct|inverse|toggle|delay|timer], or by typing /mt direct, /mt inverse, /mt toggle [time], /mt timer [time], or /mt delay [time] while creating the MagicTorch array. You can have multiple receivers of different types. Types only apply to those receivers selected after you specify the type.
When you've selected all of your torches, type /mt finish to finish creating the array, or /mt cancel to cancel the array creation. It is now active and the transmitter torch will transmit any power changes it receives to every receiver torch in its array.
Editing is similar. To edit, type /mt edit <name>. When reassigning torch types, you must first remove the receiver from the array, and then add it back again with the new type/settings. E.g., to change a direct receiver to an inverse, you would right click to remove the torch from the array, then type /mt inverse, then right click to add the torch back in to the array.
Discussion
Please see the forum for discussion on this plugin.
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
下载 MagicTorches
MagicTorches v1.1.1 by Sorklin
- 修复了当玩家右键点击空气时(Bukkit 抛出无效事件)产生的 NPE 刷屏问题。
在使用拉杆获取编辑数组后的信息时,会出现偶发的 NPE。我正在努力排查该问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧