baritone icon indicating copy to clipboard operation
baritone copied to clipboard

#litematica command not working

Open FringeWizard opened this issue 1 year ago • 1 comments

08:50:06] [Render thread/INFO]: [CHAT] [Baritone] > litematica [08:50:06] [Render thread/INFO]: [CHAT] [Baritone] An unhandled exception occurred. The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues [08:50:06] [Render thread/INFO]: [STDERR]: baritone.ay: java.lang.NoSuchMethodError: 'net.minecraft.class_2680 fi.dy.masa.litematica.world.WorldSchematic.getBlockState(net.minecraft.class_2338)' [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.hk$a.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.hk.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.fo.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.fo.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.hl.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.hl.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_634.handler$zzb000$baritone$sendChatMessage(class_634.java) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_634.method_45729(class_634.java) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_408.method_44056(class_408.java:260) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_408.method_25404(class_408.java:103) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_309.mixinextras$bridge$method_25404$32(class_309.java) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_309.wrapOperation$bdn000$fabric-screen-api-v1$invokeKeyPressedEvents(class_309.java:1166) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_309.method_1466(class_309.java:423) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_309.method_22678(class_309.java:527) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_1255.execute(class_1255.java:110) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_309.method_22676(class_309.java:527) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//org.lwjgl.system.JNI.invokeV(Native Method) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:149) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:170) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_1041.method_15998(class_1041.java:314) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_310.method_1523(class_310.java:1370) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.class_310.method_1514(class_310.java:933) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//net.minecraft.client.main.Main.main(Main.java:265) [08:50:06] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [08:50:06] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [08:50:06] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [08:50:06] [Render thread/INFO]: [STDERR]: Caused by: java.lang.NoSuchMethodError: 'net.minecraft.class_2680 fi.dy.masa.litematica.world.WorldSchematic.getBlockState(net.minecraft.class_2338)' [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.utils.schematic.litematica.LitematicaHelper.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.ji.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: at knot//baritone.gt.a(Unknown Source) [08:50:06] [Render thread/INFO]: [STDERR]: ... 29 more

Why won't it work?

FringeWizard avatar Jan 09 '25 13:01 FringeWizard

Because when I rewrote the litemtica handling I accidentially made remapping ignore getBlockState. This has been fixed on all supported branches so if you use a recent CI build instead of the release #litematice will work.

ZacSharp avatar Jan 10 '25 09:01 ZacSharp