Topic category: Help with modding (Java Edition)
The issue I'm having is that one of my mobs holds a sword I have programmed to strike lightning whenever it hits something. I can't seem to find a way to make this happen when the mob is holding the weapon, only when the player is. I've also tried adding procedures that say to summon lightning when the mob attacks something, but there doesn't seem to be an event for mob attacking, only for mob being attacked. Any suggestions on how to get this working?