/
This simple datapack shows an alert when a creeper is near, with customisable options.
Download the datapack for the correct version, and:
Put the zip in world/datapacks.
Put it in saves/Your world name here/datapacks
You can customise the range of when the creeper alert activates, whether it activates at all, and whether to play a sound.
To customise range:
# Trigger at 8 blocks
/trigger creeper_range set 1
# Trigger at 16 blocks (default)
/trigger creeper_range set 2
# Trigger at 32 blocks
/trigger creeper_range set 3
# Disable the alert
/trigger creeper_range set 4
To customise whether a sound plays:
# Play a sound (default)
/trigger creeper_sound set 1
# Disable the sound
/trigger creeper_sound set 2
All these settings are player-specific.

Shows an alert when you are near a creeper, with customisable range