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

NeoForge datagen task failing with Yarn mappings #578

Open
chimericdream opened this issue Nov 4, 2024 · 0 comments
Open

NeoForge datagen task failing with Yarn mappings #578

chimericdream opened this issue Nov 4, 2024 · 0 comments

Comments

@chimericdream
Copy link

Versions:
Minecraft: 1.21
Yarn mappings: 1.21+build.1
Architectury API: 13.0.8
NeoForge: 21.0.110-beta
Yarn mappings NeoForge patch: 1.21+build.4

I am converting my mods to use Architectury, and for the most part I have been using Fabric's data generation just fine. However, one of my mods needs to inject entries into vanilla loot tables, which means I have to use NeoForge's datagen to create the global loot modifier JSON files. However, when I try to run the datagen task, it fails with the log below.

8:25:09 AM: Executing 'runData'…


> Configure project :
Architect Plugin: 3.4.159
Architectury Loom: 1.7.414
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues

> Task :miniblock-merchants:neoforge:processResources UP-TO-DATE
> Task :miniblock-merchants:neoforge:generateLog4jConfig UP-TO-DATE
> Task :miniblock-merchants:neoforge:generateRemapClasspath UP-TO-DATE
> Task :miniblock-merchants:common:compileJava UP-TO-DATE
> Task :miniblock-merchants:common:processResources UP-TO-DATE
> Task :miniblock-merchants:common:classes UP-TO-DATE
> Task :miniblock-merchants:common:jar UP-TO-DATE
> Task :miniblock-merchants:neoforge:generateDLIConfig UP-TO-DATE
> Task :miniblock-merchants:neoforge:compileJava UP-TO-DATE
> Task :miniblock-merchants:neoforge:classes UP-TO-DATE
> Task :miniblock-merchants:neoforge:prepareArchitecturyTransformer
> Task :miniblock-merchants:neoforge:configureLaunch

> Task :miniblock-merchants:neoforge:runData
[Architectury Transformer] Architectury Runtime 5.2.87
[Architectury Transformer] Read classpath in 1.207 s
[Architectury Transformer] Listening at E:\minecraft\chimeric-mods\miniblock-merchants\common\build\devlibs\miniblockmerchants-common-3.0.1-dev.jar
java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 91
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
	at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4865)
	at java.base/java.lang.String.substring(String.java:2834)
	at dev.architectury.transformer.TransformerRuntime.lambda$null$8(TransformerRuntime.java:250)
	at dev.architectury.transformer.input.BaseFileAccess.handle(BaseFileAccess.java:56)
	at dev.architectury.transformer.input.ForwardingFileView.handle(ForwardingFileView.java:42)
	at dev.architectury.transformer.TransformerRuntime.lambda$removeDuplicates$9(TransformerRuntime.java:246)
	at java.base/java.util.ArrayList.removeIf(ArrayList.java:1755)
	at java.base/java.util.ArrayList.removeIf(ArrayList.java:1743)
	at dev.architectury.transformer.TransformerRuntime.removeDuplicates(TransformerRuntime.java:240)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:214)
[08:25:31] [main/INFO] (Launcher) ModLauncher running: args [--launchTarget, forgedatauserdev, --assetIndex, 1.21-17, --assetsDir, C:\Users\bill\.gradle\caches\fabric-loom\assets, --gameDir, ., --fml.neoForgeVersion, 21.0.110-beta, --fml.fmlVersion, 4.0.18, --fml.mcVersion, 1.21, --fml.neoFormVersion, 20240613.152323, --all, --mod, miniblockmerchants, --output, E:\minecraft\chimeric-mods\miniblock-merchants\neoforge\src\generated]
[08:25:31] [main/INFO] (Launcher) JVM identified as Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.4+7-LTS
[08:25:31] [main/INFO] (Launcher) ModLauncher 11.0.4+main.d2e20e43 starting: java version 21.0.4 by Eclipse Adoptium; OS Windows 11 arch amd64 version 10.0
[08:25:31] [main/INFO] (ImmediateWindowHandler) ImmediateWindowProvider not loading because launch target is forgedatauserdev
[08:25:31] [main/INFO] (mixin) SpongePowered MIXIN Subsystem Version=0.8.6 Source=union:/C:/Users/bill/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.14.0+mixin.0.8.6/c265173c84346e9e5d42a2384b2b02bd39a4a899/sponge-mixin-0.14.0+mixin.0.8.6.jar%23124!/ Service=ModLauncher Env=CLIENT
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar" [locator: neoforge devenv provider ([E:\minecraft\chimeric-mods\.gradle\loom-cache\minecraftMaven\net\minecraft\neoforge-21.0.110-beta-minecraft-merged-52c083ff23\1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta\neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar])]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar" [locator: neoforge devenv provider ([E:\minecraft\chimeric-mods\.gradle\loom-cache\minecraftMaven\net\minecraft\neoforge-21.0.110-beta-minecraft-merged-52c083ff23\1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta\neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar])]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "main" [locator: userdev mods and services, reader: mod manifest]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "architectury-neoforge-13.0.8.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "yet-another-config-lib-3.6.1+1.21-neoforge.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:31] [main/INFO] (ModDiscoverer) Found mod file "11727436969881110883.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:31] [main/INFO] (ModDiscoverer) Found gamelibrary file "mixinextras-neoforge-0.3.5.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:32] [main/INFO] (ModDiscoverer) Found library file "kotlinforforge-neoforge-4.10.0-all.jar" [locator: userdev mods and services, reader: mod manifest]
[08:25:32] [main/WARN] (JarSelector) Attempted to select a dependency jar for JarJar which was passed in as source: mixinextras-neoforge-0.3.5.jar. Using Mod File: C:\Users\bill\.gradle\caches\modules-2\files-2.1\io.github.llamalad7\mixinextras-neoforge\0.3.5\ef3ffcf309dae656517b2f120189b1c9b21737dd\mixinextras-neoforge-0.3.5.jar
[08:25:32] [main/INFO] (JarInJarDependencyLocator) No dependencies to load found. Skipping!
[08:25:32] [main/INFO] (FMLServiceProvider) Loading coremod script-engine for [neoforge]
[08:25:33] [main/INFO] (mixin) Compatibility level set to JAVA_17
[08:25:33] [main/INFO] (LaunchServiceHandler) Launching target 'forgedatauserdev' with arguments [--gameDir, ., --assetsDir, C:\Users\bill\.gradle\caches\fabric-loom\assets, --assetIndex, 1.21-17, --all, --mod, miniblockmerchants, --output, E:\minecraft\chimeric-mods\miniblock-merchants\neoforge\src\generated]
[08:25:33] [main/INFO] (unprotect) Found 8262 Minecraft classes
WARN StatusConsoleListener Error parsing URI E:\minecraft\chimeric-mods\miniblock-merchants\neoforge\.gradle\loom-cache\log4j.xml
WARN StatusConsoleListener Advanced terminal features are not available in this environment
[08:25:34] [main/INFO] [ne.ne.ne.da.lo.DatagenModLoader/]: Initializing Data Gatherer for mods [miniblockmerchants]
[08:25:34] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5).
[08:25:40] [modloading-worker-0/INFO] [YetAnotherConfigLib/]: Deserializing YACLConfig from 'E:\minecraft\chimeric-mods\miniblock-merchants\neoforge\run\config\yacl.json5'
[08:25:40] [modloading-worker-0/INFO] [ne.ne.ne.co.NeoForgeMod/NEOFORGE-MOD]: NeoForge mod loading, version 21.0.110-beta, for MC 1.21
[08:25:40] [modloading-worker-0/INFO] [YetAnotherConfigLib/]: Deserializing MiniblockMerchantsConfig from 'E:\minecraft\chimeric-mods\miniblock-merchants\neoforge\run\config\miniblockmerchants.json5'
[08:25:41] [main/WARN] [minecraft/DefaultResourcePackBuilder]: Assets URL 'union:/E:/minecraft/chimeric-mods/.gradle/loom-cache/minecraftMaven/net/minecraft/neoforge-21.0.110-beta-minecraft-merged-52c083ff23/1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta/neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23197!/assets/.mcassetsroot' uses unexpected schema
[08:25:41] [main/WARN] [minecraft/DefaultResourcePackBuilder]: Assets URL 'union:/E:/minecraft/chimeric-mods/.gradle/loom-cache/minecraftMaven/net/minecraft/neoforge-21.0.110-beta-minecraft-merged-52c083ff23/1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta/neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23197!/data/.mcassetsroot' uses unexpected schema
[08:25:41] [main/ERROR] [ne.ne.fm.ut.ObfuscationReflectionHelper/REFLECTION]: Unable to locate field WAX_SCRAPING_TOOLS (WAX_SCRAPING_TOOLS) on type net.minecraft.data.server.advancement.vanilla.VanillaHusbandryTabAdvancementGenerator
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.<init>(NeoForgeAdvancementProvider.java:60) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:594) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:55) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23197!/:?] {re:classloading}
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
	at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23111!/:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?] {}
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?] {}
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220) [architectury-transformer-5.2.87-runtime.jar:5.2.87] {}
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at java.base/java.lang.Class.getDeclaredField(Class.java:2782) ~[?:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178) ~[loader-4.0.18.jar%23109!/:4.0] {}
	... 29 more
[08:25:41] [main/ERROR] [ne.ne.fm.ja.FMLModContainer/]: Exception caught during firing event: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	Index: 0
	Listeners:
		0: net.neoforged.neoforge.common.NeoForgeMod$$Lambda/0x0000024201c82fe8@5cbd09b8
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.<init>(NeoForgeAdvancementProvider.java:60)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:594)
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26)
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350)
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:55)
	at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220)
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at java.base/java.lang.Class.getDeclaredField(Class.java:2782)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178)
	... 29 more

[08:25:41] [main/ERROR] [ne.ne.fm.ModContainer/LOADING]: Caught exception during event net.neoforged.neoforge.data.event.GatherDataEvent@30ea640d dispatch for modid neoforge
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.<init>(NeoForgeAdvancementProvider.java:60) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:594) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329) ~[bus-8.0.1.jar%23116!/:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:55) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23198!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101) ~[neoforge-21.0.110-beta-minecraft-merged-52c083ff23-1.21-loom.mappings.1_21.layered+hash.426444933-v2-neoforge-21.0.110-beta.jar%23197!/:?] {re:classloading}
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
	at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.18.jar%23109!/:4.0] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23111!/:?] {}
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23111!/:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?] {}
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?] {}
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220) [architectury-transformer-5.2.87-runtime.jar:5.2.87] {}
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
	at java.base/java.lang.Class.getDeclaredField(Class.java:2782) ~[?:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178) ~[loader-4.0.18.jar%23109!/:4.0] {}
	... 29 more
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:220)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
	... 10 more
Caused by: net.neoforged.fml.ModLoadingException: Loading errors encountered:
	- NeoForge (neoforge) encountered an error while dispatching the net.neoforged.neoforge.data.event.GatherDataEvent event
	  net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS

	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:181)
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347)
	at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:55)
	at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	... 16 more

> Task :miniblock-merchants:neoforge:runData FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
10 actionable tasks: 2 executed, 8 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':miniblock-merchants:neoforge:runData'.
> Build cancelled while executing task ':miniblock-merchants:neoforge:runData'

* 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.
> Get more help at https://help.gradle.org.

BUILD FAILED in 35s
8:25:45 AM: Execution finished 'runData'.

Any help figuring this out would be greatly appreciated! I have converted 10 mods so far without issue, and I'm loving how easy it has been, but apparently the two mod loaders take dramatically different approaches to datagen,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant