MC creator error Main mod file compilation error

Started by RockyJD on Sat, 11/02/2019 - 13:11

Topic category: Bugs and solutions

Last seen on 19:13, 6. Dec 2019
Joined Nov 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
MC creator error Main mod file compilation error
Sat, 11/02/2019 - 13:13 (edited)

i get this problem Main mod file compilation error and it says: Your main mod file did not compile proprly

how do i fix this ?

i have tried to regenerate the code. it dosent work

 

Edited by RockyJD on Sat, 11/02/2019 - 13:13
Last seen on 19:13, 6. Dec 2019
Joined Nov 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
    Executing gradle command…
Sat, 11/02/2019 - 20:31

   
Executing gradle command: runClient
Build info: MCreator 1.9.1, 64-bit, 8175 MB, Windows 10 - cmd, JVM 1.8.0_222, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
(c) 2019 Microsoft Corporation. Med ensamr„tt.
C:\Users\johan\MCreatorWorkspaces\test>gradlew -Dorg.gradle.java.home="C:/Program Files/Pylo/MCreator/jdk" -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" runClient 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
C:\Users\johan\MCreatorWorkspaces\test\build\sources\main\java\net\mcreator\test\Elementstest.java:34: error: cannot find symbol
import net.minecraft.block.Block;
                          ^
  symbol:   class Block
  location: package net.minecraft.block
C:\Users\johan\MCreatorWorkspaces\test\build\sources\main\java\net\mcreator\test\Elementstest.java:47: error: cannot find symbol
   protected final List<Supplier<Block>> blocks = new ArrayList<>();
                                 ^
  symbol:   class Block
  location: class Elementstest
C:\Users\johan\MCreatorWorkspaces\test\build\sources\main\java\net\mcreator\test\Elementstest.java:132: error: cannot find symbol
   public List<Supplier<Block>> getBlocks() {
                        ^
  symbol:   class Block
  location: class Elementstest
C:\Users\johan\MCreatorWorkspaces\test\build\sources\main\java\net\mcreator\test\test.java:86: error: cannot find symbol
   public void registerBlocks(RegistryEvent.Register<Block> event) {
                                                     ^
  symbol:   class Block
  location: class test
C:\Users\johan\MCreatorWorkspaces\test\build\sources\main\java\net\mcreator\test\testVariables.java:12: error: cannot find symbol
import net.minecraft.client.Minecraft;
                           ^
  symbol:   class Minecraft
  location: package net.minecraft.client
5 errors
: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
BUILD FAILED in 11s
5 actionable tasks: 3 executed, 2 up-to-date
C:\Users\johan\MCreatorWorkspaces\test>
Task completed with return code 0 in 12410 milliseconds