Topic category: Troubleshooting, bugs, and solutions
All the basics you need to know is that I'm using the Minecraft Forge 1.18.2 Generator plugin on version 2025.1 of MCreator.
I've began trying to downgrade my 1.21.1 mod back to 1.18.2 [It was 1.18.2 originally, then I upgraded it before to 1.21.1 for use in a different modpack], and after a few issues I could take care off with ease, MCreator has became it's own worst enemy.
One issue is found here:
public class TheJimboModRealModStructures {
public static final DeferredRegister<StructureFeature<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.STRUCTURE_FEATURES, TheJimboModRealMod.MODID);
public static final RegistryObject<StructureFeature<?>> JEMPLE_2 = REGISTRY.register("jemple_2", () -> new Jemple2Structure());
public static final RegistryObject<StructureFeature<?>> EVEN_CARE_2 = REGISTRY.register("even_care_2", () -> new EvenCare2Structure());
public static final RegistryObject<StructureFeature<?>> ODD_DOOR_STRUCTURE_2 = REGISTRY.register("odd_door_structure_2", () -> new OddDoorStructure2Structure());
}
It whines that it doesn't allow any parameters [What I'm 90% sure is the <?> I've boldened in the code here], but I can't do anything about it because it just adds them back every time I remove them and try the build again.
Another issue is in a folder labelled BaseStructure.java, seemingly to due with this block of code [Error provided was "error: method does not override or implement a method from a supertype", and it highlighted the line with @Override, which I've also gone out of my way to bolden here.]
@Override
public GenerationStep.Decoration step() {
return null;
}
public static Optional<PieceGenerator<StructureConfiguration>> createPiecesGenerator(PieceGeneratorSupplier.Context<StructureConfiguration> context) {
BlockPos blockpos = context.chunkPos().getMiddleBlockPosition(0);
if (!context.config().projectStartToHeightmap().isEmpty()) {
int topLandY = context.chunkGenerator().getFirstFreeHeight(blockpos.getX(), blockpos.getZ(), context.config().projectStartToHeightmap().get(), context.heightAccessor());
blockpos = blockpos.atY(topLandY + context.config().startHeight().sample(new Random(), new WorldGenerationContext(context.chunkGenerator(), context.heightAccessor())));
} else {
blockpos = blockpos.atY(context.config().startHeight().sample(new Random(), new WorldGenerationContext(context.chunkGenerator(), context.heightAccessor())));
}
Pools.bootstrap();
JigsawConfiguration jigsawConfig = new JigsawConfiguration(context.config().startPool(), context.config().maxDepth());
PieceGeneratorSupplier.Context<JigsawConfiguration> jigsawContext = new PieceGeneratorSupplier.Context<>(context.chunkGenerator(), context.biomeSource(), context.seed(), context.chunkPos(), jigsawConfig, context.heightAccessor(),
context.validBiome(), context.structureManager(), context.registryAccess());
Optional<PieceGenerator<JigsawConfiguration>> jigsawResult = JigsawPlacement.addPieces(jigsawContext, PoolElementStructurePiece::new, blockpos, false, false);
return (Optional<PieceGenerator<StructureConfiguration>>) (Optional<?>) jigsawResult;
}
}
I have literally no idea what the issue here is. PLEASE if anyone here can tell me how to fix these 2 issues, I'll finally be able to downgrade my mod BACK to 1.18.2
I should also add to whoever stumbles upon this, this happens to ANY structure I add, jigsaws utilized or not.
The code is generated by
I recommend getting in touch with Minecraft Forge 1.18.2 Generator plugin author and reporting the bug to them so they can fix the code generator for this version