Started by
ozymandius
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, every time I try and generate a custom biome it is unable to generate. I have Fabric Essentials API installed. I was never able to get TerraBlender to work, it never showed up under "External APIs" list. Here are the errors I kept getting in the console when I try to build (this is without terrablender installed):
Executing Gradle task: build
Build info: MCreator 2022.2.34517, fabric-1.19.2, 64-bit, 16244 MB, Windows 10, JVM 17.0.3, JAVA_HOME: C:\Users\Owner\Downloads\mcreator real\jdk, started on: 2023-11-30-23:13:05
> Configure project :
Fabric Loom: 1.0.18
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
> Task :compileJava FAILED
C:\Users\Owner\MCreatorWorkspaces\occult\src\main\java\net\mcreator\occult\world\biome\OccultWastelandsBiome.java:13: error: a type with the same simple name is already defined by the single-type-import of BlockStateProvider import net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider;
^
C:\Users\Owner\MCreatorWorkspaces\occult\src\main\java\net\mcreator\occult\world\biome\OccultWastelandsBiome.java:52: error: reference to BlockStateProvider is ambiguous new TreeConfiguration.TreeConfigurationBuilder(BlockStateProvider.simple(OccultModBlocks.PHYTOTOXIC_LOG.defaultBlockState()),
^
both class net.minecraftforge.client.model.generators.BlockStateProvider in net.minecraftforge.client.model.generators and class net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider in net.minecraft.world.level.levelgen.feature.stateproviders match
C:\Users\Owner\MCreatorWorkspaces\occult\src\main\java\net\mcreator\occult\world\biome\OccultWastelandsBiome.java:53: error: reference to BlockStateProvider is ambiguous new MegaJungleTrunkPlacer(7, 2, 19), BlockStateProvider.simple(OccultModBlocks.PHYTOTOXIC_LEAVES.defaultBlockState()),
^
both class net.minecraftforge.client.model.generators.BlockStateProvider in net.minecraftforge.client.model.generators and class net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider in net.minecraft.world.level.levelgen.feature.stateproviders match
3 errors
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 2s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 4 seconds
Any idea on how to fix?
I am running MCreator 2022.2 with Fabric 1.19.2, if it helps with anything.
This is likely a plugin bug, however it would be best to also update MCreator to a newer version as 2022.2 is quite ancient