Ideal-Ontology / GensokyoOntologics

Touhou-Project × Minecraft 二次创作:幻想存有论 (Gensokyo Ontology)
Other
17 stars 7 forks source link

配方解析错误 #11

Open H2Sxxa opened 3 months ago

H2Sxxa commented 3 months ago

太长所以只放了第一条

[11八月2024 14:13:32.912] [Render thread/ERROR] [net.minecraft.item.crafting.RecipeManager/]: Parsing error loading recipe gensokyoontology:large_shot_danmaku_table
com.google.gson.JsonSyntaxException: Expcted ingredient to be a object or array of objects
    at net.minecraftforge.common.crafting.CraftingHelper.getIngredient(CraftingHelper.java:129) ~[forge:?]
    at net.minecraft.item.crafting.Ingredient.func_199802_a(Ingredient.java:189) ~[?:?]
    at github.thelawf.gensokyoontology.data.recipe.DanmakuRecipe.func_192408_a(DanmakuRecipe.java:126) ~[gensokyoontology:forge-1.16.5-preview-0.0.804]
    at github.thelawf.gensokyoontology.data.recipe.DanmakuRecipe.access$000(DanmakuRecipe.java:26) ~[gensokyoontology:forge-1.16.5-preview-0.0.804]
    at github.thelawf.gensokyoontology.data.recipe.DanmakuRecipe$Serializer.read(DanmakuRecipe.java:55) ~[gensokyoontology:forge-1.16.5-preview-0.0.804]
    at github.thelawf.gensokyoontology.data.recipe.DanmakuRecipe$Serializer.func_199425_a_(DanmakuRecipe.java:51) ~[gensokyoontology:forge-1.16.5-preview-0.0.804]
    at net.minecraft.item.crafting.RecipeManager.func_215377_a(RecipeManager.java:141) ~[?:?]
    at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:61) ~[?:?]
    at net.minecraft.item.crafting.RecipeManager.func_212853_a_(RecipeManager.java:38) ~[?:?]
    at net.minecraft.client.resources.ReloadListener.func_215269_a(SourceFile:13) ~[?:?]
    at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670) ~[?:1.8.0_352]
    at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:646) ~[?:1.8.0_352]
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:456) ~[?:1.8.0_352]
    at net.minecraft.resources.AsyncReloader.func_219557_a(SourceFile:71) ~[?:?]
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?]
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?]
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?]
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213161_c(SourceFile:127) ~[?:?]
    at net.minecraft.client.Minecraft.func_238189_a_(Minecraft.java:1865) ~[?:?]
    at net.minecraft.client.Minecraft.loadWorld(Minecraft.java:1714) ~[?:?]
    at net.minecraft.client.Minecraft.func_238191_a_(Minecraft.java:1683) ~[?:?]
    at net.minecraft.client.gui.screen.WorldSelectionList$Entry.func_214443_e(SourceFile:407) ~[?:?]
    at net.minecraft.client.gui.screen.WorldSelectionList$Entry.func_214438_a(SourceFile:317) ~[?:?]
    at net.minecraft.client.gui.screen.WorldSelectionList$Entry.func_231044_a_(SourceFile:259) ~[?:?]
    at net.minecraft.client.gui.widget.list.AbstractList.func_231044_a_(AbstractList.java:309) ~[?:?]
    at net.minecraft.client.gui.INestedGuiEventHandler.func_231044_a_(SourceFile:27) ~[?:?]
    at net.minecraft.client.MouseHelper.func_198033_b(MouseHelper.java:87) ~[?:?]
    at net.minecraft.client.gui.screen.Screen.func_231153_a_(Screen.java:427) ~[?:?]
    at net.minecraft.client.MouseHelper.func_198023_a(MouseHelper.java:85) ~[?:?]
    at net.minecraft.client.MouseHelper.func_228030_c_(MouseHelper.java:181) ~[?:?]
    at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(SourceFile:94) ~[?:?]
    at net.minecraft.client.MouseHelper.func_228028_b_(MouseHelper.java:180) ~[?:?]
    at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10]
    at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10]
    at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) ~[lwjgl-glfw-3.2.2.jar:build 10]
    at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:127) ~[?:?]
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:1000) ~[?:?]
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) ~[?:?]
    at net.minecraft.client.main.Main.main(Main.java:184) ~[1.16.5-Forge_36.2.42.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_352]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_352]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_352]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_352]
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) ~[forge-1.16.5-36.2.42.jar:36.2]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_352]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_352]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_352]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_352]
    at oolloo.jlw.Wrapper.invokeMain(Wrapper.java:71) [JavaWrapper.jar:?]
    at oolloo.jlw.Wrapper.main(Wrapper.java:51) [JavaWrapper.jar:?]
TheLawF commented 3 months ago

原因是尝试用DanmakuRecipe继承原版ShapedRecipe类实现5x5的合成结果不行,而如果不能这么搞的话我得自己实现5x5矩形的合成😭