Quote from PenguinXIII
It's not possible to make an item give you a potion effect while held. I would suggest attributes, but I don't think there's one that can give an item damage resistance.
You can use attributes to make items do things like change your movement speed, give you more health, etc. If you want to try those, then you can use this filter by SethBling.