Help With Creating An Item With Resistance

[D&D5e]I've given my players an item that makes them resistant to damage from undead. I've looked through all the effects and can't seem to find an attribute key that will allow me to do this. I've tried adding DR All and then overriding for undead, but that didn't work either. Has anyone done something like this before?