# Doctor Mask system
execute as @a[hasitem={item=manalabs_scp:doctor_mask,location=slot.armor.head},tag=!manalabs_scp_doctor_mask_night_vision_effect] run function manalabs/scp/doctor_mask/add_effect
execute as @a[tag=manalabs_scp_doctor_mask_night_vision_effect] unless entity @s[hasitem={item=manalabs_scp:doctor_mask,location=slot.armor.head}] run function manalabs/scp/doctor_mask/remove_effect