cannot find symbol error variable block_BLOCK

Started by Suppain on

Topic category: Help with MCreator software

Last seen on 16:16, 8. Oct 2020
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
cannot find symbol error variable block_BLOCK

Hi! i'm having a problem everytime i try to create a block.

I'm using Mcreator 2020.4 with fabric plugin for mc 1.16.3.
I'm mostly sure it's not the plugin fault cause i tried doing the same with the forge compiler but still the same error.
I already tried clearing the cache but nothing changed.

That's the console error:
 

Executing Gradle task: build
Build info: MCreator 2020.4.32115, fabric-1.16.3, 64-bit, 16330 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Users\JOSHUA\Desktop\mcreator 2020.4\MCreator\jdk
> Configure project :
Fabric Loom: 0.4.33 Build(jenkins #33)
:setting up loom dependencies
:setting up mappings (yarn 1.16.3+build.1)
Configuring compiler arguments for Java
> Task :compileJava FAILED
2020-10-06 22:41:27,690 Execution worker for ':' WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
Note: SpongePowered MIXIN Annotation Processor Version=0.8.1
Note: ObfuscationServiceFabric supports type: "official:intermediary"
Note: ObfuscationServiceFabric supports type: "official:named"
Note: ObfuscationServiceFabric supports type: "intermediary:official"
Note: ObfuscationServiceFabric supports type: "intermediary:named"
Note: ObfuscationServiceFabric supports type: "named:official"
Note: ObfuscationServiceFabric supports type: "named:intermediary"
Note: ObfuscationServiceMCP supports type: "searge"
Note: ObfuscationServiceMCP supports type: "notch"
C:\Users\JOSHUA\MCreatorWorkspaces\newmod\src\main\java\net\mcreator\newmod\ClientInit.java:25: error: cannot find symbol BlockRenderLayerMap.INSTANCE.putBlock(NewmodMod.block_BLOCK, RenderLayer.getCutoutMipped());
^
symbol: variable block_BLOCK
location: class NewmodMod
1 error
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 1s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 3412 milliseconds
 

 

Any clues? I only have this problem when creating blocks, items and other stuff works perfectly.

Thanks!

Last seen on 01:12, 25. May 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah, I'm having similar…
Sun, 05/01/2022 - 01:42

yeah, I'm having similar problems.

ex:

MCreatorWorkspaces\ssneakys_cyberscape\src\main\java\net\mcreator\ssneakyscyberscape\block\LivewireplanksBlock.java:14: error: a type with the same simple name is already defined by the single-type-import of FabricBlockSettings 
import net.fabricmc.fabric.api.block.FabricBlockSettings;