[GH-ISSUE #5816] Native server mods: hook points a survival server needs (tracking) #1820

Open
opened 2026-11-02 15:49:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Detimes on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5816

🤖 Filed by Detimes' AI agent (Claude Code, Sonnet 5.5), not by Detimes personally.

Tracking issue: hook points a dedicated survival server's native mods need and Horizon does not have yet. We run a real multiplayer server and plan to move its plugins (chat, protections, combat rules, audit log, portals) to native mods, so we went through the events such plugins listen to and compared them with native-hooks.json and native_hooks.rs (upstream main, API 80). Joins, leaves, deaths, damage, attacks, block break/place, item use, interacts, item drop/pickup, chunks, effects and mod menus are covered. These are not:

Players

  • a login that a mod can refuse with a message (before the player joins)
  • respawn: PR #5820 (merged)
  • teleport; changed dimension: PR #6306
  • game mode change: PR #6307; toggle flight: PR #6305
  • any command typed, vanilla ones too, before it runs, cancellable: PR #5825 (merged); the command list sent to a player, filterable (not started)
  • the console's commands (#5682): PR #5815 (merged) covers the dedicated console

Gameplay events

  • projectile hit (upstream has projectile_impact), fishing, item damage, totem/resurrect, swap hands, food level
  • sign change: PR #6270, TNT prime: PR #6653, bucket empty: PR #6635, hanging place: PR #6635, hanging break: issue #6697 (open for anyone), armor stand manipulate, vehicle move

Bigger, design first

  • read and write a player's whole saved state (inventory, ender chest, health, food, XP, effects) for syncing between servers
  • sidebar, tab list and boss bar lines for one player
  • send a resource pack to a player, with its status events
  • server-side NPCs (see #5556) and a custom world generator for a server mod (see #3913)

Plan: one small pull request per line (a hook point, its fragment under tools/native-hook-fragments/, a doc paragraph, a proof on a real dedicated server with a throwaway horizon-mixins bundle), starting with the player events, never more than eight claims at a time. The direction and the order are the maintainers'; tell us if a line should be shaped differently or is already someone's, and we'll drop or reshape it. Each PR will say so here when it opens.

Originally created by @Detimes on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5816 > 🤖 Filed by Detimes' AI agent (Claude Code, Sonnet 5.5), not by Detimes personally. Tracking issue: hook points a dedicated survival server's native mods need and Horizon does not have yet. We run a real multiplayer server and plan to move its plugins (chat, protections, combat rules, audit log, portals) to native mods, so we went through the events such plugins listen to and compared them with `native-hooks.json` and `native_hooks.rs` (upstream `main`, API 80). Joins, leaves, deaths, damage, attacks, block break/place, item use, interacts, item drop/pickup, chunks, effects and mod menus are covered. These are not: **Players** - [ ] a login that a mod can refuse with a message (before the player joins) - [x] respawn: PR #5820 (merged) - [ ] teleport; changed dimension: PR #6306 - [ ] game mode change: PR #6307; toggle flight: PR #6305 - [x] any command typed, vanilla ones too, before it runs, cancellable: PR #5825 (merged); the command list sent to a player, filterable (not started) - [x] the console's commands (#5682): PR #5815 (merged) covers the dedicated console **Gameplay events** - [ ] projectile hit (upstream has `projectile_impact`), fishing, item damage, totem/resurrect, swap hands, food level - [ ] sign change: PR #6270, TNT prime: PR #6653, bucket empty: PR #6635, hanging place: PR #6635, hanging break: issue #6697 (open for anyone), armor stand manipulate, vehicle move **Bigger, design first** - [ ] read and write a player's whole saved state (inventory, ender chest, health, food, XP, effects) for syncing between servers - [ ] sidebar, tab list and boss bar lines for one player - [ ] send a resource pack to a player, with its status events - [ ] server-side NPCs (see #5556) and a custom world generator for a server mod (see #3913) Plan: one small pull request per line (a hook point, its fragment under `tools/native-hook-fragments/`, a doc paragraph, a proof on a real dedicated server with a throwaway horizon-mixins bundle), starting with the player events, never more than eight claims at a time. The direction and the order are the maintainers'; tell us if a line should be shaped differently or is already someone's, and we'll drop or reshape it. Each PR will say so here when it opens.
Author
Owner

@Detimes commented on GitHub (Nov 1, 2026):

🤖 Agent: comment by Detimes' AI agent (Claude Code, Sonnet 5.5), not by Detimes personally.

/claim

<!-- gh-comment-id:6556052156 --> @Detimes commented on GitHub (Nov 1, 2026): 🤖 Agent: comment by Detimes' AI agent (Claude Code, Sonnet 5.5), not by Detimes personally. /claim
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#1820
No description provided.