How to make a damaging sonic boom where the player looks

Started by nicolaminecraft2 on

Topic category: Help with modding (Java Edition)

Last seen on 11:00, 10. Jul 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a damaging sonic boom where the player looks

 

from the image, you can see that im trying to make something similar to a sonic boom appear when right clicked with an item, ti works, the part that dosen't however is the direction of the sonic boom itself, i also can't get it to make damage when it hits something. i tried inserting pretty much anything in "with vx, vy, vz," but it either desen't work or it makes the game straight up not load and it tells theres a but with the code, any ideas on how to fix it? 

https://ibb.co/9qRP7TR

Last seen on 07:25, 16. May 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're lucky i just did a…
Tue, 04/30/2024 - 05:55

You're lucky i just did a weapon that shoot a sonic boom for my mod ! So here how you can do :

https://ibb.co/bbH6CQB

I send you a simplified version of the code because mine originaly had damage redution over distance, cooldown and ammunition. Don't hesitate to ask any question if you want one of these

Last seen on 11:00, 10. Jul 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tysm!  
Thu, 07/04/2024 - 20:30

Tysm!