code for crossbow enchant that gives you and your target a knockback (Like a Force a Nature from TF2)?

Started by Albert Gaming on

Topic category: Help with modding (Java Edition)

Last seen on 19:39, 3. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
code for crossbow enchant that gives you and your target a knockback (Like a Force a Nature from TF2)?

basically like a Force a Nature from Team Fortress 2. It an enchantment for crossbow only that when fired, it will knockback target that got shoot and the user. the knockback strength depends on how many arrows has been shot so with Multishot, the knockback will be stronger for the user.

 

Why?

i don't know how to code it and i need help.

Last seen on 19:39, 3. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please i need a reply to…
Wed, 07/03/2024 - 13:03

Please i need a reply to this. Im desperate rn.

Last seen on 02:30, 5. Jul 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Idk if you need it anymore…
Fri, 07/05/2024 - 01:58

Idk if you need it anymore but i gotchu man ( you can change the values  how you prefer. note that the player is "source entity" so if you want to change the knockback he recives just change the values at the end (vx 0.3  ,  vy 0.5  ,  vz 0.3)

https://imgur.com/a/la5wrEc

if you directly want the procedure i can send it to you on discord, its mr.gabb   (note i dont use discord much so if i dont check and respond immidiatly please be patient🙏