[PR #101] [MERGED] SMP 0.10.0: /back after a death or a teleport, /playtime, /claim show #108

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

📋 Pull Request Information

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

Base: main ← Head: feat/smp-polish


📝 Commits (10+)

  • b9bd159 SMP: places (spawn, homes, warps, /tpa) and /rules
  • 26079e7 SMP places: hook points API 16, and the proof waits for each answer
  • 0eb6ca7 SMP places: hook points API 18 (main took 16 and 17)
  • 1ec378a SMP places: hook points API 21 (main's mod screens took 18 to 20)
  • 63f2fa9 SMP places: pinned to horizon main with #4610 (API 21)
  • ec056f9 SMP: land claims (/claim, /trust) on the block hooks
  • 803907a SMP: keep water, fire, pistons, explosions, buckets and blows out of claims (hooks 22)
  • b0e3d98 SMP claims: pinned to horizon#4739's head (API 22)
  • aaf6cce SMP claims: pinned to horizon main with #4739 (API 22)
  • 4364dbf Merge remote-tracking branch 'origin/main' into feat/smp-places

📊 Changes

19 files changed (+2816 additions, -35 deletions)

View changed files

📝 native/smp/Cargo.lock (+1 -1)
📝 native/smp/Cargo.toml (+1 -1)
📝 native/smp/README.md (+53 -6)
📝 native/smp/compatibility.json (+2 -2)
➕ native/smp/mixins/smp/attack_entity.rs (+10 -0)
➕ native/smp/mixins/smp/block_spread.rs (+14 -0)
➕ native/smp/mixins/smp/destroy_block.rs (+4 -0)
➕ native/smp/mixins/smp/explosion_detonate.rs (+8 -0)
➕ native/smp/mixins/smp/fill_bucket.rs (+4 -0)
📝 native/smp/mixins/smp/glue.rs (+373 -11)
📝 native/smp/mixins/smp/horizon-mixin.toml (+103 -3)
➕ native/smp/mixins/smp/piston_move.rs (+24 -0)
➕ native/smp/mixins/smp/right_click_block.rs (+4 -0)
➕ native/smp/mixins/smp/smp_board.rs (+439 -0)
➕ native/smp/mixins/smp/smp_claims.rs (+688 -0)
📝 native/smp/mixins/smp/smp_economy.rs (+41 -7)
➕ native/smp/mixins/smp/smp_places.rs (+784 -0)
📝 native/smp/proof.py (+257 -4)
📝 native/smp/src/lib.rs (+6 -0)

📄 Description

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

Stacked on #97 (sidebar), itself on #72. Same Horizon pin as #97 (horizon-rust/horizon#5268, stamped locally).

What

SMP 0.10.0, first part of "an even cleaner SMP":

  • /back: to where you died, or where your last teleport (spawn, home, warp, tpa) took you from. Same warmup
    (moving or being hurt calls it off) and cooldown as every teleport. Deaths are seen in the once-a-second pass
    (health 0), so nothing runs per tick.
  • /playtime [player]: how long you (or a player who is on) have played here, from the time places already
    counts for homes and claims (2 h 05 min).
  • /claim show: draws the border of the chunk you stand in for 10 s, to you only (particle ... force <you>),
    once a second: green yours or a trusting owner's, red someone else's, white free.

Already there and kept: /spawn, /home, /warp, /tpa have a warmup and a cooldown (places.warmup_seconds,
cooldown_seconds), and every economy action is in audit.log.

Proof

native.py proof smp, new polish step: Steve is killed, respawns, /back takes him to where he died ("where you
died"); /playtime and /playtime Alex answer; Alex's /claim show answers and draws (screenshot
claim-show.png: white dust along the free chunk's edges where she stands). The whole proof result: below.

cargo test: 42 pass; new back_goes_where_the_player_died_or_was_before_a_teleport,
a_border_runs_along_the_chunks_edges.

Cost with 58 bots: in a comment with #97's A/B runs.

🤖 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-mods/pull/101 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/smp-polish` --- ### 📝 Commits (10+) - [`b9bd159`](https://github.com/horizon-rust/horizon-mods/commit/b9bd159dcf76e7e61daac2d4891c20f3612101d1) SMP: places (spawn, homes, warps, /tpa) and /rules - [`26079e7`](https://github.com/horizon-rust/horizon-mods/commit/26079e71ed96ba45f596491777182be1168c5abf) SMP places: hook points API 16, and the proof waits for each answer - [`0eb6ca7`](https://github.com/horizon-rust/horizon-mods/commit/0eb6ca75c36e4fd8a2019844ac151f5bbea7a52b) SMP places: hook points API 18 (main took 16 and 17) - [`1ec378a`](https://github.com/horizon-rust/horizon-mods/commit/1ec378ac96d3f03dd1950d06c447f37b191c2927) SMP places: hook points API 21 (main's mod screens took 18 to 20) - [`63f2fa9`](https://github.com/horizon-rust/horizon-mods/commit/63f2fa9f0169d3470c9cf4bc66043d3b54042b37) SMP places: pinned to horizon main with #4610 (API 21) - [`ec056f9`](https://github.com/horizon-rust/horizon-mods/commit/ec056f9f0291c847b5e76e1bf849c21934fabb31) SMP: land claims (/claim, /trust) on the block hooks - [`803907a`](https://github.com/horizon-rust/horizon-mods/commit/803907aaa5225d3cbe8d990e0b9eb804a8e7dda5) SMP: keep water, fire, pistons, explosions, buckets and blows out of claims (hooks 22) - [`b0e3d98`](https://github.com/horizon-rust/horizon-mods/commit/b0e3d98b52194545ebafbcedc0d8d9ecd3c1002b) SMP claims: pinned to horizon#4739's head (API 22) - [`aaf6cce`](https://github.com/horizon-rust/horizon-mods/commit/aaf6ccefcc8f2983c47a8433b03e9c42b13f5a52) SMP claims: pinned to horizon main with #4739 (API 22) - [`4364dbf`](https://github.com/horizon-rust/horizon-mods/commit/4364dbfba3036c7a6d4327b8010b56f68c9fe9aa) Merge remote-tracking branch 'origin/main' into feat/smp-places ### 📊 Changes **19 files changed** (+2816 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/Cargo.lock` (+1 -1) 📝 `native/smp/Cargo.toml` (+1 -1) 📝 `native/smp/README.md` (+53 -6) 📝 `native/smp/compatibility.json` (+2 -2) ➕ `native/smp/mixins/smp/attack_entity.rs` (+10 -0) ➕ `native/smp/mixins/smp/block_spread.rs` (+14 -0) ➕ `native/smp/mixins/smp/destroy_block.rs` (+4 -0) ➕ `native/smp/mixins/smp/explosion_detonate.rs` (+8 -0) ➕ `native/smp/mixins/smp/fill_bucket.rs` (+4 -0) 📝 `native/smp/mixins/smp/glue.rs` (+373 -11) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+103 -3) ➕ `native/smp/mixins/smp/piston_move.rs` (+24 -0) ➕ `native/smp/mixins/smp/right_click_block.rs` (+4 -0) ➕ `native/smp/mixins/smp/smp_board.rs` (+439 -0) ➕ `native/smp/mixins/smp/smp_claims.rs` (+688 -0) 📝 `native/smp/mixins/smp/smp_economy.rs` (+41 -7) ➕ `native/smp/mixins/smp/smp_places.rs` (+784 -0) 📝 `native/smp/proof.py` (+257 -4) 📝 `native/smp/src/lib.rs` (+6 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #97 (sidebar), itself on #72. Same Horizon pin as #97 (horizon-rust/horizon#5268, stamped locally). ## What SMP 0.10.0, first part of "an even cleaner SMP": - **`/back`**: to where you died, or where your last teleport (spawn, home, warp, tpa) took you from. Same warmup (moving or being hurt calls it off) and cooldown as every teleport. Deaths are seen in the once-a-second pass (health 0), so nothing runs per tick. - **`/playtime [player]`**: how long you (or a player who is on) have played here, from the time `places` already counts for homes and claims (`2 h 05 min`). - **`/claim show`**: draws the border of the chunk you stand in for 10 s, to you only (`particle ... force <you>`), once a second: green yours or a trusting owner's, red someone else's, white free. Already there and kept: `/spawn`, `/home`, `/warp`, `/tpa` have a warmup and a cooldown (`places.warmup_seconds`, `cooldown_seconds`), and every economy action is in `audit.log`. ## Proof `native.py proof smp`, new `polish` step: Steve is killed, respawns, `/back` takes him to where he died ("where you died"); `/playtime` and `/playtime Alex` answer; Alex's `/claim show` answers and draws (screenshot `claim-show.png`: white dust along the free chunk's edges where she stands). The whole proof result: below. `cargo test`: 42 pass; new `back_goes_where_the_player_died_or_was_before_a_teleport`, `a_border_runs_along_the_chunks_edges`. Cost with 58 bots: in a comment with #97's A/B runs. 🤖 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:03:17 +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-mods#108
No description provided.