mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add SurgarCaneMiner by Nekiplay (#1047)
This commit is contained in:
parent
1c1d137ab7
commit
674bf4f635
1 changed files with 34 additions and 0 deletions
34
MinecraftClient/config/ChatBots/SurgarCaneMiner.cs
Normal file
34
MinecraftClient/config/ChatBots/SurgarCaneMiner.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
//MCCScript 1.0
|
||||
|
||||
MCC.LoadBot(new SurgarCaneMiner());
|
||||
|
||||
//MCCScript Extensions
|
||||
|
||||
public class SurgarCaneMiner : ChatBot
|
||||
{
|
||||
// === CONFIG - REPLACE SURGAR CANE LOCATION x y z VALUES HERE ===
|
||||
// You need to stand in front of the sugar cane
|
||||
Location SugarCane = new Location(x, y, z);
|
||||
// === END OF CONFIG ===
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
LogToConsole("Bot enabled!");
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
Material blockType = GetWorld().GetBlock(SugarCane).Type;
|
||||
switch (blockType)
|
||||
{
|
||||
case Material.SugarCane:
|
||||
PlayerDigging(0, SugarCane, 1);
|
||||
Thread.Sleep(50);
|
||||
PlayerDigging(2, SugarCane, 1);
|
||||
break;
|
||||
default:
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue