execute as @e[predicate=survivalplus:item/slotmoney,distance=..2,nbt={OnGround:1b},limit=1,sort=nearest] run tag @s add placedbet
execute as @e[tag=placedbet] run execute store result score @s itemcount run data get entity @s Item.Count
execute as @e[tag=placedbet,limit=1,sort=nearest] run function survivalplus:finale/slots/placebet
execute as @e[tag=casino,distance=..2] run data merge entity @s {Item:{id:"air"}}
playsound minecraft:block.note_block.chime block @a ~ ~ ~