Tools Compiling Error

Published by TVLG on
Status
Resolved
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\PickaxeItem.java:24: 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\SwordItem.java:24: 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 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 1s
1 actionable task: 1 executed
BUILD FAILED
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.
 

I have updated it with the workshop file

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.