replace
This commit is contained in:
@@ -152,7 +152,7 @@ public class AnotherStealer extends Manager {
|
||||
return;
|
||||
}
|
||||
public static BlockPos getAjacentChest() {
|
||||
BlockPos[] pos = GoalGetToBlock.ajacentBlocks(Minecraft.getMinecraft().player.getPosition0());
|
||||
BlockPos[] pos = GoalGetToBlock.ajacentBlocks(Baritone.playerFeet);
|
||||
WorldClient w = Minecraft.getMinecraft().world;
|
||||
for (BlockPos p : pos) {
|
||||
if (!alreadyStolenFrom.contains(p) && w.getBlockState(p).getBlock().equals(CHEST)) {
|
||||
|
||||
@@ -216,19 +216,19 @@ public class CraftingTask extends ManagerTick {
|
||||
if (placeHeldBlockNearby()) {
|
||||
return true;
|
||||
}
|
||||
BlockPos player = Minecraft.getMinecraft().player.getPosition0();
|
||||
BlockPos player = Baritone.playerFeet;
|
||||
if (Baritone.isAir(player.down()) || Baritone.isAir(player.up(2))) {
|
||||
Out.gui("Placing down", Out.Mode.Debug);
|
||||
LookManager.lookAtBlock(Minecraft.getMinecraft().player.getPosition0().down(), true);
|
||||
LookManager.lookAtBlock(Baritone.playerFeet.down(), true);
|
||||
MovementManager.jumping = true;
|
||||
MovementManager.sneak = true;
|
||||
if (Minecraft.getMinecraft().player.getPosition0().down().equals(Baritone.whatAreYouLookingAt()) || Minecraft.getMinecraft().player.getPosition0().down().down().equals(Baritone.whatAreYouLookingAt())) {
|
||||
if (Baritone.playerFeet.down().equals(Baritone.whatAreYouLookingAt()) || Baritone.playerFeet.down().down().equals(Baritone.whatAreYouLookingAt())) {
|
||||
Minecraft.getMinecraft().rightClickMouse();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/*
|
||||
LookManager.lookAtBlock(Minecraft.getMinecraft().player.getPosition0().down().north(), true);
|
||||
LookManager.lookAtBlock(Baritone.playerFeet.down().north(), true);
|
||||
LookManager.beSketchy();
|
||||
Baritone.forward = new Random().nextBoolean();
|
||||
Baritone.backward = new Random().nextBoolean();
|
||||
@@ -247,7 +247,7 @@ public class CraftingTask extends ManagerTick {
|
||||
return false;
|
||||
}
|
||||
public static boolean placeHeldBlockNearby() {
|
||||
BlockPos player = Minecraft.getMinecraft().player.getPosition0();
|
||||
BlockPos player = Baritone.playerFeet;
|
||||
for (int x = player.getX() - 3; x <= player.getX() + 3; x++) {
|
||||
for (int y = player.getY() - 2; y <= player.getY() + 1; y++) {
|
||||
for (int z = player.getZ() - 3; z <= player.getZ() + 3; z++) {
|
||||
|
||||
@@ -241,8 +241,8 @@ public class InventoryManager extends Manager {
|
||||
BlockPos look = Baritone.whatAreYouLookingAt();
|
||||
boolean doThrowAway = true;
|
||||
if (look != null) {
|
||||
int xDiff = look.getX() - Minecraft.getMinecraft().player.getPosition0().getX();
|
||||
int zDiff = look.getZ() - Minecraft.getMinecraft().player.getPosition0().getZ();
|
||||
int xDiff = look.getX() - Baritone.playerFeet.getX();
|
||||
int zDiff = look.getZ() - Baritone.playerFeet.getZ();
|
||||
if (Math.abs(xDiff) + Math.abs(zDiff) <= 2) {
|
||||
doThrowAway = false;//dont throw away if we are looking at a wall and we are close, because we'll probably just pick it right back up again
|
||||
}
|
||||
|
||||
@@ -167,12 +167,12 @@ public class SmeltingTask extends ManagerTick {
|
||||
if (placeHeldBlockNearby()) {
|
||||
return true;
|
||||
}
|
||||
BlockPos player = Minecraft.getMinecraft().player.getPosition0();
|
||||
BlockPos player = Baritone.playerFeet;
|
||||
if (Baritone.isAir(player.down()) || Baritone.isAir(player.up(2))) {
|
||||
Out.gui("Placing down", Out.Mode.Debug);
|
||||
LookManager.lookAtBlock(Minecraft.getMinecraft().player.getPosition0().down(), true);
|
||||
LookManager.lookAtBlock(Baritone.playerFeet.down(), true);
|
||||
MovementManager.jumping = true;
|
||||
if (Minecraft.getMinecraft().player.getPosition0().down().equals(Baritone.whatAreYouLookingAt()) || Minecraft.getMinecraft().player.getPosition0().down().down().equals(Baritone.whatAreYouLookingAt())) {
|
||||
if (Baritone.playerFeet.down().equals(Baritone.whatAreYouLookingAt()) || Baritone.playerFeet.down().down().equals(Baritone.whatAreYouLookingAt())) {
|
||||
Minecraft.getMinecraft().rightClickMouse();
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user