You could get all locations that are 1 block away from the player using the set var -> locations -> and then shift loc, after aligning it first and then get a corresponding variable with world actions to set the block material and set a var with that loc var you’ve just made, and then check if that block equals oak log with if var. or you could get locs of all oak logs in game, and then just if player is in range {those locs} {1}.
but it wont work if you want the player to be farther/closer
You can just keep stacking adjacent repeats with the loc that keeps track of loc of previous adjacent repeat