How do I make custom weapon hitboxes?

Started by jejer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make custom weapon hitboxes?

I have a sword with its own animations, a slash, a slam, and a step forward with a great horizontal slash. But I'm just curious how I'd go about actually implementing hitboxes for these.

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just want cubes, no…
Tue, 02/25/2025 - 13:26

I just want cubes, no complex shapes or whatnot. But I haven't been able to find any sort of tutorial for them. I've considered perhaps making a static, invisible entity to get the data of whatever's touching it. But I just want confirmation on if that's something I should do or if there's another way to go about doing it.