Minecraft-Console-Client/MinecraftClient/config/sample-script.cs
ORelio e29b4ee545 Add support for C# script extensions
- Allow defining function for use into the script
- Allow defining a ChatBot for loading it into MCC
- Improve sample script and add more examples
- Todo add new documentation into the readme file
2015-06-21 18:45:43 +02:00

14 lines
No EOL
441 B
C#

//MCCScript 1.0
/* This is a sample script for Minecraft Console Client
* The code provided in this file will be compiled at runtime and executed
* Allowed instructions: Any C# code AND all methods provided by the bot API */
for (int i = 0; i < 5; i++)
{
int count = GetVarAsInt("test") + 1;
SetVar("test", count);
SendText("Hello World no. " + count);
LogToConsole("Sleeping for 5 seconds...");
Thread.Sleep(5000);
}