Actually in 3e. Intent was also a factor. If you raised any undead to cause harm it was an evil act.Well, 5e is a simpler game after all, and in terms of lore and logic, the argument can go both ways, evil or not evil for mindless undeads, depending on whether you consider the mindlessness or using negative energy, the spirit, the soul or both, etc.