易于使用,并在后台安静运行!
Wireless Redstone Timer
插件构思
你是否曾在使用由中继器构建的计时器(例如用于 PvP 游戏)时遭遇过卡顿或掉帧?
我构建了这样一个计时器,但对于所有参与我的 PvP 游戏的玩家来说,卡顿过于严重,以至于无法享受游戏。(计时器必须位于玩家范围内才能进行更新)
因此,我决定编写一个简单的插件,利用 Bukkit 调度器,从而为服务器和客户端节省性能!
使用方法
1. 设置一个命令方块!
2. 输入以下命令: [] -> 必填字段 | () -> 可选字段
delayedredstone [1] [2] [3] [4] [5] (6)
- X 坐标
- Y 坐标
- Z 坐标
- 延迟时间
- 方块变回原状后的延迟时间(“返回延迟”)
- 可选的方块 ID(如果省略此字段,本插件将使用红石块)
那么,具体会发生什么?
- 经过设定的延迟后,你选定的方块(X, Y, Z)将变成你在第 6 个字段中指定的材质,或者变成红石块。
- 此时,“返回延迟”开始生效。经过该延迟后,方块将变回原来的状态。如果你在此字段仅指定 0,则不会发生其他事情,方块将永远保持当前状态。(除非你将其破坏)
受影响的方块将位于命令方块所在的维度中。(命令方块在“world”维度 -> 受影响方块在“world”维度 / 命令方块在“freebuild”维度 -> 受影响方块在“freebuild”维度)
设置延迟
从 1.2 版本开始,你可以像以前一样直接输入数字来设置延迟(例如:56),这代表秒数;或者现在可以使用如下格式:
1h15m10s 或 1m6s 或 1h 或 2m 或 4m1h9s 或 1s1m ...
小时、分钟和秒都可以使用。
注意:你可以使用例如 10s6s,这将代表 16 秒(当然,5m4m 或 1h2h 也可以正常工作)
相对坐标
从 1.4 版本开始,你可以使用相对坐标,这对于复制电路非常有用。
示例:*-10 *10 *0
含义:受影响的方块将位于命令方块的位置,X 轴减去 10,Y 轴加上 10。
一般来说:你也可以使用除 * 之外的其他字母。
强大的功能
- 兼容 Multiverse / Multiworld(多世界管理插件)
- 你可以同时使用任意数量的命令方块
- 如果将第一个延迟设置为 0,可以用作无线红石
- 如果命令使用不正确,控制台会收到提示,并且在命令方块处会出现颜料溅射效果(参见颜色代码)(自 1.1 版本起)
- 两个或更多命令同时影响同一个方块时不会发生冲突(自 1.2 版本起)
颜色代码
更新日志
--------------------------------------
请始终牢记:此插件仅是红石系统(或自 1.1 更新以来的任何其他“系统”)的补充,无法替代红石知识!
Easy to use and runs quietly in the background!
Wireless Redstone Timer
Idea of this plugin
Have you ever experienced lag / stuttering when you wanted to use a timer built by repeaters like for a pvp game?
I built such a timer and for everyone playing my pvp game the stuttering was too heavy to just enjoy the game. (The timer must be inside the players range to be updated)
So I decided to write a simple plugin which makes use of the bukkit scheduler and saves performance for both the server and client!
Usage
1. Set up a command block!
2. Type this: [] -> needed field | () -> optional field
delayedredstone [1] [2] [3] [4] [5] (6)
- X coordinate
- Y coordinate
- Z coordinate
- Delay
- Delay after the block changes back into the old one ("returndelay")
- Optional block id (If you leave this field out my plugin will use a redstone block)
So what’s going on?
- After the delay the block which you selected (X, Y, Z) will change into the material you specify at field 6 or into a redstone block.
- Now the returndelay starts to work. After this delay the block will change back into the the old one. If you just specify 0 at this field nothing further will happen and the block will stay forever. (Until you break it)
The affected block will be in the world in which the command block is. (Command block in "world" -> affected block in "world" / Command block in world "freebuild" -> affected block in "freebuild")
Set the delays
As of version 1.2 you can set the delays by just typing a number like before (example: 56) which represents seconds or now using something like that:
1h15m10s or 1m6s or 1h or 2m or 4m1h9s or 1s1m ...
Hours, minutes and seconds will work.
Note: You can use for example 10s6s which will represent 16 seconds ( of course also 5m4m or 1h2h would work )
Relative coordinates
As of version 1.4 you can use relative coordinates which is great for copying a curcuit.
Example: *-10 *10 *0
Meaning: The affected block would be at the location of the command block with X-Axis minus 10 and Y-Axis plus 10.
In generel: You can also use all other letters instead of *.
Super great features
- Multiverse / Multiworld compatible
- You can simultaneously use as much command blocks as you want
- Can be used as wireless redstone if you set the first delay to 0
- If a command isn’t correctly used you will get a note in the console and a paint splash (see the color codes) at the command block (Since version 1.1)
- Two or even more commands affecting one single block at the same time won’t conflict (Since version 1.2)
Color Codes
Changelogs
--------------------------------------
Always keep in mind: This plugin is only an addition to the redstone system (or any other "system" since the 1.1 update) and can not replace redstone knowledge!
评论 0
登录后参与评分
还没有评论,来抢沙发吧