Topic category: Troubleshooting, bugs, and solutions
When i made an armor set and i try to run the client it just keeps on saying this:
Task :compileJava FAILED
C:\Users\Eidor\MCreatorWorkspaces\tkp_stuff\src\main\java\net\mcreator\tkpstuff\item\CandleWaxArmorItem.java:42: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.of(new ItemStack());
^
constructor ItemStack.ItemStack(ItemLike) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(Holder<Item>) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(ItemLike,int,Optional<CompoundTag>) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(ItemLike,int) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(ItemLike,int,CompoundTag) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(CompoundTag) is not applicable
(actual and formal argument lists differ in length)
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 2sTask :compileJava FAILED
I don't understand any of it
I think you might have some problems in a proceedure or an item. Problems usually get marked in red inside mcreator. There should be a red dot in the corner of one of your elements
The actual armor set is marked in red but i'm not sure how to fix it, do you know of anything that could fix it?