mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update config\ChatBots
This commit is contained in:
parent
51742c5606
commit
eb51f72fb8
3 changed files with 2 additions and 84 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -1,49 +0,0 @@
|
|||
//MCCScript 1.0
|
||||
|
||||
MCC.LoadBot(new OreMiner());
|
||||
|
||||
//MCCScript Extensions
|
||||
|
||||
/// <summary>
|
||||
/// This bot can mine blocks that auto-spawn at given locations
|
||||
/// </summary>
|
||||
public class OreMiner: ChatBot
|
||||
{
|
||||
// === CONFIG - REPLACE BLOCK LOCATION x y z VALUES HERE ===
|
||||
List<Location> location = new List<Location>()
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue