Help, first time user

Started by ACRONIX5914 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help, first time user

My SecretWoodenTools mod has this issue:

Executing Gradle task: build
Build info: MCreator 2022.1.20510, forge-1.18.2, 64-bit, 16213 MB, Windows 10, JVM 17.0.1, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2022-06-03-18:51:24

^
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)
C:\Users\Lochlan\MCreatorWorkspaces\favorite_items\src\main\java\net\mcreator\favoriteitems\item\SecretWoodenToolsSwordItem.java:39: error: no suitable constructor found for ItemStack(no arguments) return Ingredient.of(new ItemStack(), new ItemStack(Blocks.OAK_LOG));
^
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)
5 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
BUILD FAILED in 1s

BUILD FAILED
Task completed in 10 seconds

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
describe what happened using…
Sat, 06/11/2022 - 19:34

describe what happened using words, and try clicking the regenerate code button (the fish thing to the left of the build button)