2022-11-28 13:55:05 +08:00
|
|
|
|
//MCCScript 1.0
|
2015-06-20 22:58:18 +02:00
|
|
|
|
|
|
|
|
|
|
/* This is a sample script for Minecraft Console Client
|
|
|
|
|
|
* The code provided in this file will be compiled at runtime and executed
|
2015-08-23 18:51:24 +02:00
|
|
|
|
* Allowed instructions: Any C# code AND methods provided by the MCC API */
|
2015-06-20 22:58:18 +02:00
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
|
|
|
{
|
2015-08-23 18:51:24 +02:00
|
|
|
|
int count = MCC.GetVarAsInt("test") + 1;
|
|
|
|
|
|
MCC.SetVar("test", count);
|
|
|
|
|
|
MCC.SendText("Hello World no. " + count);
|
|
|
|
|
|
MCC.LogToConsole("Sleeping for 5 seconds...");
|
2015-06-20 22:58:18 +02:00
|
|
|
|
Thread.Sleep(5000);
|
2022-11-28 13:55:05 +08:00
|
|
|
|
}
|