1

Struggling with structure files

User4904573D 11/21/23 9:33 pm
1.9k
12/1/2023 7:45 pm
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
Posted by
User4904573D
Level 1 : New Miner
0

  Have something to say?

JoinSign in

7

Lickydog
11/26/2023 2:02 pm
Level 48 : Master Modder
history
1
User4904573D
11/27/2023 10:26 pm
Level 1 : New Miner
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
1
Lickydog
11/28/2023 6:16 pm
Level 48 : Master Modder
history
Are you sure you don't have any syntax errors? (for me it's usually commas)

The namespace doesn't matter
1
User4904573D
11/28/2023 6:58 pm
Level 1 : New Miner
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
1
DinoWattz
11/29/2023 5:29 pm
He/Him • Level 25 : Expert Theorist Fossil
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 you
1
User4904573D
12/01/2023 6:56 pm
Level 1 : New Miner
im aware of that but whats the fix?
1

Welcome