Topic category: Troubleshooting, bugs, and solutions
Task :compileJava
C:\Users\Tyzzler\MCreatorWorkspaces\happymods\src\main\java\net\mcreator\happymods\item\Poop_armorArmorItem.java:69: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(hapItem.block));
^
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,java.util.Optional<net.minecraft.nbt.CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
C:\Users\Tyzzler\MCreatorWorkspaces\happymods\src\main\java\net\mcreator\happymods\item\happy_toolsAxeItem.java:54: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(happyhapItem.block));
^
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,java.util.Optional<net.minecraft.nbt.CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
C:\Users\Tyzzler\MCreatorWorkspaces\happymods\src\main\java\net\mcreator\happymods\item\Happy_toolsPickaxeItem.java:54: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(HappyHapItem.block));
^
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,java.util.Optional<net.minecraft.nbt.CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
C:\Users\Tyzzler\MCreatorWorkspaces\Happymods\src\main\java\net\mcreator\Happymods\item\Happy_toolsShovelItem.java:48: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(happyHapItem.block));
^
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,java.util.Optional<net.minecraft.nbt.CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
C:\Users\Tyzzler\MCreatorWorkspaces\Happyymods\src\main\java\net\mcreator\Happymods\item\Happy_toolsSwordItem.java:48: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(HappyHappItem.block));
^
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,java.util.Optional<net.minecraft.nbt.CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.util.IItemProvider,int,net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor net.minecraft.item.ItemStack.ItemStack(net.minecraft.nbt.CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
5 errors
> 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
BUILD FAILED in 4s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 7 seconds
Have you tried regenerating the code?
how would i do that?
You are referencing mod element that you deleted