execute unless items entity @s weapon.mainhand melon[custom_data~{mop:1}] run return 0
execute if entity @e[tag=maid.carry,type=item_display] run return run title @s actionbar {"translate":"maid.mop.fail.putdown","color":"red"}
scoreboard players add @s[scores={mop.use=21..}] mop.use 1
execute at @s[scores={mop.use=28}] run function ws:work/misc/tier2/maid/castmop
execute unless score @s mop.use matches 21..30 run scoreboard players set @s mop.use 21
item modify entity @s weapon.mainhand ws:maid/mop