Started by
Pro12447890
on
Topic category: Help with Minecraft modding (Java Edition)
For the second day now, MCreator has been constantly sending a message: one or more main elements of the mods do not compile, how can I solve this problem? (I click on him to fix the code in this place, but this is the 100th time I've done this)
We would need log in accordance to General Publishing Guidelines.
Executing Gradle task: build
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 8167 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-07-02-17:56:04
BUILD FAILED
Task completed in 39 seconds
> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.
> Task :compileJava
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:94: error: cannot find symbol surfaceRules.add(1, anySurfaceRule(ResourceKey.create(Registries.BIOME, new ResourceLocation("adventureupdate", "nhgnhgkj")), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(),
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:95: error: cannot find symbol AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState()));
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
E:\adventure update\src\main\java\net\mcreator\adventureupdate\init\AdventureupdateModBiomes.java:95: error: cannot find symbol AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState(), AdventureupdateModItems.DELETED_MOD_ELEMENT.get().defaultBlockState()));
^
symbol: variable DELETED_MOD_ELEMENT
location: class AdventureupdateModItems
3 errors
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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 5s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 6 seconds
One of biomes is referencing block or item that has been deleted
If you delete mod element, make sure it is not used anymore
Also please, take a read of General Publishing Guidelines to see how logs are properly pasted. Thank you for understanding. I wrote this above already: