Help with projectile procedure

Started by Mugman on Mon, 12/05/2022 - 20:25

Topic category: Help with modding (Java Edition)

Last seen on 11:44, 25. Dec 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 12:37, 14. Dec 2022
Joined Jan 2020
Points:

User statistics:

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

What exactly do you mean?

Last seen on 11:44, 25. Dec 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:12, 24. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 12:37, 14. Dec 2022
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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