diff --git a/MinecraftClient/config/ChatBots/CobblestoneMiner.cs b/MinecraftClient/config/ChatBots/CobblestoneMiner.cs deleted file mode 100644 index 006db348..00000000 --- a/MinecraftClient/config/ChatBots/CobblestoneMiner.cs +++ /dev/null @@ -1,33 +0,0 @@ -//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(cobblestone); - break; - case Material.Cobblestone: - DigBlock(cobblestone); - break; - } - } -} diff --git a/MinecraftClient/config/ChatBots/MineCube.cs b/MinecraftClient/config/ChatBots/MineCube.cs index f2099bdf..d53c84ab 100644 --- a/MinecraftClient/config/ChatBots/MineCube.cs +++ b/MinecraftClient/config/ChatBots/MineCube.cs @@ -77,7 +77,7 @@ class MineCube : ChatBot // Skip this block if it can not be mined. if (Material2Tool.IsUnbreakable(mineLocationMaterial)) { continue; } - if (Settings.InventoryHandling && toolHandling) + if (GetInventoryEnabled() && toolHandling) { // Search this tool in hotbar and select the correct slot SelectCorrectSlotInHotbar( @@ -182,7 +182,7 @@ class MineCube : ChatBot waitForMoveToLocation(mineLocation, maxOffset: 4, minOffset:3); // Is inventoryhandling activated? - if (Settings.InventoryHandling && toolHandling) + if (GetInventoryEnabled() && toolHandling) { // Search this tool in hotbar and select the correct slot SelectCorrectSlotInHotbar( diff --git a/MinecraftClient/config/ChatBots/OreMiner.cs b/MinecraftClient/config/ChatBots/OreMiner.cs deleted file mode 100644 index e08e1e76..00000000 --- a/MinecraftClient/config/ChatBots/OreMiner.cs +++ /dev/null @@ -1,49 +0,0 @@ -//MCCScript 1.0 - -MCC.LoadBot(new OreMiner()); - -//MCCScript Extensions - -/// -/// This bot can mine blocks that auto-spawn at given locations -/// -public class OreMiner: ChatBot -{ - // === CONFIG - REPLACE BLOCK LOCATION x y z VALUES HERE === - List location = new List() - { - new Location(x, y, z), - new Location(x2, y2, z2), - new Location(x3, y3, z3), - // Add more here - }; - // === END OF CONFIG === - int index = 0; - - public override void Initialize() - { - LogToConsole("Bot enabled!"); - } - - public override void Update() - { - Material blockType = GetWorld().GetBlock(location[index]).Type; - switch (blockType) - { - //Adjust here block types to mine - case Material.DiamondOre: - case Material.EmeraldOre: - case Material.GoldOre: - case Material.IronOre: - case Material.CoalOre: - case Material.LapisOre: - case Material.RedstoneOre: - case Material.NetherQuartzOre: - DigBlock(location[index]); - break; - } - index++; - if (index >= location.Count) - index = 0; - } -}