[PR #3717] [MERGED] Extras: show your own name tag in third person #5167

Closed
opened 2026-11-03 05:10:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3717
Author: @1038april
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: feat/own-name-tag


📝 Commits (1)

  • f4f9897 Extras: show your own name tag in third person

📊 Changes

3 files changed (+60 additions, -7 deletions)

View changed files

📝 crates/horizon-client-render/src/extras.rs (+22 -4)
📝 crates/horizon-client/src/game/names.rs (+27 -2)
📝 docs/extras.md (+11 -1)

📄 Description

🤖 Opened by 1038april's AI agent (Claude), not by 1038april themself.

What and why

A new extra, Own name tag (ownNameTag, off by default), under a new "Third person" header on the Extras page. With it on, the player's own model in third person (F5, either view) gets the name tag other players see: the profile name in its team's prefix, suffix and colour, the below-name score within 10 blocks, faded and without the see-through copy while crouching.

own_name_tag adds the player's own model to the players name_tags already walks, so it goes through the same checks as other players' tags (team name tag visibility, the 64-block distance, F1). It is hidden in first person, while sleeping, in spectator mode and while invisible. The name is the profile name on a server (single player's server thread included), so the team and score lookups match what others see.

Documented in docs/extras.md.

Vanilla reference

Horizon-only: vanilla never names the camera entity (LivingEntityRenderer.shouldShowName), which is why this is off by default and changes nothing until it is turned on. The tag itself is the existing EntityRenderer.submitNameTag port in game/names.rs.

Self-check

python3 tools/pr_ready.py --base upstream/main --quick, on a Linux machine without game files or a GPU:

Check Result
Scope ✅ 3 files, +60 −7
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (51 s)
rustfmt ✅ (11 s)
clippy ❌ failed (32 s)
tests: horizon-client, horizon-client-render ❌ 1350 passed, 1 failed (4 min 41 s)
doc tests ✅ 0 passed (1 min 44 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Both failures are outside this change: clippy stops on manual_range_contains in horizon-world/src/worldgen/aquifer/noise_based.rs:450 (this machine's Rust 1.97 is newer than CI's), and the failing test is gfx::native_post::tests::passes_chain_through_half_float_targets_with_options_and_depth, which can't create its render pipeline without a GPU. The extras round-trip test covers the new key; clippy shows no warnings in the changed files.

🤖 Generated with Claude Code

https://claude.ai/code/session_018ksHJwFp11RfYk6S9xnyCf


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3717 **Author:** [@1038april](https://github.com/1038april) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `feat/own-name-tag` --- ### 📝 Commits (1) - [`f4f9897`](https://github.com/horizon-rust/horizon/commit/f4f9897c9e35e0e06268de9197310ef9dc0ef7ee) Extras: show your own name tag in third person ### 📊 Changes **3 files changed** (+60 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/extras.rs` (+22 -4) 📝 `crates/horizon-client/src/game/names.rs` (+27 -2) 📝 `docs/extras.md` (+11 -1) </details> ### 📄 Description > 🤖 Opened by 1038april's AI agent (Claude), not by 1038april themself. ## What and why A new extra, **Own name tag** (`ownNameTag`, off by default), under a new "Third person" header on the Extras page. With it on, the player's own model in third person (F5, either view) gets the name tag other players see: the profile name in its team's prefix, suffix and colour, the below-name score within 10 blocks, faded and without the see-through copy while crouching. `own_name_tag` adds the player's own model to the players `name_tags` already walks, so it goes through the same checks as other players' tags (team name tag visibility, the 64-block distance, F1). It is hidden in first person, while sleeping, in spectator mode and while invisible. The name is the profile name on a server (single player's server thread included), so the team and score lookups match what others see. Documented in `docs/extras.md`. ## Vanilla reference Horizon-only: vanilla never names the camera entity (`LivingEntityRenderer.shouldShowName`), which is why this is off by default and changes nothing until it is turned on. The tag itself is the existing `EntityRenderer.submitNameTag` port in `game/names.rs`. ## Self-check `python3 tools/pr_ready.py --base upstream/main --quick`, on a Linux machine without game files or a GPU: | Check | Result | | --- | --- | | Scope | ✅ 3 files, +60 −7 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (51 s) | | rustfmt | ✅ (11 s) | | clippy | ❌ failed (32 s) | | tests: horizon-client, horizon-client-render | ❌ 1350 passed, 1 failed (4 min 41 s) | | doc tests | ✅ 0 passed (1 min 44 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Both failures are outside this change: clippy stops on `manual_range_contains` in `horizon-world/src/worldgen/aquifer/noise_based.rs:450` (this machine's Rust 1.97 is newer than CI's), and the failing test is `gfx::native_post::tests::passes_chain_through_half_float_targets_with_options_and_depth`, which can't create its render pipeline without a GPU. The extras round-trip test covers the new key; clippy shows no warnings in the changed files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018ksHJwFp11RfYk6S9xnyCf --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5167
No description provided.