add metadata to timescale command

This commit is contained in:
ZXMushroom63 2024-12-10 17:09:34 +08:00
parent 8d75013fe7
commit 26de5a69b1
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
# Coming Soon
## Coming Soon / It's not done yet.

View File

@ -34,5 +34,5 @@ Prerequisites:
Tutorials:
- [Custom Blocks](custom_block.md)
- [Custom Items](comingsoon)
- [Timescale Command](comingsoon)
- [Custom Items](comingsoon.md)
- [Timescale Command](comingsoon.md)

View File

@ -1,4 +1,7 @@
(() => {
ModAPI.title("Timescale Command");
ModAPI.description("/timescale 0.5 to halve the speed of time");
ModAPI.credits("By ZXMushroom63");
PluginAPI.addEventListener("sendchatmessage", (event) => {
if (event.message.toLowerCase().startsWith("/timescale")) {
var speed = parseFloat(event.message.split(" ")[1]);