mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix TreeFarmer (#1157)
This commit is contained in:
parent
b5c7dc4fc4
commit
432f55460d
1 changed files with 6 additions and 11 deletions
|
|
@ -26,25 +26,20 @@ public class TreeFarmer : ChatBot
|
|||
case Material.OakLog:
|
||||
// Tree has grown, dig 4 blocks
|
||||
ChangeSlot(0);
|
||||
DigBlock(0, sapling, 1);
|
||||
DigBlock(sapling);
|
||||
Thread.Sleep(100);
|
||||
DigBlock(2, sapling, 1);
|
||||
// 1
|
||||
DigBlock(0, new Location(sapling.X, sapling.Y + 1, sapling.Z), 1);
|
||||
DigBlock(new Location(sapling.X, sapling.Y + 1, sapling.Z));
|
||||
Thread.Sleep(100);
|
||||
DigBlock(2, new Location(sapling.X, sapling.Y + 1, sapling.Z), 1);
|
||||
// 2
|
||||
DigBlock(0, new Location(sapling.X, sapling.Y + 2, sapling.Z), 1);
|
||||
DigBlock(new Location(sapling.X, sapling.Y + 2, sapling.Z));
|
||||
Thread.Sleep(100);
|
||||
DigBlock(2, new Location(sapling.X, sapling.Y + 2, sapling.Z), 1);
|
||||
// 3
|
||||
DigBlock(0, new Location(sapling.X, sapling.Y + 3, sapling.Z), 1);
|
||||
DigBlock(new Location(sapling.X, sapling.Y + 3, sapling.Z));
|
||||
Thread.Sleep(100);
|
||||
DigBlock(2, new Location(sapling.X, sapling.Y + 3, sapling.Z), 1);
|
||||
// 4
|
||||
DigBlock(0, new Location(sapling.X, sapling.Y + 4, sapling.Z), 1);
|
||||
DigBlock(new Location(sapling.X, sapling.Y + 4, sapling.Z);
|
||||
Thread.Sleep(100);
|
||||
DigBlock(2, new Location(sapling.X, sapling.Y + 4, sapling.Z), 1);
|
||||
break;
|
||||
case Material.Air:
|
||||
// No tree, plant something
|
||||
|
|
@ -61,4 +56,4 @@ public class TreeFarmer : ChatBot
|
|||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue