I have a teleporter system I'm setting up where a teleporter will only trigger if you open a trapped chest and stand on a specific block. I'd like for it to work so that the block is somewhere away from the chest a little ways and you have to go to the appropriate location before the time limit, and the command block will teleport you at any point during that open window.
My setup is as follows: Trapped Chest → Pulse Extender → Command Block
This is my command block code:
execute positioned 265 78 53 as @a[distance=..2] at @s run teleport @a 262 80 59
Currently it only triggers if you're already standing on the designated block when you open the chest. Is there any way to make it work so it will trigger at any point during the length of time opened by the pulse extender when you step on the block? I'm fine with both redstone and command code solutions.
My fallback plan is to swap out the pulse extender for a pulse delayer, so you have time to get into position before it triggers, but I'd prefer to have a window of opportunity if at all possible.