Skip to content
Merged

26.3 #5130

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"mixins.baritone.json"
],
"depends": {
"fabricloader": ">=0.19.3",
"minecraft": ["26.2"]
"fabricloader": ">=0.19.5",
"minecraft": "~26.3"
},
"custom": {
"modmenu": {
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ A Minecraft pathfinder bot.
modId="minecraft"
mandatory=true
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="[26.2]"
versionRange="[26.3, 26.4)"
ordering="NONE"
side="BOTH"
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ org.gradle.jvmargs=-Xmx4G

available_loaders=fabric,forge,neoforge,tweaker

mod_version=1.19.0
mod_version=1.20.0
maven_group=baritone
archives_base_name=baritone

java_version=25

minecraft_version=26.2
minecraft_version=26.3

forge_version=65.0.3
forge_version=66.0.2

neoforge_version=11-beta
neoforge_version=6-beta

fabric_version=0.19.3
fabric_version=0.19.5

nether_pathfinder_version=1.6

Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ A Minecraft pathfinder bot.
modId="minecraft"
type="required"
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange="[26.2]"
versionRange="[26.3, 26.4)"
ordering="NONE"
side="BOTH"

Expand Down
9 changes: 4 additions & 5 deletions src/api/java/baritone/api/utils/BlockOptionalMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@
import net.minecraft.world.level.storage.loot.parameters.LootContextParamSets;
import net.minecraft.world.level.storage.loot.parameters.LootContextParams;
import net.minecraft.world.phys.Vec3;
import sun.misc.Unsafe;

Check warning on line 59 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / test

Unsafe is internal proprietary API and may be removed in a future release

Check warning on line 59 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / build

Unsafe is internal proprietary API and may be removed in a future release

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.*;
Expand Down Expand Up @@ -258,7 +257,7 @@

public static class ServerLevelStub extends ServerLevel {
private static Minecraft client = Minecraft.getInstance();
private static Unsafe unsafe = getUnsafe();

Check warning on line 260 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / test

Unsafe is internal proprietary API and may be removed in a future release

Check warning on line 260 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / build

Unsafe is internal proprietary API and may be removed in a future release
private static CompletableFuture<RegistryAccess> registryAccess = load();

public ServerLevelStub(MinecraftServer $$0, Executor $$1, LevelStorageSource.LevelStorageAccess $$2, ServerLevelData $$3, ResourceKey<Level> $$4, LevelStem $$5, boolean $$6, long $$7, List<CustomSpawner> $$8, boolean $$9) {
Expand Down Expand Up @@ -292,11 +291,11 @@
return new ReloadableServerRegistries.Holder(registryAccess().freeze());
}

public static Unsafe getUnsafe() {

Check warning on line 294 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / test

Unsafe is internal proprietary API and may be removed in a future release

Check warning on line 294 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / build

Unsafe is internal proprietary API and may be removed in a future release
try {
Field theUnsafe = Unsafe.class.getDeclaredField("theUnsafe");

Check warning on line 296 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / test

Unsafe is internal proprietary API and may be removed in a future release

Check warning on line 296 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / build

Unsafe is internal proprietary API and may be removed in a future release
theUnsafe.setAccessible(true);
return (Unsafe) theUnsafe.get(null);

Check warning on line 298 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / test

Unsafe is internal proprietary API and may be removed in a future release

Check warning on line 298 in src/api/java/baritone/api/utils/BlockOptionalMeta.java

View workflow job for this annotation

GitHub Actions / build

Unsafe is internal proprietary API and may be removed in a future release
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand All @@ -306,22 +305,22 @@
// Simplified from {@link net.minecraft.server.WorldLoader#load()}
CloseableResourceManager closeableResourceManager = new MultiPackResourceManager(
PackType.SERVER_DATA,
List.of(ServerPacksSource.createVanillaPackSource())
List.of(ServerPacksSource.createVanillaPackSource().fullResources())
);
LayeredRegistryAccess<RegistryLayer> baseLayeredRegistry = RegistryLayer.createRegistryAccess();
List<Registry.PendingTags<?>> pendingTags = TagLoader.loadTagsForExistingRegistries(
closeableResourceManager, baseLayeredRegistry.getLayer(RegistryLayer.STATIC)
);
List<HolderLookup.RegistryLookup<?>> worldGenRegistryLookupList = TagLoader.buildUpdatedLookups(
baseLayeredRegistry.getAccessForLoading(RegistryLayer.WORLDGEN),
baseLayeredRegistry.getAccessForLoading(RegistryLayer.WORLD),
pendingTags
);
LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess = baseLayeredRegistry.replaceFrom(
RegistryLayer.WORLDGEN,
RegistryLayer.WORLD,
RegistryDataLoader.load(
closeableResourceManager,
worldGenRegistryLookupList,
RegistryDataLoader.WORLDGEN_REGISTRIES,
RegistryDataLoader.WORLD_REGISTRIES,
ForkJoinPool.commonPool()
).join()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ private void postHandleChunkData(ClientboundLevelChunkWithLightPacket packetIn,
new ChunkEvent(
EventState.POST,
!packetIn.isSkippable() ? ChunkEvent.Type.POPULATE_FULL : ChunkEvent.Type.POPULATE_PARTIAL,
packetIn.getX(),
packetIn.getZ()
packetIn.x(),
packetIn.z()
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/launch/java/baritone/launch/mixins/MixinMinecraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void postRunTick(CallbackInfo ci) {
method = "tick",
at = @At(
value = "INVOKE",
target = "net/minecraft/client/multiplayer/ClientLevel.tickEntities()V",
target = "Lnet/minecraft/client/player/LocalPlayer;sendChanges()V",
shift = At.Shift.AFTER
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package baritone.launch.mixins;

import baritone.utils.accessor.IRenderPipelines;
import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.renderpearl.api.pipeline.RenderPipeline;
import net.minecraft.client.renderer.RenderPipelines;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
10 changes: 4 additions & 6 deletions src/launch/java/baritone/launch/mixins/MixinWorldRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
import baritone.api.BaritoneAPI;
import baritone.api.IBaritone;
import baritone.api.event.events.RenderEvent;
import com.mojang.blaze3d.buffers.GpuBufferSlice;
import com.mojang.blaze3d.resource.GraphicsResourceAllocator;
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.DeltaTracker;
import com.mojang.renderpearl.api.buffers.GpuBufferSlice;
import net.minecraft.client.renderer.LevelRenderer;
import net.minecraft.client.renderer.state.level.CameraRenderState;
import org.joml.Matrix4fc;
import org.joml.Vector4f;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -44,11 +42,11 @@ public class MixinWorldRenderer {
method = "render",
at = @At("RETURN")
)
private void onStartHand(final GraphicsResourceAllocator allocator, final DeltaTracker deltaTracker, final boolean outline, final CameraRenderState camera, final Matrix4fc modelViewMatrix, final GpuBufferSlice fog, final Vector4f fogColor, final boolean sky, final CallbackInfo ci) {
private void onStartHand(final GraphicsResourceAllocator resourceAllocator, final boolean renderOutline, final CameraRenderState cameraState, final GpuBufferSlice terrainFog, final Vector4f fogColor, final boolean shouldRenderSky, final boolean consistentDepthRequired, final CallbackInfo ci) {
for (IBaritone ibaritone : BaritoneAPI.getProvider().getAllBaritones()) {
PoseStack poseStack = new PoseStack();
poseStack.mulPose(modelViewMatrix);
ibaritone.getGameEventHandler().onRenderPass(new RenderEvent(deltaTracker.getGameTimeDeltaPartialTick(false), poseStack, camera.projectionMatrix));
poseStack.mulPose(cameraState.viewRotationMatrix);
ibaritone.getGameEventHandler().onRenderPass(new RenderEvent(cameraState.cameraEntityPartialTicks, poseStack, cameraState.projectionMatrix));
}
}
}
5 changes: 3 additions & 2 deletions src/main/java/baritone/command/ExampleBaritoneControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@
import baritone.command.argument.ArgConsumer;
import baritone.command.argument.CommandArguments;
import baritone.command.manager.CommandManager;
import com.mojang.blaze3d.Blaze3D;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.HoverEvent;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.util.Util;

import java.net.URI;
import java.util.List;
import java.util.Locale;
import java.util.stream.Stream;
Expand Down Expand Up @@ -96,7 +97,7 @@ public boolean runCommand(String msg) {
return false;
} else if (msg.trim().equalsIgnoreCase("orderpizza")) {
try {
Util.getPlatform().openUri("https://www.dominos.com/en/pages/order/");
Blaze3D.openUri(URI.create("https://www.dominos.com/en/pages/order/"));
} catch (Exception ignored) {}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/baritone/process/BuilderProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public int lengthZ() {
}
// build repeat time
layer = 0;
origin = new BlockPos(origin).offset(repeat);
origin = new BlockPos(origin.getX(), origin.getY(), origin.getZ()).offset(repeat);
if (!Baritone.settings().buildRepeatSneaky.value) {
schematic.reset();
}
Expand Down
15 changes: 3 additions & 12 deletions src/main/java/baritone/process/FarmProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import baritone.api.BaritoneAPI;
import baritone.api.pathing.goals.Goal;
import baritone.api.pathing.goals.GoalBlock;
import baritone.api.pathing.goals.GoalGetToBlock;
import baritone.api.pathing.goals.GoalComposite;
import baritone.api.pathing.goals.GoalGetToBlock;
import baritone.api.process.IFarmProcess;
import baritone.api.process.PathingCommand;
import baritone.api.process.PathingCommandType;
Expand All @@ -42,16 +42,7 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.AirBlock;
import net.minecraft.world.level.block.BambooStalkBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.BonemealableBlock;
import net.minecraft.world.level.block.CactusBlock;
import net.minecraft.world.level.block.CocoaBlock;
import net.minecraft.world.level.block.CropBlock;
import net.minecraft.world.level.block.NetherWartBlock;
import net.minecraft.world.level.block.SugarCaneBlock;
import net.minecraft.world.level.block.*;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.phys.HitResult;
Expand Down Expand Up @@ -267,7 +258,7 @@ public PathingCommand onTick(boolean calcFailed, boolean isSafeToCancel) {
}
if (state.getBlock() instanceof BonemealableBlock) {
BonemealableBlock ig = (BonemealableBlock) state.getBlock();
if (ig.isValidBonemealTarget(ctx.world(), pos, state) && ig.isBonemealSuccess(ctx.world(), ctx.world().getRandom(), pos, state)) {
if (ig.isValidBonemealTarget(ctx.world(), pos, state, BonemealSource.INTERACTION) && ig.isBonemealSuccess(ctx.world(), ctx.world().getRandom(), pos, state, BonemealSource.INTERACTION)) {
bonemealable.add(pos);
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/baritone/utils/BlockBreakHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import baritone.api.utils.IPlayerContext;
import baritone.utils.accessor.IPlayerControllerMP;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.item.component.SwingAnimation;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.phys.HitResult;

Expand Down Expand Up @@ -62,10 +63,10 @@ public void tick(boolean isLeftClick) {
if (ctx.playerController().hasBrokenBlock()) {
ctx.playerController().syncHeldItem();
ctx.playerController().clickBlock(((BlockHitResult) trace).getBlockPos(), ((BlockHitResult) trace).getDirection());
ctx.player().swing(InteractionHand.MAIN_HAND);
ctx.player().swing(InteractionHand.MAIN_HAND, SwingAnimation.DEFAULT, false);
} else {
if (ctx.playerController().onPlayerDamageBlock(((BlockHitResult) trace).getBlockPos(), ((BlockHitResult) trace).getDirection())) {
ctx.player().swing(InteractionHand.MAIN_HAND);
ctx.player().swing(InteractionHand.MAIN_HAND, SwingAnimation.DEFAULT, false);
}
if (ctx.playerController().hasBrokenBlock()) { // block broken this tick
// break delay timer only applies for multi-tick block breaks like vanilla
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/baritone/utils/BlockPlaceHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import baritone.api.utils.IPlayerContext;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResult;
import net.minecraft.world.item.component.SwingAnimation;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraft.world.phys.HitResult;

Expand All @@ -47,7 +48,7 @@ public void tick(boolean rightClickRequested) {
rightClickTimer = Baritone.settings().rightClickSpeed.value - BASE_PLACE_DELAY;
for (InteractionHand hand : InteractionHand.values()) {
if (ctx.playerController().processRightClickBlock(ctx.player(), ctx.world(), hand, (BlockHitResult) mouseOver) == InteractionResult.SUCCESS) {
ctx.player().swing(hand);
ctx.player().swing(hand, SwingAnimation.DEFAULT, false);
return;
}
if (!ctx.player().getItemInHand(hand).isEmpty() && ctx.playerController().processRightClick(ctx.player(), ctx.world(), hand) == InteractionResult.SUCCESS) {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/baritone/utils/GuiClick.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import baritone.api.pathing.goals.GoalBlock;
import baritone.api.utils.BetterBlockPos;
import baritone.api.utils.Helper;
import com.mojang.blaze3d.platform.InputConstants;
import com.mojang.blaze3d.vertex.BufferBuilder;
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.ChatFormatting;
Expand Down Expand Up @@ -92,7 +93,7 @@ public void extractBackground(GuiGraphicsExtractor grapics, int mouseX, int mous
@Override
public boolean mouseReleased(MouseButtonEvent event) {
if (currentMouseOver != null) { //Catch this, or else a click into void will result in a crash
if (event.button() == 0) {
if (event.button() == InputConstants.MOUSE_BUTTON_LEFT) {
if (clickStart != null && !clickStart.equals(currentMouseOver)) {
BaritoneAPI.getProvider().getPrimaryBaritone().getSelectionManager().removeAllSelections();
BaritoneAPI.getProvider().getPrimaryBaritone().getSelectionManager().addSelection(BetterBlockPos.from(clickStart), BetterBlockPos.from(currentMouseOver));
Expand All @@ -107,7 +108,7 @@ public boolean mouseReleased(MouseButtonEvent event) {
} else {
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver));
}
} else if (event.button() == 1) {
} else if (event.button() == InputConstants.MOUSE_BUTTON_RIGHT) {
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalBlock(currentMouseOver.above()));
}
}
Expand Down
30 changes: 20 additions & 10 deletions src/main/java/baritone/utils/IRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@
import baritone.utils.accessor.IEntityRenderManager;
import baritone.utils.accessor.IRenderPipelines;
import baritone.utils.accessor.IRenderType;
import com.mojang.blaze3d.pipeline.BlendFunction;
import com.mojang.blaze3d.pipeline.ColorTargetState;
import com.mojang.blaze3d.pipeline.DepthStencilState;
import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.blaze3d.platform.CompareOp;
import com.mojang.blaze3d.platform.BlendFactor;
import com.mojang.blaze3d.PrimitiveTopology;
import com.mojang.blaze3d.vertex.*;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.BufferBuilder;
import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.renderpearl.api.pipeline.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderPipelines;
import net.minecraft.client.renderer.BindGroupLayouts;
import net.minecraft.client.renderer.RenderPipelines;
import net.minecraft.client.renderer.StagedVertexBuffer;
import net.minecraft.client.renderer.blockentity.BeaconRenderer;
import net.minecraft.client.renderer.rendertype.RenderSetup;
Expand All @@ -45,6 +42,8 @@
import net.minecraft.world.phys.Vec3;

import java.awt.*;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.function.BiFunction;

public interface IRenderer {
Expand Down Expand Up @@ -73,6 +72,7 @@ public interface IRenderer {

RenderPipeline BEACON_BEAM_OPAQUE = ((IRenderPipelines) new RenderPipelines()).baritone$registerPipeline(RenderPipeline.builder(BARITONE_BEACON_BEAM_SNIPPET)
.withLocation("pipeline/baritone_beacon_beam_opaque")
.withColorTargetState(new ColorTargetState(BlendFunction.TRANSLUCENT))
.withDepthStencilState(new DepthStencilState(CompareOp.ALWAYS_PASS, false))
.withCull(true)
.build());
Expand Down Expand Up @@ -145,7 +145,17 @@ static void endBuffer(BufferBuilder bufferBuilder, RenderType renderType) {
stagedVertexBuffer.upload();
StagedVertexBuffer.ExecuteInfo info = stagedVertexBuffer.getExecuteInfo(draw[0]);
if (info != null) {
renderType.prepare().drawFromBuffer(info);
var preparedRenderType = renderType.prepare();
var renderTarget = Minecraft.getInstance().gameRenderer.mainRenderTarget();
try (var renderPass = RenderSystem.getDevice().createCommandEncoder().createRenderPass(
() -> "Baritone Render Pass",
renderTarget.getColorTextureView(),
Optional.empty(),
renderTarget.getDepthTextureView(),
OptionalDouble.empty())
) {
preparedRenderType.drawFromBuffer(info, renderPass);
}
}
stagedVertexBuffer.endFrame();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/baritone/utils/PathRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ private static void renderGoalXZBeaconLayer(PoseStack stack, double height, floa
stack.translate(0.5D, 0.0D, 0.5D);
if (!translucent) {
stack.pushPose();
stack.mulPose(Axis.YP.rotationDegrees(time * 2.25F - 45.0F));
stack.rotateDegrees(Axis.YP, time * 2.25F - 45.0F);
}

float v0 = -1.0F + scroll;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package baritone.utils.accessor;

import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.renderpearl.api.pipeline.RenderPipeline;

public interface IRenderPipelines {
RenderPipeline.Snippet getLinesSnippet();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/baritone/utils/pathing/Avoidance.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import it.unimi.dsi.fastutil.longs.Long2DoubleOpenHashMap;
import net.minecraft.core.BlockPos;
import net.minecraft.world.entity.Mob;
import net.minecraft.world.entity.monster.EnderMan;
import net.minecraft.world.entity.monster.Enderman;
import net.minecraft.world.entity.monster.spider.Spider;
import net.minecraft.world.entity.monster.zombie.ZombifiedPiglin;

Expand Down Expand Up @@ -76,7 +76,7 @@ public static List<Avoidance> create(IPlayerContext ctx) {
.filter(entity -> entity instanceof Mob)
.filter(entity -> (!(entity instanceof Spider)) || ctx.player().getLightLevelDependentMagicValue() < 0.5)
.filter(entity -> !(entity instanceof ZombifiedPiglin) || ((ZombifiedPiglin) entity).getLastHurtByMob() != null)
.filter(entity -> !(entity instanceof EnderMan) || ((EnderMan) entity).isCreepy())
.filter(entity -> !(entity instanceof Enderman) || ((Enderman) entity).isCreepy())
.forEach(entity -> res.add(new Avoidance(entity.blockPosition(), mobCoeff, Baritone.settings().mobAvoidanceRadius.value)));
}
return res;
Expand Down
Loading