Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Cannot mine tall grass on mc 1.16.5

ZacSharp opened this issue ยท 0 comments

commented

Some information

Minecraft version: 1.16.5
Baritone version: 0dd38ca
Other mods (if used): None

Exception, error or logs

Log excerpt
[04:04:07] [main/INFO]: [CHAT] [Baritone] > verboseCommandExceptions
[04:04:07] [main/INFO]: [CHAT] [Baritone] Toggled setting verboseCommandExceptions to true
[04:04:07] [main/INFO]: [CHAT] [Baritone] Old value: false
[04:04:26] [main/INFO]: [CHAT] [Baritone] > mine minecraft:tall_grass
[04:04:26] [main/INFO]: Reloading ResourceManager: Default
[04:04:26] [main/INFO]: [STDERR]: java.lang.NullPointerException
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.advancements.criterion.LocationPredicate.test(SourceFile:87)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.advancements.criterion.LocationPredicate.test(SourceFile:69)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.loot.conditions.LocationCheck.test(SourceFile:31)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.loot.conditions.LocationCheck.test(SourceFile:13)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.function.Predicate.lambda$and$0(Predicate.java:69)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.loot.LootPool.generate(SourceFile:86)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.loot.LootTable.recursiveGenerate(SourceFile:73)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.loot.LootTable.generate(SourceFile:82)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.utils.BlockOptionalMeta.lambda$drops$6(BlockOptionalMeta.java:164)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.HashMap.computeIfAbsent(HashMap.java:1128)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.utils.BlockOptionalMeta.drops(BlockOptionalMeta.java:156)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.utils.BlockOptionalMeta.lambda$getStackHashes$2(BlockOptionalMeta.java:90)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1580)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:546)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:505)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.utils.BlockOptionalMeta.getStackHashes(BlockOptionalMeta.java:95)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.utils.BlockOptionalMeta.(BlockOptionalMeta.java:71)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.command.datatypes.ForBlockOptionalMeta.get(ForBlockOptionalMeta.java:30)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.api.command.datatypes.ForBlockOptionalMeta.get(ForBlockOptionalMeta.java:25)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.argument.ArgConsumer.getDatatypeFor(ArgConsumer.java:350)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.defaults.MineCommand.execute(MineCommand.java:46)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.manager.CommandManager$ExecutionWrapper.execute(CommandManager.java:142)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.manager.CommandManager$ExecutionWrapper.access$000(CommandManager.java:128)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.manager.CommandManager.execute(CommandManager.java:84)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.ExampleBaritoneControl.runCommand(ExampleBaritoneControl.java:145)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.command.ExampleBaritoneControl.onSendChatMessage(ExampleBaritoneControl.java:70)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.event.GameEventHandler.lambda$onSendChatMessage$2(GameEventHandler.java:70)
[04:04:26] [main/INFO]: [STDERR]:       at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:895)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.event.GameEventHandler.onSendChatMessage(GameEventHandler.java:70)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.entity.player.ClientPlayerEntity.handler$zza000$sendChatMessage(SourceFile:1269)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.entity.player.ClientPlayerEntity.sendChatMessage(SourceFile)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.gui.screen.Screen.sendMessage(SourceFile:313)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.gui.screen.Screen.sendMessage(SourceFile:306)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.gui.screen.ChatScreen.keyPressed(SourceFile:98)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.KeyboardListener.func_216820_a(SourceFile:345)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.gui.screen.Screen.wrapScreenError(SourceFile:435)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.KeyboardListener.onKeyEvent(SourceFile:343)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.KeyboardListener.func_228003_c_(SourceFile:433)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(SourceFile:94)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.KeyboardListener.func_228001_b_(SourceFile:433)
[04:04:26] [main/INFO]: [STDERR]:       at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:37)
[04:04:26] [main/INFO]: [STDERR]:       at org.lwjgl.system.JNI.invokeV(Native Method)
[04:04:26] [main/INFO]: [STDERR]:       at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
[04:04:26] [main/INFO]: [STDERR]:       at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:102)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.MainWindow.flipFrame(SourceFile:308)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.Minecraft.runGameLoop(SourceFile:1068)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.Minecraft.run(SourceFile:681)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.client.main.Main.main(SourceFile:215)
[04:04:26] [main/INFO]: [STDERR]:       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[04:04:26] [main/INFO]: [STDERR]:       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[04:04:26] [main/INFO]: [STDERR]:       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[04:04:26] [main/INFO]: [STDERR]:       at java.lang.reflect.Method.invoke(Method.java:498)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[04:04:26] [main/INFO]: [STDERR]:       at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[04:04:26] [main/INFO]: [STDERR]:       at baritone.launch.LaunchTesting.main(LaunchTesting.java:66)
[04:04:26] [main/INFO]: [CHAT] [Baritone] Error at argument #1: Expected ForBlockOptionalMeta

How to reproduce

  1. Enable verboseCommandExceptions if you want the stacktrace
  2. Run #mine tall_grass. Possibly works with other blocks as well, but I don't know the conditions yet.
  3. Be told that is not a valid ForBlockOptionalMeta even though it should be and tab completion suggests it.

This problem seems to have been around for quite a while now (I suspect it's always been there since the initial 1.16 port, works on 1.15) and was already mentioned in #2559.

Modified settings

verboseCommandExceptions to get the log, happens without as well.

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not inserted any OwO's or UwU's into this issue.
  • I have tried to find the cause of this issue.