MCreator gradle not working and failing from a probably duplicate element

I’ve tried to search for answers to my problem but I haven’t seen anything that could help. I made a forum in MCreator’s website and someone said this is probably because of a duplicate element with the same name as the original but a deleted element. I’m not sure if this is true but I wanted to give it a try, I had deleted a ton of elements and searching around but I can’t find anything similar to that.

One more thing is, this could also occur when a procedure or element is trying to find this deleted element and there’s another element with the same name, but I can’t figure what it is because I have 2008 elements (the decreased amount when I was deleting).

I’d like to get help or anything but yes.

This is the error:

Executing Gradle task: build 
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 16384 MB, Mac OS X, JVM 17.0.5, JAVA_HOME: /Volumes/MCreator 2023.2/, started on: 2024-02-17-11:48:31 
FAILURE: Build failed with an exception. 
* Where: 
Build file '/Users/williamalexanderusiklippe/MCreatorWorkspaces/terrariacalamitymod/build.gradle' line: 11 
* What went wrong: 
A problem occurred evaluating root project 'terrariacalamitymod'. 
> Failed to apply plugin 'net.minecraftforge.gradle'. 
   > Found Gradle version Gradle 8.1.1. Versions Gradle 8.0 and newer are not supported. 
     Use ForgeGradle 6 or newer for Gradle 8.0+ support. 
* 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 
BUILD FAILED in 110ms 
Task completed in less than a second

I’m not sure what you mean by “element” and what you mean by something being duplicated or deleted.
In your terrariacalamitymod/build.gradle line 11 you apply forge gradle in a version <6 which is not compatible with Gradle 8, but you are using Gradle 8.1.1.
So either downgrade the Gradle version you are using or use forge gradle 6 or newer, just as the error message suggests.