Help with projectile procedure

Started by Mugman on

Topic category: Help with modding (Java Edition)

Last seen on 15:09, 25. Feb 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with projectile procedure
Mon, 12/05/2022 - 20:28 (edited)

I'm working on a magic item that shoots projectiles depleting a mana bar, however with ranged items there's the problem of normal projectiles and I cannot find any way to fix the power of the projectile in any way with normal weapons (exploding projectiles)

Thanks in advance

Edited by Mugman on Mon, 12/05/2022 - 20:28
Last seen on 22:48, 12. Jan 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What exactly do you mean?
Mon, 12/05/2022 - 21:20

What exactly do you mean?

Last seen on 15:09, 25. Feb 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'd like to make a…
Mon, 12/05/2022 - 21:52

I'd like to make a projectile attached to a "tool" which can explode, however I cannot use the ranged item because it shoots projectiles even if you're without mana. I want to make a magic staff just to simplify things

Last seen on 18:42, 23. May 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am actually making a…
Tue, 12/06/2022 - 12:43

I am actually making a similar mod and i used a conditional procedure so that you can only use the staff when your mana is greater than a certain number

Like this : 

image.png

Last seen on 22:48, 12. Jan 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make something that…
Tue, 12/06/2022 - 14:39

You can make something that checks the mana number, something like this:

https://ibb.co/C9p0z2b