How to make a damaging sonic boom where the player looks

Started by nicolaminecraft2 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Jan 2024
Points:
179

User statistics:

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

Active 1 year ago
Joined May 2020
Points:
645

User statistics:

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

Active 3 months ago
Joined Jan 2024
Points:
179

User statistics:

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

Tysm!