I added armor and it is giving me a error

Started by microwavedburito on

Topic category: Help with modding (Java Edition)

Last seen on 01:18, 15. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I added armor and it is giving me a error

I was adding potassium armor and I was creating a set of tools and armor but when I imported an armor texture it would work I've tried many things but nothing worked.

 

Here is my Console error;

Executing Gradle task: runClient
Build info: MCreator 2021.2.36710, forge-1.16.5, 64-bit, 16328 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Task :compileJava FAILED
C:\Users\jacka\MCreatorWorkspaces\sus\src\main\java\net\mcreator\sus\item\Potassium_armorArmorItem.java:60: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.fromStacks(new ItemStack(), new ItemStack(PotassiumIngotItem.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)
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec…
BUILD FAILED in 2s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 20 seconds

Last seen on 01:18, 15. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i solved it  
Wed, 10/13/2021 - 00:28

i solved it

 

Last seen on 02:21, 24. Mar 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how did you solve it im…
Fri, 03/11/2022 - 00:01

how did you solve it im having the same issue