Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20 numerous errors on startup #9

Closed
djoveryde opened this issue Jun 10, 2023 · 1 comment
Closed

1.20 numerous errors on startup #9

djoveryde opened this issue Jun 10, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@djoveryde
Copy link

Describe the bug

I'm running the newest version of spawn animations v.1.9 on paper 1.20 and have the following errors when loading the server up.

[15:28:31 ERROR]: Couldn't parse element predicates:spawnanimations:trigger
com.google.gson.JsonSyntaxException: Unknown type 'minecraft:alternative'
at net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter.deserialize(GsonAdapterFactory.java:95) ~[?:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1214) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1319) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1261) ~[gson-2.10.jar:?]
at net.minecraft.world.level.storage.loot.LootDataType.lambda$createSingleOrMultipleDeserialiser$2(LootDataType.java:74) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataType.deserialize(LootDataType.java:45) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$4(LootDataManager.java:68) ~[paper-1.20.jar:git-Paper-4]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$5(LootDataManager.java:67) ~[paper-1.20.jar:git-Paper-4]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[15:28:31 ERROR]: Couldn't parse element predicates:spawnanimations:has_effect
com.google.gson.JsonSyntaxException: Unknown type 'minecraft:alternative'
at net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter.deserialize(GsonAdapterFactory.java:95) ~[?:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1214) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1319) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1261) ~[gson-2.10.jar:?]
at net.minecraft.world.level.storage.loot.LootDataType.lambda$createSingleOrMultipleDeserialiser$2(LootDataType.java:74) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataType.deserialize(LootDataType.java:45) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$4(LootDataManager.java:68) ~[paper-1.20.jar:git-Paper-4]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$5(LootDataManager.java:67) ~[paper-1.20.jar:git-Paper-4]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[15:28:31 ERROR]: Couldn't parse element predicates:spawnanimations:exclude
com.google.gson.JsonSyntaxException: Unknown type 'minecraft:alternative'
at net.minecraft.world.level.storage.loot.GsonAdapterFactory$JsonAdapter.deserialize(GsonAdapterFactory.java:95) ~[?:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1214) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1319) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1261) ~[gson-2.10.jar:?]
at net.minecraft.world.level.storage.loot.LootDataType.lambda$createSingleOrMultipleDeserialiser$2(LootDataType.java:74) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataType.deserialize(LootDataType.java:45) ~[paper-1.20.jar:git-Paper-4]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$4(LootDataManager.java:68) ~[paper-1.20.jar:git-Paper-4]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at net.minecraft.world.level.storage.loot.LootDataManager.lambda$scheduleElementParse$5(LootDataManager.java:67) ~[paper-1.20.jar:git-Paper-4]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Steps to reproduce

Add v1.9 datapack on a paper 1.20 server, then load up

Expected behavior

No response

Additional context

No response

@djoveryde djoveryde added the bug Something isn't working label Jun 10, 2023
@Tschipcraft
Copy link
Owner

Oh... I somehow missed this when I tested Spawn Animations in Minecraft 1.20. It should work fine for the time being, as only the exclusion criteria are affected, but it definitely doesn't fully work. Thanks for letting me know! A fix is on the way

@Tschipcraft Tschipcraft self-assigned this Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants