Minecraft wiki entry for Creating_behavior_packs, associated text: Notice that in our code, we are filtering for type player and that we will be able to set it as our target once they get within 16 blocks of this entity.