mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
37 lines
No EOL
1 KiB
C#
37 lines
No EOL
1 KiB
C#
//MCCScript 1.0
|
|
|
|
MCC.LoadBot(new CobblestoneMiner());
|
|
|
|
//MCCScript Extensions
|
|
|
|
public class CobblestoneMiner: ChatBot
|
|
{
|
|
// === CONFIG - REPLACE COBBLESTONE LOCATION x y z VALUES HERE ===
|
|
// You need to stand in front of the cobblestone block to mine
|
|
// Also make sure the Cobblestone will regenerate e.g. using water and lava
|
|
Location cobblestone = new Location(x, y, z);
|
|
// === END OF CONFIG ===
|
|
|
|
public override void Initialize()
|
|
{
|
|
LogToConsole("Bot enabled!");
|
|
}
|
|
|
|
public override void Update()
|
|
{
|
|
Material blockType = GetWorld().GetBlock(cobblestone).Type;
|
|
switch (blockType)
|
|
{
|
|
case Material.Stone:
|
|
DigBlock(0, cobblestone, 1);
|
|
Thread.Sleep(100);
|
|
DigBlock(2, cobblestone, 1);
|
|
break;
|
|
case Material.Cobblestone:
|
|
DigBlock(0, cobblestone, 1);
|
|
Thread.Sleep(100);
|
|
DigBlock(2, cobblestone, 1);
|
|
break;
|
|
}
|
|
}
|
|
} |