mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add CobblestoneMiner and TreeFarmer by Nekiplay (#1047)
This commit is contained in:
parent
fa0f91aad8
commit
ee96788019
2 changed files with 101 additions and 0 deletions
37
MinecraftClient/config/ChatBots/CobblestoneMiner.cs
Normal file
37
MinecraftClient/config/ChatBots/CobblestoneMiner.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
//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:
|
||||
PlayerDigging(0, cobblestone, 1);
|
||||
Thread.Sleep(100);
|
||||
PlayerDigging(2, cobblestone, 1);
|
||||
break;
|
||||
case Material.Cobblestone:
|
||||
PlayerDigging(0, cobblestone, 1);
|
||||
Thread.Sleep(100);
|
||||
PlayerDigging(2, cobblestone, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue