Hey everyone! I'm currently working on an unnamed magic mod that adds Witch/PlagueDoc-esque items to spice up combat and allow more unique types of combat rather then netherite armour and netherite sword. The new melee system adds *so far* 3 items, Iron/Netherite Reaper and a Katana. My idea for these are fast attacks that slash through enemies whilst dealing 0 knockback. It's meant to be high risk high reward as the 0 knockback will allow more hits along with the weapons just being better but enemies will be closer to you so it is only for the skilled. Currently my code is just
Really simple, but that's the way I like it. The thing I'm struggling with is "target" only refers to the mob you're clicking on instead of all the mobs affected by the sweeping attack that the Scythes and Katana have. Sorry for the info dump. And sorry if this is really easy all my experience is coding C# in unity I've never used Java, let alone modded before. Any and All help would be appreciated.