Tools Compiling Error

Published by TVLG on Sat, 05/02/2020 - 12:11
Issue description

whenever I try to create a tool it fails compiling it, I get this error when I try

Executing Gradle task: build
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 16319 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Pylo\PyloWorkspace\src\main\java\net\tvlg\enderarmor\item\ error: constructor PickaxeItem in class PickaxeItem cannot be applied to given types;       elements.items.add(() -> new PickaxeItem(new IItemTier() {
  required: EnderArmorElements
  found: <anonymous IItemTier>,int,float,Properties
  reason: actual and formal argument lists differ in length
C:\Pylo\PyloWorkspace\src\main\java\net\tvlg\enderarmor\item\ error: constructor SwordItem in class SwordItem cannot be applied to given types;       elements.items.add(() -> new SwordItem(new IItemTier() {
  required: EnderArmorElements
  found: <anonymous IItemTier>,int,float,Properties
  reason: actual and formal argument lists differ in length
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
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.
1 actionable task: 1 executed
Task completed in 6513 milliseconds


Issue comments

When possible, attach your MCreator workspace (or even better a minimal example workspace required to reproduce the bug), game logs (full logs, do not crop them, in text format, not screenshots of logs) from the Console tab or terminal and steps to reproduce the bug in your workspace. If logs are long, use service such as Pastebin to host the log and provide the link to the log from the ticket. Please specify which mod elements to check in your workspace too, if applicable.

Zip with .mcreator file inside in not workspace. But I suspect you named your element "Pickaxe" despite this warning on mod element maker:

Do not use existing vanilla names (Dirt, Coal, Diamond, ...) for better compatibility.

Use unique names, pickaxe is word used by Minecraft.

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.