From f5f1a22b93e5d0cd9ca11b91c52097af0e9324ab Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 30 Jan 2021 23:41:22 +0100 Subject: [PATCH] Add sample-script-random-command (#972, #1117) --- .../config/sample-script-random-command.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 MinecraftClient/config/sample-script-random-command.cs diff --git a/MinecraftClient/config/sample-script-random-command.cs b/MinecraftClient/config/sample-script-random-command.cs new file mode 100644 index 00000000..506f7e65 --- /dev/null +++ b/MinecraftClient/config/sample-script-random-command.cs @@ -0,0 +1,11 @@ +//MCCScript 1.0 + +string[] commands = new[] { + "send command1", + "send command2", + "send command3" +}; + +int randomIndex = new Random().Next(0, commands.Length); +string randomCommand = commands[randomIndex]; +MCC.PerformInternalCommand(randomCommand); \ No newline at end of file