From 26de5a69b1f3722713aff92be5a765c2675248a3 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Tue, 10 Dec 2024 17:09:34 +0800 Subject: [PATCH] add metadata to timescale command --- docs/tutorials/comingsoon.md | 2 +- docs/tutorials/index.md | 4 ++-- examplemods/timescale_command.js | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/comingsoon.md b/docs/tutorials/comingsoon.md index 8276d92..a19fb3c 100644 --- a/docs/tutorials/comingsoon.md +++ b/docs/tutorials/comingsoon.md @@ -1 +1 @@ -# Coming Soon \ No newline at end of file +## Coming Soon / It's not done yet. \ No newline at end of file diff --git a/docs/tutorials/index.md b/docs/tutorials/index.md index 9706e3d..ced90a0 100644 --- a/docs/tutorials/index.md +++ b/docs/tutorials/index.md @@ -34,5 +34,5 @@ Prerequisites: Tutorials: - [Custom Blocks](custom_block.md) -- [Custom Items](comingsoon) -- [Timescale Command](comingsoon) \ No newline at end of file +- [Custom Items](comingsoon.md) +- [Timescale Command](comingsoon.md) \ No newline at end of file diff --git a/examplemods/timescale_command.js b/examplemods/timescale_command.js index fbf4176..5f90184 100644 --- a/examplemods/timescale_command.js +++ b/examplemods/timescale_command.js @@ -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]);