use the setvariable block, the random location is in location values as a dice block if i remember correctly, and the random item is found next to “set variable” as “set to random value”
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
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...