scoreboard players set #raycast nucleus.dummy 500
execute anchored eyes run function nucleus:block/click_locked_container/raycast

advancement revoke @s only nucleus:item_used_on_block/click_locked_container
