advancement revoke @s only samsung:right_click/shelf/1

execute at @s run summon minecraft:text_display ~1.5 ~3 ~ {text:{text:"+3 Max devices",color:green},billboard:center}
execute at @s run setblock ~1 ~ ~ oak_shelf[facing=west]
execute at @s run setblock ~2 ~ ~ oak_planks
execute at @s run scoreboard players add #max_phones value 3
execute at @s run advancement grant @s only samsung:place_shelf
execute at @s run clear @s *[custom_data={shelf_1:true}] 1
#execute in samsung:samsung_store if entity @s[distance=1..] run scoreboard players reset @s sneak_place_shelf_1