The biome a player is in will be displayed next to the players name.
Color table
1 - aqua
2 - black
3 - blue
4 - dark_aqua
5 - dark_blue
6 - dark_gray
7 - dark_green
8 - dark_purple
9 - dark_red
10 - gold
11 - gray
12 - green
13 - light_purple
14 - red
15 - white
16 - yellow
Biome list
ocean
deep_ocean
warm_ocean
lukewarm_ocean
deep_lukewarm_ocean
cold_ocean
deep_cold_ocean
frozen_ocean
deep_frozen_ocean
mushroom_fields
jagged_peaks
frozen_peaks
stony_peaks
meadow
cherry_grove
grove
snowy_slopes
windswept_hills
windswept_gravelly_hills
windswept_forest
forest
flower_forest
taiga
old_growth_pine_taiga
old_growth_spruce_taiga
snowy_taiga
birch_forest
old_growth_birch_forest
dark_forest
jungle
sparse_jungle
bamboo_jungle
river
frozen_river
swamp
mangrove_swamp
beach
snowy_beach
stony_shore
plains
sunflower_plains
snowy_plains
ice_spikes
desert
savanna
savanna_plateau
windswept_savanna
badlands
wooded_badlands
eroded_badlands
deep_dark
dripstone_caves
lush_caves
void
nether_wastes
soul_sand_valley
crimson_forest
warped_forest
basalt_deltas
end
small_end_islands
end_midlands
end_highlands
end_barrens
General color of the name
default = gray
/scoreboard players set &name_color_sbin color.sbin value
value = color --> look at color table
Color of the biome prefix
I made default values for all the biomes
/scoreboard players set &prefix_color_sdin_biome color.sbin value
replace biome with the biome you want to change the color --> look at biome list for correct names
value = color --> look at color table
value = 0 --> disabled / no prefix
Compatibility with my AFK Announcer datapack/mod