Fabric API

Fabric API

112M Downloads

Can't find texture for slot #all

RevolvingMadness opened this issue ยท 1 comments

commented

Discussed in https://github.com/orgs/FabricMC/discussions/2991

Originally posted by RevolvingMadness April 2, 2023
When im trying to create a block and I try to register the item model with data generation, it gives me this error: java.lang.IllegalStateException: Can't find texture for slot #all. I dont know why because there is a TextureKey.ALL, but it says it cant find it?
The full crash report:

Crash Report
> Task :runDatagenClient
[12:58:49] [main/INFO] (FabricLoader/GameProvider) Loading Minecraft 1.19.4 with Fabric Loader 0.14.17
[12:58:49] [main/INFO] (FabricLoader) Loading 46 mods:
	- fabric-api 0.75.3+1.19.4
	- fabric-api-base 0.4.23+9ff28bced8
	- fabric-api-lookup-api-v1 1.6.24+49abcf7ed8
	- fabric-biome-api-v1 13.0.5+fe9afa9dd8
	- fabric-block-api-v1 1.0.5+e022e5d1d8
	- fabric-blockrenderlayer-v1 1.1.33+c2e6f674d8
	- fabric-client-tags-api-v1 1.0.14+1134c5b8d8
	- fabric-command-api-v2 2.2.4+ae0966bad8
	- fabric-content-registries-v0 3.5.6+ae0966bad8
	- fabric-convention-tags-v1 1.3.0+6baaf971d8
	- fabric-crash-report-info-v1 0.2.14+aeb40ebed8
	- fabric-data-generation-api-v1 11.3.4+5da15ca1d8
	- fabric-dimensions-v1 2.1.44+7f87f8fad8
	- fabric-entity-events-v1 1.5.12+e45f7c65d8
	- fabric-events-interaction-v0 0.4.42+a1ccd7bfd8
	- fabric-game-rule-api-v1 1.0.32+a1ccd7bfd8
	- fabric-gametest-api-v1 1.2.1+ae0966bad8
	- fabric-item-api-v1 2.1.15+ae0966bad8
	- fabric-item-group-api-v1 3.0.2+e45f7c65d8
	- fabric-key-binding-api-v1 1.0.32+c477957ed8
	- fabric-lifecycle-events-v1 2.2.14+5da15ca1d8
	- fabric-loot-api-v2 1.1.24+75e98211d8
	- fabric-message-api-v1 5.1.0+1ee8be40d8
	- fabric-mining-level-api-v1 2.1.36+49abcf7ed8
	- fabric-models-v0 0.3.29+11ba9c3bd8
	- fabric-networking-api-v1 1.2.21+4e68ac5bd8
	- fabric-object-builder-api-v1 7.0.0+63b515f4d8
	- fabric-particles-v1 1.0.22+f1e4495bd8
	- fabric-recipe-api-v1 1.0.5+a1ccd7bfd8
	- fabric-registry-sync-v0 2.1.1+a383ab97d8
	- fabric-renderer-api-v1 2.2.4+81e8c576d8
	- fabric-renderer-indigo 1.1.0+81e8c576d8
	- fabric-rendering-data-attachment-v1 0.3.27+afca2f3ed8
	- fabric-rendering-fluids-v1 3.0.20+f1e4495bd8
	- fabric-rendering-v1 2.0.2+ae0966bad8
	- fabric-resource-conditions-api-v1 2.3.0+e6c7d4eed8
	- fabric-resource-loader-v0 0.10.9+711cde8ad8
	- fabric-screen-api-v1 1.0.44+8c25edb4d8
	- fabric-screen-handler-api-v1 1.3.17+5da15ca1d8
	- fabric-sound-api-v1 1.0.8+75e98211d8
	- fabric-transfer-api-v1 3.0.1+9003cbe9d8
	- fabric-transitive-access-wideners-v1 3.0.2+63b515f4d8
	- fabricloader 0.14.17
	- java 17
	- minecraft 1.19.4
	- more_wood 1.0.0
[12:58:49] [main/INFO] (FabricLoader/Mixin) SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/C:/Users/andya/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.12.4+mixin.0.8.5/e13b4069fe3555969811d4474f78576c707bbe1c/sponge-mixin-0.12.4+mixin.0.8.5.jar Service=Knot/Fabric Env=CLIENT
[12:58:50] [main/INFO] (FabricLoader/Mixin) Loaded Fabric development mappings for mixin remapper!
[12:58:50] [main/INFO] (FabricLoader/Mixin) Compatibility level set to JAVA_16
[12:58:50] [main/INFO] (FabricLoader/Mixin) Compatibility level set to JAVA_17
[12:58:55] [Datafixer Bootstrap/INFO] (Minecraft) 180 Datafixer optimizations took 117 milliseconds
[12:58:56] [Render thread/INFO] (Minecraft) Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[12:58:57] [Render thread/ERROR] (Minecraft) Failed to verify authentication
 com.mojang.authlib.exceptions.InvalidCredentialsException: Status: 401
	at com.mojang.authlib.exceptions.MinecraftClientHttpException.toAuthenticationException(MinecraftClientHttpException.java:56) ~[authlib-3.18.38.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:156) ~[authlib-3.18.38.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.<init>(YggdrasilUserApiService.java:55) ~[authlib-3.18.38.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createUserApiService(YggdrasilAuthenticationService.java:161) ~[authlib-3.18.38.jar:?]
	at net.minecraft.client.MinecraftClient.createUserApiService(MinecraftClient.java:712) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:506) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:178) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:462) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) ~[dev-launch-injector-0.2.1+build.8.jar:?]
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401
	at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:87) ~[authlib-3.18.38.jar:?]
	at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:48) ~[authlib-3.18.38.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:129) ~[authlib-3.18.38.jar:?]
	... 9 more
[12:58:57] [Render thread/INFO] (Minecraft) Setting user: Player49
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401

[12:58:57] [Render thread/INFO] (Indigo) [Indigo] Registering Indigo renderer!
[12:58:57] [Render thread/INFO] (FabricDataGenHelper) Running data generator for more_wood
[12:58:57] [Render thread/INFO] (Minecraft) Starting provider: More Wood/Block Loot Tables
[12:58:58] [Render thread/INFO] (Minecraft) More Wood/Block Loot Tables finished after 89 ms
[12:58:58] [Render thread/INFO] (Minecraft) Starting provider: More Wood/Model Definitions
[12:58:58] [Render thread/ERROR] (FabricDataGenHelper) Failed to run data generation
 java.lang.RuntimeException: Failed to run data generator from mod (more_wood)
	at net.fabricmc.fabric.impl.datagen.FabricDataGenHelper.runInternal(FabricDataGenHelper.java:134) ~[fabric-data-generation-api-v1-11.3.4+5da15ca1d8.jar:?]
	at net.fabricmc.fabric.impl.datagen.FabricDataGenHelper.run(FabricDataGenHelper.java:86) ~[fabric-data-generation-api-v1-11.3.4+5da15ca1d8.jar:?]
	at net.minecraft.client.MinecraftClient.handler$zbn000$fabric-data-generation-api-v1$main(MinecraftClient.java:2747) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:532) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:178) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:462) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.14.17.jar:?]
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) ~[dev-launch-injector-0.2.1+build.8.jar:?]
Caused by: java.lang.IllegalStateException: Can't find texture for slot #all
	at net.minecraft.data.client.TextureMap.getTexture(TextureMap.java:59) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at com.google.common.collect.CollectCollectors.lambda$toImmutableMap$6(CollectCollectors.java:185) ~[guava-31.1-jre.jar:?]
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?]
	at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
	at com.google.common.collect.CollectSpliterators$FlatMapSpliterator.lambda$forEachRemaining$1(CollectSpliterators.java:378) ~[guava-31.1-jre.jar:?]
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
	at com.google.common.collect.CollectSpliterators$FlatMapSpliterator.forEachRemaining(CollectSpliterators.java:374) ~[guava-31.1-jre.jar:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
	at net.minecraft.data.client.Model.createTextureMap(Model.java:68) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.client.Model.upload(Model.java:51) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.client.Model.upload(Model.java:47) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.client.ItemModelGenerator.register(ItemModelGenerator.java:37) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at com.revolvingmadness.more_wood.data.ModModelProvider.generateItemModels(ModModelProvider.java:24) ~[main/:?]
	at net.minecraft.data.client.ModelProvider.redirect$zbm000$fabric-data-generation-api-v1$registerItemModels(ModelProvider.java:579) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.client.ModelProvider.run(ModelProvider.java:63) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.DataCache.run(DataCache.java:95) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.minecraft.data.DataGenerator.method_46563(DataGenerator.java:49) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) ~[?:?]
	at net.minecraft.data.DataGenerator.run(DataGenerator.java:42) ~[minecraft-merged-project-root-1.19.4-net.fabricmc.yarn.1_19_4.1.19.4+build.1-v2.jar:?]
	at net.fabricmc.fabric.impl.datagen.FabricDataGenHelper.runInternal(FabricDataGenHelper.java:132) ~[fabric-data-generation-api-v1-11.3.4+5da15ca1d8.jar:?]
	... 8 more
Caused by: java.lang.IllegalStateException: Can't find texture for slot #all


> Task :runDatagenClient FAILED

Execution failed for task ':runDatagenClient'.
> Process 'command 'C:\Program Files\Java\jdk-17\bin\java.exe'' finished with non-zero exit value -1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
commented

๐Ÿ‘‹ We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.