return new ItemStack error with arrows

Started by nojustgavin on

Topic category: Help with MCreator software

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
return new ItemStack error with arrows

I have an entity that I want to shoot arrows. If I check the little box for ranged item and it save mod element, it immediately gives me an error for "return new ItemStack"
"error: no suitable constructor found for ItemStack(no arguments) return new ItemStack();"
I creating a dummy entity where the only thing I did was select a texture and check the ranged box and it still gave me this error.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you NEED to select the arrow…
Sat, 09/25/2021 - 16:03

you NEED to select the arrow on the checkbox

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh. I never had to do that…
Sat, 09/25/2021 - 16:17

oh. I never had to do that before, i would just select the checkbox with default item and it would shoot arrows, thanks

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait so I did that, but now…
Sat, 09/25/2021 - 16:32

Wait so I did that, but now instead of the arrow entity, it shoots 2d arrows items. Something is still wrong.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah that is how it works,…
Sat, 09/25/2021 - 16:42

yeah that is how it works, it won't do an animation like a skeleton

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i swear i've done it before…
Sat, 09/25/2021 - 16:44

i swear i've done it before to where it was an actually arrow entity, but whatever, thanks anyway

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you put skeleton base ai…
Sat, 09/25/2021 - 16:48

if you put skeleton base ai it could work, honestly don't know

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am trying to make a custom…
Tue, 10/26/2021 - 22:16

I am trying to make a custom mob and I am new to MCreator but I got the same "error: no suitable constructor found for ItemStack()" error