From 674bf4f6356353dae1b501290e5d1809cbe4dbb3 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sun, 7 Jun 2020 23:37:17 +0200 Subject: [PATCH] Add SurgarCaneMiner by Nekiplay (#1047) --- .../config/ChatBots/SurgarCaneMiner.cs | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 MinecraftClient/config/ChatBots/SurgarCaneMiner.cs diff --git a/MinecraftClient/config/ChatBots/SurgarCaneMiner.cs b/MinecraftClient/config/ChatBots/SurgarCaneMiner.cs new file mode 100644 index 00000000..d26a0c1f --- /dev/null +++ b/MinecraftClient/config/ChatBots/SurgarCaneMiner.cs @@ -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; + } + } +} \ No newline at end of file