Help with projectile procedure

Started by Mugman on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jul 2020
Points:
633

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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
Active 1 year ago
Joined Jan 2020
Points:
803

User statistics:

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

What exactly do you mean?

Active 1 year ago
Joined Jul 2020
Points:
633

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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

Active 2 years ago
Joined Oct 2022
Points:
394

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 48
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

Active 1 year ago
Joined Jan 2020
Points:
803

User statistics:

  • Modifications: 3
  • Forum topics: 19
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 83
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