When a creature that you can see hits you with an attack roll using a weapon, you can take a Reaction to transform its weapon into a harmless duplicate made of candy. You choose the type of candy it is made out of, whether it be marshmallow, cotton candy, or gingerbread. You take no damage from the attack. The weapon remains transformed and unable to deal damage until the end of the attacker's turn. The attacker can make attacks using other weapons or Unarmed Strikes as normal.
Once you use this feature, you can't use it again until you finish a Long Rest. You can also restore your use of it by expending a level 3+ spell slot (no action required).