A way to give elemental resist?

I'm pretty new to this and I've tried to look it up, but I couldn't find anything on if there is a way to give enemies elemental resistances and maybe have items do the same? I see where it can be added for them to have that element added to their attacks, but not as a resistance.
New users often seem to get confused about this!

Just add Element Rate trait(s) to the Enemy, Weapon, Armor, Actor, or Class. 👋
  1. Element Rate applies to incoming damage/healing. E.g. someone with "Element Rate: Fire 20%" will only take 20% of the damage from a "Fire Breath" attack. So 20% rate is like 80% resistance.

  2. Attack Element applies to outgoing damage/healing from skills/items with "Element: Normal Attack". By default when there are multiple elements the engine picks the one that is most effective on the target. E.g.
    • Harold has attack elements Physical and Fire.
    • A ghost enemy has element rates: Physical 0%, Fire 70%.
    • Harold's basic attack hits, and its formula yields a result of 100.
    • Assuming no other factors, the ghost takes 70 damage.
If you want an Item/Skill to give its target(s) a temporary Element Rate, you can have it apply a state that has the appropriate trait.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-give-elemental-resist.156020/