im trying to make it so if a certain named item was in your offhand it would give you levitiation until you removed it this is what i have so far and im not quite sure how to fix it (im new to skript)
on swap hand items:
if off hand item is shulker_shell "&r&dLevitation Charm":
apply levitation 1 for 3 seconds
on swap hand items:
if off hand item is shulker_shell "&r&dLevitation Charm":
apply levitation 1 for 3 seconds