1
Struggling with structure files
hello i have been trying to create a structure file and have been dealing with issues, everytime i load my world it says that my data pack isnt loading and is asking me to use safemode (vannila data packs)
heres the error message from the game output
Registry loading errors:
> Errors in registry minecraft:root:
>> Errors in element minecraft:worldgen/structure:
java.lang.IllegalStateException: Unbound values in registry ResourceKey[minecraft:root / minecraft:worldgen/structure]: [witchcottage:cottage_spawn/witch_cottages]
at hm.l(SourceFile:360)
at acl.b(SourceFile:103)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at acl.a(SourceFile:100)
at adj.a(SourceFile:67)
at adj.b(SourceFile:71)
at adj.a(SourceFile:34)
at ezk.a(SourceFile:187)
at ezk.a(SourceFile:123)
at ezk.a(SourceFile:202)
at ezk.a(SourceFile:64)
at ezl$c.k(SourceFile:590)
at ezl$c.d(SourceFile:480)
at ezl$c.a(SourceFile:402)
at epc.a(SourceFile:327)
at eqs.a(SourceFile:38)
at eno.b(SourceFile:98)
at euq.a(SourceFile:409)
at eno.a(SourceFile:98)
at eno.c(SourceFile:169)
at bcn.execute(BlockableEventLoop.java:118)
at eno.b(SourceFile:169)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:248)
at enn.f(SourceFile:1244)
at enn.e(SourceFile:802)
at net.minecraft.client.main.Main.main(SourceFile:250)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)
at net.minecraft.launchwrapper.Launch.main(Launch.java:30)
> Errors in registry minecraft:worldgen/structure_set:
>> Errors in element witchcottage:witch_cottages:
java.lang.IllegalStateException: Failed to parse witchcottage:worldgen/structure_set/witch_cottages.json from pack file/witch_cottage
at acl.a(SourceFile:179)
at acl$b.a(SourceFile:61)
at acl.a(SourceFile:98)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at acl.a(SourceFile:98)
at adj.a(SourceFile:67)
at adj.b(SourceFile:71)
at adj.a(SourceFile:34)
at ezk.a(SourceFile:187)
at ezk.a(SourceFile:123)
at ezk.a(SourceFile:202)
at ezk.a(SourceFile:64)
at ezl$c.k(SourceFile:590)
at ezl$c.d(SourceFile:480)
at ezl$c.a(SourceFile:402)
at epc.a(SourceFile:327)
at eqs.a(SourceFile:38)
at eno.b(SourceFile:98)
at euq.a(SourceFile:409)
at eno.a(SourceFile:98)
at eno.c(SourceFile:169)
at bcn.execute(BlockableEventLoop.java:118)
at eno.b(SourceFile:169)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:248)
at enn.f(SourceFile:1244)
at enn.e(SourceFile:802)
at net.minecraft.client.main.Main.main(SourceFile:250)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)
at net.minecraft.launchwrapper.Launch.main(Launch.java:30)
Caused by: java.lang.RuntimeException: No key separation in MapLike[{"type":"minecraft:random_spread","salt":19011220,"seperation":8,"spacing":34,"spread_type":"triangular"}]
at com.mojang.serialization.DataResult.lambda$getOrThrow$5(DataResult.java:101)
at com.mojang.datafixers.util.Either$Right.map(Either.java:99)
at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:93)
at acl.a(SourceFile:176)
... 35 more
if anyone could help that would greatly be appreciated
heres the error message from the game output
Registry loading errors:
> Errors in registry minecraft:root:
>> Errors in element minecraft:worldgen/structure:
java.lang.IllegalStateException: Unbound values in registry ResourceKey[minecraft:root / minecraft:worldgen/structure]: [witchcottage:cottage_spawn/witch_cottages]
at hm.l(SourceFile:360)
at acl.b(SourceFile:103)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at acl.a(SourceFile:100)
at adj.a(SourceFile:67)
at adj.b(SourceFile:71)
at adj.a(SourceFile:34)
at ezk.a(SourceFile:187)
at ezk.a(SourceFile:123)
at ezk.a(SourceFile:202)
at ezk.a(SourceFile:64)
at ezl$c.k(SourceFile:590)
at ezl$c.d(SourceFile:480)
at ezl$c.a(SourceFile:402)
at epc.a(SourceFile:327)
at eqs.a(SourceFile:38)
at eno.b(SourceFile:98)
at euq.a(SourceFile:409)
at eno.a(SourceFile:98)
at eno.c(SourceFile:169)
at bcn.execute(BlockableEventLoop.java:118)
at eno.b(SourceFile:169)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:248)
at enn.f(SourceFile:1244)
at enn.e(SourceFile:802)
at net.minecraft.client.main.Main.main(SourceFile:250)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)
at net.minecraft.launchwrapper.Launch.main(Launch.java:30)
> Errors in registry minecraft:worldgen/structure_set:
>> Errors in element witchcottage:witch_cottages:
java.lang.IllegalStateException: Failed to parse witchcottage:worldgen/structure_set/witch_cottages.json from pack file/witch_cottage
at acl.a(SourceFile:179)
at acl$b.a(SourceFile:61)
at acl.a(SourceFile:98)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at acl.a(SourceFile:98)
at adj.a(SourceFile:67)
at adj.b(SourceFile:71)
at adj.a(SourceFile:34)
at ezk.a(SourceFile:187)
at ezk.a(SourceFile:123)
at ezk.a(SourceFile:202)
at ezk.a(SourceFile:64)
at ezl$c.k(SourceFile:590)
at ezl$c.d(SourceFile:480)
at ezl$c.a(SourceFile:402)
at epc.a(SourceFile:327)
at eqs.a(SourceFile:38)
at eno.b(SourceFile:98)
at euq.a(SourceFile:409)
at eno.a(SourceFile:98)
at eno.c(SourceFile:169)
at bcn.execute(BlockableEventLoop.java:118)
at eno.b(SourceFile:169)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:248)
at enn.f(SourceFile:1244)
at enn.e(SourceFile:802)
at net.minecraft.client.main.Main.main(SourceFile:250)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:159)
at net.minecraft.launchwrapper.Launch.main(Launch.java:30)
Caused by: java.lang.RuntimeException: No key separation in MapLike[{"type":"minecraft:random_spread","salt":19011220,"seperation":8,"spacing":34,"spread_type":"triangular"}]
at com.mojang.serialization.DataResult.lambda$getOrThrow$5(DataResult.java:101)
at com.mojang.datafixers.util.Either$Right.map(Either.java:99)
at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:93)
at acl.a(SourceFile:176)
... 35 more
if anyone could help that would greatly be appreciated
7
You can try copying the file off my datapack and editing it. https://www.planetminecraft.com/data-pack/small-tower-6126973/
These links may also help:
https://misode.github.io/worldgen/structure/
https://minecraft.wiki/w/Tutorials/Custom_structures
These links may also help:
https://misode.github.io/worldgen/structure/
https://minecraft.wiki/w/Tutorials/Custom_structures
thank you for responding, im still having issues with the worldgen/template_pool i have the file named under a different name other then minecraft but i doubt thats the issue
Are you sure you don't have any syntax errors? (for me it's usually commas)
The namespace doesn't matter
The namespace doesn't matter
i looked over it with your suggested structure file there doesnt seem to be an issue i even went over with github.io just to make sure everything worked so far it seems to be an issue with structure_set file because when i remove it the world opens up and i can use /place and it recognizes its in the game when i add it back it forces safe mode/wont register the datapack, idk maybe im missing something or i really am not sure whats going on
I tried to read the error log, I think it is saying there's something wrong with the "witch_cottages.json" file.
Failed to parse witchcottage:worldgen/structure_set/witch_cottages.json from pack file/witch_cottage
No key separation in MapLike[{"type":"minecraft:random_spread","salt":19011220,"seperation":8,"spacing":34,"spread_type":"triangular"}]I'd check on that if I were youim aware of that but whats the fix?
View 1 more replies
