advancement revoke @s only bubblellaneous:player/event/use_block/security_monitor

function bubblellaneous:player/event/generic/get_query_entity {type: "interaction", tag: "security_monitor"}

execute as @e[type=interaction,tag=--bbln.target_entity] as @e[type=item_display,tag=bbln.block,distance=..4] if score @s bbln.block.id = @e[type=interaction,tag=--bbln.target_entity,limit=1] bbln.block.id at @s run function bubblellaneous:block/security_monitor/use

function bubblellaneous:player/event/generic/end
