Topic category: Help with modding (Java Edition)
So, I made an Item a weapon. I made it so when you kill a mob, it strikes lightning a few blocks ahead. When I realized it was an item and not a tool (because the model doesnt look like a sword in your hand), I changed it to a tool and made the type a sword. Only problem is I can't figure out how to make it strike lightning when I kill a mob since it doesn't have the same event things. Is there a way to make it so it strikes lightning when I kill a mob with the tool? If so can someone explain to me how? Or maybe make it so the Item one appears as your wielding a sword.