$execute if entity @s[distance=..$(radius),nbt={Inventory:[{components:{"minecraft:custom_data":{$(key):1}}}]}] run return run setblock ~ ~-1 ~ redstone_block
$setblock ~ ~-1 ~ $(block)
$title @s[distance=..$(radius),gamemode=!spectator] actionbar {"translate":"misc.noaccess"}