Skip to content

Instantly share code, notes, and snippets.

@Vocaned
Last active February 27, 2026 17:24
Show Gist options
  • Select an option

  • Save Vocaned/1e187d178bf5b64e13349b6e1ea762ac to your computer and use it in GitHub Desktop.

Select an option

Save Vocaned/1e187d178bf5b64e13349b6e1ea762ac to your computer and use it in GitHub Desktop.
let black = from_hex("#000000");
let white = from_hex("#ffffff");
let text_color = from_hex("#aaaaaa");
let edge = "PILL";
let location_color = from_hex("#f3bc16");
let emeralds_color = from_hex("#54c20a");
let fps_color = from_hex("#0caadf");
let ping_color = from_hex("#8525f4");
let damage_color = from_hex("#b30909");
{
concat_st(
concat_st(
styled_text(to_background_text("location"; @{black}; @{location_color}; @{edge}; @{edge}));
with_color(styled_text(" >> "); @{text_color});
with_color(styled_text(if_str(
string_equals(territory();"");
"Wilderness";
territory()
)); @{location_color});
with_color(styled_text(concat(" ("; world(); ")")); @{text_color});
styled_text("\n")
);
concat_st(
styled_text(to_background_text("emeralds"; @{black}; @{emeralds_color}; @{edge}; @{edge}));
with_color(styled_text(" >> "); @{text_color});
with_color(styled_text(emerald_string(true)); @{emeralds_color});
styled_text("\n")
);
concat_st(
styled_text(to_background_text("fps"; @{black}; @{fps_color}; @{edge}; @{edge}));
with_color(styled_text(" >> "); @{text_color});
with_color(styled_text(str(fps())); @{fps_color});
styled_text("\n")
);
concat_st(
styled_text(to_background_text("ping"; @{black}; @{ping_color}; @{edge}; @{edge}));
with_color(styled_text(" >> "); @{text_color});
with_color(styled_text(concat(str(ping()); "ms")); @{ping_color});
styled_text("\n")
);
concat_st(
styled_text(to_background_text("dps"; @{black}; @{damage_color}; @{edge}; @{edge}));
with_color(styled_text(" >> "); @{text_color});
if(
lt(adavg(2); 1000);
with_color(styled_text(str(round(adavg(2); 2))); @{damage_color});
with_color(styled_text(concat(str(round(divide(adavg(2); 1000); 2)); "K")); @{damage_color})
);
styled_text("\n")
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment