Mob ranged attacks

Started by Thorn_132 on Wed, 08/04/2021 - 18:12

Topic category: Troubleshooting, bugs, and solutions

Last seen on 14:47, 19. Sep 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Mob ranged attacks
Wed, 08/04/2021 - 18:12

when I want an entity to do ranged attacks it shows this error in console:

 

Executing Gradle task: runClient
Build info: MCreator 2021.2.31709 EAP (31709), forge-1.16.5, 64-bit, 7934 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:\Users\EMka2\OneDrive\Dokumenty\MCreator Snapshots\MCreator.EAP.2021.2.b31709.Windows.64bit\MCreatorEAP20212b31709\jdk
> Task :compileJava FAILED
C:\Users\EMka2\MCreatorWorkspaces\the_argocellum_ancient_symbol\src\main\java\argocellumsymbol\entity\Mob4Entity.java:178: error: no suitable constructor found for ItemStack(no arguments) return new ItemStack();
                                                    ^
constructor ItemStack.ItemStack(IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int,Optional<CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int,CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
C:\Users\EMka2\MCreatorWorkspaces\the_argocellum_ancient_symbol\src\main\java\argocellumsymbol\entity\Mob4Entity.java:183: error: no suitable constructor found for ItemStack(no arguments) return new ItemStack();
                                                    ^
constructor ItemStack.ItemStack(IItemProvider) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int,Optional<CompoundNBT>) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(IItemProvider,int,CompoundNBT) is not applicable
(actual and formal argument lists differ in length)
constructor ItemStack.ItemStack(CompoundNBT) is not applicable
(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 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 1s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 4 seconds

 

Help pls
 

You are referring to item…
Thu, 08/05/2021 - 11:48

You are referring to item that is no longer present in your workspace