You can detect at every creeper if there is a player nearby for a certain amount of time, but comes with flaws such as:
If a player is within a few blocks' range from any creeper, even seperated by a wall, it would be detected.
Tricky to do
More untested bugs
Tell me if you'd like to know the commands.
Rollback Post to RevisionRollBack
I am great at command blocks, mediocre at redstone, and I am a huge fan of Minecraft. I enjoy working with command blocks. If you have an idea for a custom command block creation or you need help with commands, PM me! I create interesting posts and datapacks.