Problems test

Published by Wiser9999 on Tue, 04/28/2020 - 09:43
Status
Works as designed
Type
Product/platform
Not applicable
Priority
Normal
Issue description

Hello i can't try my mod

Console here

Executing Gradle task: runClient 
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 4001 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk 
Download https://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeG…;
Download https://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeG…;
Download https://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeG…;
> Configure project : 
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3 
Download https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-…;
Download https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-…;
> Task :compileJava 
C:\Users\Wiser99.ARTHUR\MCreatorWorkspaces\mod\src\main\java\net\mcreator\mod\Mod.java:39: error: incompatible types: Mod cannot be converted to Annotation 
@Mod("mod") 
 ^ 
1 error 
> 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 5.0. 
Use '--warning-mode all' to show the individual deprecation warnings. 
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…;
BUILD FAILED in 1m 34s 
1 actionable task: 1 executed 
BUILD FAILED 
Task completed in 414406 milliseconds

Issue comments

You named your mod "mod", which is against policy to avoid generic names to avoid collisions. Mod is obviously reserved word so this will not work.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.