why appeared this error? (cannot find symbol )

Started by cherrychiron on

Topic category: Help with modding (Java Edition)

Last seen on 02:23, 5. Apr 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why appeared this error? (cannot find symbol )

Executing Gradle task: build
Build info: MCreator 2021.2.26215 EAP (26215), forge-1.16.5, 64-bit, 8035 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:\Users\dodrm\Downloads\MCreator.EAP.2021.2.b26215.Windows.64bit\MCreatorEAP20212b26215\jdk
> Task :compileJava FAILED
C:\Users\dodrm\MCreatorWorkspaces\cp_aplantus\src\main\java\net\mcreator\cpaplantus\procedures\PlantboneProcedure.java:78: error: cannot find symbol if ((PotatoBlock.block.getDefaultState().getBlock() == (world.getBlockState(new BlockPos((int) x, (int) y, (int) z))).getBlock())) {
^
symbol: variable block
location: class PotatoBlock
C:\Users\dodrm\MCreatorWorkspaces\cp_aplantus\src\main\java\net\mcreator\cpaplantus\procedures\PlantboneProcedure.java:80: error: cannot find symbol ItemEntity entityToSpawn = new ItemEntity((World) world, x, y, z, new ItemStack(PotatoBlock.block, (int) (1)));
^
symbol: variable block
location: class PotatoBlock
2 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 6 seconds
 

Could you please screenshot…
Wed, 07/07/2021 - 05:04

Could you please screenshot your procedure and share the source it generated? It could help find the root of the issue.

Last seen on 20:59, 30. Oct 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have this same problem,…
Sat, 10/30/2021 - 01:32

I have this same problem, Ive tried redownloading MCreator As a zip, EXE, and than I looked through the console log of my entity to see this log : Executing Gradle task: runClient
Build info: MCreator 2021.2.36710, forge-1.16.5, 64-bit, 16338 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:\Users\MUTANT~1\AppData\Local\Temp\Rar$EXa12908.23918\MCreator20212\jdk
> Task :compileJava
C:\Users\MutantNightmareFoxy\MCreatorWorkspaces\zombie_modz\src\main\java\net\mcreator\zombiemodz\entity\renderer\ZombieRenderer.java:22: error: cannot find symbol RenderingRegistry.registerEntityRenderingHandler(ZombieEntity.entity, renderManager -> {
^
symbol: variable entity
location: class net.minecraft.entity.monster.ZombieEntity
C:\Users\MutantNightmareFoxy\MCreatorWorkspaces\zombie_modz\src\main\java\net\mcreator\zombiemodz\entity\ZombieEntity.java:46: error: cannot find symbol FMLJavaModLoadingContext.get().getModEventBus().register(new ZombieRenderer.ModelRegisterHandler());
^
symbol: class ModelRegisterHandler
location: class net.minecraft.client.renderer.entity.ZombieRenderer
2 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec…
BUILD FAILED in 4s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 21 seconds

Last seen on 14:47, 22. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Guys, please read the forum…
Sat, 10/30/2021 - 06:08

Guys,

please read the forum before posting everything. This same question has been done 11 times from yesterday.

Come on make a small effort and browse through forum and you will see the full reply given yesterday and an easy fix for this issue