DarkTimer 数据包,允许你自定义物品删除的持续时间以及聊天公告文本。
(将其放置在世界文件的 datapacks 文件夹内)
使用说明
进入 data\darktimer\functions\ 目录
然后使用任意文本编辑器打开 darktimerwarn10.mcfunction
你会在最后一行看到 540s。将此数字更改为你想要的值。你也可以修改顶部的文本以匹配你所设置的秒数。
默认情况下,darktimer 以 1 分钟为基础时间,在此基础上增加更多时间来生成你所需的循环周期。
540s = 9 分钟
加上 1 分钟的基础时间,意味着计时器将每 10 分钟清除一次掉落的物品。
你可以将 540s 更改为任意秒数,系统会在此基础上加上 1 分钟的基础时间,得出总分钟数。
例如:
60s = 2 分钟 (请将第一行的文本更改为此内容)
540s = 10 分钟 (请将第一行的文本更改为此内容)
1740s = 30 分钟 (请将第一行的文本更改为此内容)
----
注意:你还需要将聊天框中的文本更改为你所设置的计时器数值对应的文本。
简单编辑 "A dark mage will clear dropped items in 10 minutes.." 中的 "10 minutes..." 即可。
例如,如果你使用的是 1740s(即 30 分钟的持续时间),
那么你的 tellraw 命令应如下所示:
tellraw @a {"text": "A dark mage will clear dropped items in 30 minutes..", "color": "red", "bold":"false"}
---
你现在还可以更改其他倒计时行(如 1 分钟和 10 秒公告)的文本。
请针对相应的时间段,修改以下文件中的文本:
darktimerwarn10.mcfunction - 10 分钟公告
darktimerwarn1.mcfunction - 1 分钟公告
darktimerwarn10s.mcfunction - 10 秒公告
darktimer.mcfunction - 立即执行公告
DarkTimer datapack to change the item deletion duration and chat announcement text to anything you want.
(Place inside a world's datapacks folder)
Instructions
Go to data\darktimer\functions\
then open darktimerwarn10.mcfunction using any text editor
You will see 540s in the last line. Change this number to whatever you want. You can also edit the text on top to match your seconds
By default darktimer uses 1 minute as its base time, then on top of that you add more time to make whatever cycle time you need
540s = 9 minutes
plus the 1 minute base time, it means the timer will clear dropped items every 10 minutes
you can change 540s to any number of seconds you want, it then adds 1 minute base time to that and gives the total number of minutes
For example
60s = 2 minutes (change the text on first line to this)
540s = 10 minutes (change the text on first line to this)
1740s = 30 minutes (change the text on first line to this)
----
Note: You will also need to change the chat box text to whatever value you change the timer to.
Simple edit the "10 minutes..." in "A dark mage will clear dropped items in 10 minutes.."
For example, if you are using 1740s which is 30 minutes duration,
Then your tellraw line will read as:-
tellraw @a {"text": "A dark mage will clear dropped items in 30 minutes..", "color": "red", "bold":"false"}
---
You can now also change the text for the other countdown lines such as 1 minute and 10 second announcements
Change the text in the following files for the relevant time:-
darktimerwarn10.mcfunction - 10 minute announcement
darktimerwarn1.mcfunction - 1 minute announcement
darktimerwarn10s.mcfunction - 10 second announcement
darktimer.mcfunction - immediate announcement
评论 0
登录后参与评分
还没有评论,来抢沙发吧