Topic category: Troubleshooting, bugs, and solutions
I don't know how to explain it, but this is the error i am getting:
Executing Gradle task: build
Build info: MCreator 2023.3.36712, forge-1.20.1, 64-bit, 8192 MB, Mac OS X, JVM 17.0.7, JAVA_HOME: /Applications/MCreator.app/Contents/jdk.bundle/Contents/Home, started on: 2023-09-11-08:00:29
> 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 FAILED
/Users/Drake/MCreatorWorkspaces/bb/src/main/java/net/mcreator/bb/entity/QueenBeeEntity.java:349: error: cannot find symbol if ((event.isMoving() || !(event.getLimbSwingAmount() > -0.15F && event.getLimbSwingAmount() < 0.15F)) && this.isOnGround()) {
^
symbol: method isOnGround()
/Users/Drake/MCreatorWorkspaces/bb/src/main/java/net/mcreator/bb/entity/QueenBeeEntity.java:352: error: cannot find symbol if (!this.isOnGround()) {
^
symbol: method isOnGround()
/Users/Drake/MCreatorWorkspaces/bb/src/main/java/net/mcreator/bb/entity/QueenBeeEntity.java:366: error: level has private access in Entity this.lastSwing = level.getGameTime();
^
/Users/Drake/MCreatorWorkspaces/bb/src/main/java/net/mcreator/bb/entity/QueenBeeEntity.java:368: error: level has private access in Entity if (this.swinging && this.lastSwing + 7L <= level.getGameTime()) {
^
4 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 4s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 5 seconds
How do i fix this? I know nothing about coding in java, or coding in general
The parts of code here are not from MCreator so this is either caused by: