How do i make swing main hand deal damage?

Started by GalaxyGaming2000 on

Topic category: Help with modding (Java Edition)

Last seen on 09:58, 14. Aug 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make swing main hand deal damage?

So basically I'm trying to make a weapon that autoswings but the swing main hand of target/event entity doesn't deal damage

how do i make it act like a normal sword hit

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If the player is looking at…
Mon, 01/02/2023 - 17:23

If the player is looking at an entity when it does this, (if the look angle vector targets that entity), when the swing occurs, then execute a procedure that deals damage to that entity.