[PR #2058] [MERGED] Official mod: Minimap #3970

Closed
opened 2026-11-03 04:13:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2058
Author: @ludovic111
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: feat/official-minimap-mod


📝 Commits (2)

  • 6c3473c Official mod: Minimap
  • 71126d3 Merge feat/mod-minimap-api (with main) into feat/official-minimap-mod

📊 Changes

6 files changed (+170 additions, -2 deletions)

View changed files

📝 Cargo.lock (+7 -0)
📝 Cargo.toml (+1 -1)
📝 docs/mods.md (+2 -1)
➕ mods/official/minimap/Cargo.toml (+16 -0)
➕ mods/official/minimap/horizon-mod.toml (+9 -0)
➕ mods/official/minimap/src/lib.rs (+135 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The API it uses, render.set-minimap, is #2056 (merged).

The minimap is the fourth extra to become an official mod, after the FPS counter, Keystrokes and Zoom. The built-in minimap's removal follows once this is published, with the same one-time migration.

What players get

mods/official/minimap (id minimap, capabilities render, ui, storage) shows the extra's map with the extra's five options on its settings page:

  • Corner: top right by default;
  • Size: Small 64, Medium 96 (default), Large 128;
  • Shape: square (default) or round;
  • Zoom: ½, 1 (default), 2 or 4 blocks per pixel;
  • Turn with the player: OFF by default.

They are kept in the mod's storage (corner, size, shape, zoom, rotate) with the extra's own values, where the migration will write a player's old settings. The mod has no frame hook. It tells the game the map it wants at start and on each change, and the game draws it (#2056). docs/mods.md lists it with the other official mods.

Identical look

The same game build and world (seed 42, server thread, noon), in three variants: no map, the built-in extra, and the mod. Only the map region of each screenshot is compared (idle, after turning, after a teleport):

  • Default settings (top right, medium, square, 1 block per pixel): mean pixel difference built-in vs mod 0.000–0.002.
  • Other settings (bottom left, large, round, 2 blocks per pixel, turning with the player, N on the rim): 0.000–0.002.
  • For scale: two runs of the built-in extra itself differ by 0.7–5.1, depending on how far the tiles had filled in. The first round of each pair is compared, where both had filled the same.
  • The settings page in game: the five rows, and each click cycles its value and saves it (corner bottom_left, size 128, shape round, zoom 2, rotate true).

Cost

  • Per frame, uncapped (3 rounds × 30 s, CPU frame time, on a Mac mini shared with other agents): no map 0.638 ms, built-in 0.621 ms, mod 0.659 ms.
    • Each variant moves ±0.03 ms from round to round; no map came out slower than the built-in.
    • The mod does no per-frame work of its own: the tiles and image are the extra's code in both cases.
  • The published mods still load on this build: FPS Counter, Keystrokes and Zoom, downloaded from the registry, beside the Minimap mod, in both modes, all on and running.

Self-check against #2056's head:

pr_ready (tools/pr_ready.py --quick --base 641ff5108 on ludovics-mac-mini, against 641ff5108 at 641ff5108, 4 min 56 s)

Check Result
Scope ✅ 6 files, +170 −2
Cargo.lock ✅ changes with a Cargo.toml
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (9 s)
clippy ✅ (54 s)
tests: workspace ✅ 2179 passed (2 min 49 s)
doc tests ✅ 1 passed (1 min 4 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 338 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 326 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

skip-release: nobody runs it until it's in the registry; the removal PR is the player-facing change.

Publishing

Once this is on main, the maintainer builds it (cd mods/official/minimap && cargo horizon-mod build) and opens the horizon-mods PR with mods/minimap.toml.

🤖 Generated with Claude Code


🔄 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/2058 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/official-minimap-mod` --- ### 📝 Commits (2) - [`6c3473c`](https://github.com/horizon-rust/horizon/commit/6c3473c6e0b1eb69f05072c22a93ef33d22962bf) Official mod: Minimap - [`71126d3`](https://github.com/horizon-rust/horizon/commit/71126d3e13f341fc68f27051d9fbb1abaaa9e570) Merge feat/mod-minimap-api (with main) into feat/official-minimap-mod ### 📊 Changes **6 files changed** (+170 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+7 -0) 📝 `Cargo.toml` (+1 -1) 📝 `docs/mods.md` (+2 -1) ➕ `mods/official/minimap/Cargo.toml` (+16 -0) ➕ `mods/official/minimap/horizon-mod.toml` (+9 -0) ➕ `mods/official/minimap/src/lib.rs` (+135 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The API it uses, `render.set-minimap`, is #2056 (merged). The minimap is the fourth extra to become an official mod, after the FPS counter, Keystrokes and Zoom. The built-in minimap's removal follows once this is published, with the same one-time migration. ## What players get `mods/official/minimap` (id `minimap`, capabilities render, ui, storage) shows the extra's map with the extra's five options on its settings page: - **Corner**: top right by default; - **Size**: Small 64, Medium 96 (default), Large 128; - **Shape**: square (default) or round; - **Zoom**: ½, 1 (default), 2 or 4 blocks per pixel; - **Turn with the player**: OFF by default. They are kept in the mod's storage (`corner`, `size`, `shape`, `zoom`, `rotate`) with the extra's own values, where the migration will write a player's old settings. The mod has no frame hook. It tells the game the map it wants at start and on each change, and the game draws it (#2056). `docs/mods.md` lists it with the other official mods. ## Identical look The same game build and world (seed 42, server thread, noon), in three variants: no map, the built-in extra, and the mod. Only the map region of each screenshot is compared (idle, after turning, after a teleport): - **Default settings** (top right, medium, square, 1 block per pixel): mean pixel difference built-in vs mod **0.000–0.002**. - **Other settings** (bottom left, large, round, 2 blocks per pixel, turning with the player, N on the rim): **0.000–0.002**. - For scale: two runs of the built-in extra itself differ by 0.7–5.1, depending on how far the tiles had filled in. The first round of each pair is compared, where both had filled the same. - **The settings page in game:** the five rows, and each click cycles its value and saves it (`corner bottom_left`, `size 128`, `shape round`, `zoom 2`, `rotate true`). ## Cost - **Per frame, uncapped** (3 rounds × 30 s, CPU frame time, on a Mac mini shared with other agents): no map 0.638 ms, built-in 0.621 ms, mod 0.659 ms. - Each variant moves ±0.03 ms from round to round; no map came out slower than the built-in. - The mod does no per-frame work of its own: the tiles and image are the extra's code in both cases. - **The published mods still load on this build:** FPS Counter, Keystrokes and Zoom, downloaded from the registry, beside the Minimap mod, in both modes, all on and running. **Self-check** against #2056's head: **pr_ready** (`tools/pr_ready.py --quick --base 641ff5108` on ludovics-mac-mini, against 641ff5108 at 641ff5108, 4 min 56 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +170 −2 | | Cargo.lock | ✅ changes with a Cargo.toml | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (9 s) | | clippy | ✅ (54 s) | | tests: workspace | ✅ 2179 passed (2 min 49 s) | | doc tests | ✅ 1 passed (1 min 4 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 338 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 326 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | `skip-release`: nobody runs it until it's in the registry; the removal PR is the player-facing change. ## Publishing Once this is on `main`, the maintainer builds it (`cd mods/official/minimap && cargo horizon-mod build`) and opens the horizon-mods PR with `mods/minimap.toml`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:41 +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#3970
No description provided.