How can I change proyectile damage when the proyectile is in the air?

Started by a guy called l… on

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I change proyectile damage when the proyectile is in the air?

Ok, so the title say the question, I want to make a canon weapon, whit varietes from wood to netherite, And ammo of that materials.

The canons Will use like this: You need to have the canon in your main hand, and the canon ball in the secondary hand, I have a idea of how make the Canon can use all ammo materials (Something whit tags and procedures) but i need to now how to change the damage of the bullet in the air, my plan Is make the bullet detect the player, detect what cannon have in hand and modify the damage, but how can I modify the damage? I think something whit NTB variables of i dont now

Somenone can help?

And sorry for my bad english

Last seen on 13:22, 8. Oct 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entityarrow.setDamage(there…
Thu, 10/07/2021 - 17:43

entityarrow.setDamage(there some number);

it's nbt what you need to change maybe you can edit it in midair witch procedure

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks you, i now how to…
Sun, 10/10/2021 - 23:58

Thanks you, i now how to change that, I just can't find what NTB variable is the one the change