execute if entity @s[tag=maid.reward] on passengers on vehicle run return run function ws:work/misc/tier2/maid/fail {text:'canttake'}
execute if entity @s[tag=maid.reward.plate] unless entity @n[tag=maid.carry,tag=plate,type=item_display] run return run function ws:work/misc/tier2/maid/fail {text:'wrongitem'}
execute if entity @s[tag=maid.reward.cup] unless entity @n[tag=maid.carry,tag=cup,type=item_display] run return run function ws:work/misc/tier2/maid/fail {text:'wrongitem'}
execute if entity @s[tag=maid.reward.plate] run scoreboard players add @a[team=maid] maid.capital 20
execute if entity @s[tag=maid.reward.cup] run scoreboard players add @a[team=maid] maid.capital 15
tag @e[tag=maid.carry,type=item_display] add maid.temp.placed
tag @e[tag=maid.carry,type=item_display] remove maid.carry
execute on passengers run tag @s[type=item_display] add maid.carry
execute on passengers run ride @s[type=item_display] dismount
ride @e[tag=maid.temp.placed,type=item_display,limit=1] mount @s
execute if entity @e[tag=maid.carry,type=item_display] at @s run playsound minecraft:block.lantern.place block @a ~ ~ ~ 0.2
execute if entity @e[tag=maid.temp.placed,type=item_display] at @s run playsound minecraft:block.lantern.fall block @a ~ ~ ~ 0.2
execute as @s[tag=maid.reward,type=interaction] at @s on passengers run data modify entity @s[tag=maid.temp.placed] Rotation set from entity @n[tag=maid.reward] Rotation
execute on passengers run tag @s remove maid.temp.placed
data remove entity @s interaction