[PR #2689] [MERGED] Let mobs and dropped items through End gateways #4543

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2689
Author: @levzzz5154
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/end-gateway-entities


📝 Commits (9)

  • a2098c2 Let mobs and dropped items through End gateways
  • 1a56e74 Fix the f-string in the end cargo audit script
  • 139de82 Re-run the checks after the audit script fix
  • 92c073d Merge upstream/main into fix/end-gateway-entities
  • 3382b66 Add the audit that drives a cow and a stack through an End gateway
  • 1232745 Keep a traveller that waits for an End gateway's exit
  • a809733 Merge current main before rerunning End gateway cargo proof
  • f75896e Retry unloaded gateway arrivals and identify the fixture entities by tag
  • c566e69 Tick dropped items again, and keep a cooling-down entity out of a gateway

📊 Changes

7 files changed (+570 additions, -13 deletions)

View changed files

➕ crates/horizon-client/src/end_gateway.rs (+159 -0)
📝 crates/horizon-client/src/game.rs (+9 -1)
📝 crates/horizon-client/src/game/end.rs (+234 -7)
📝 crates/horizon-client/src/game/nether_portal.rs (+14 -5)
📝 crates/horizon-client/src/lib.rs (+1 -0)
📝 crates/horizon-client/src/nether_portal.rs (+4 -0)
➕ tools/singleplayer_end_cargo_audit.py (+149 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself.

Let mobs and dropped items travel through End gateways using the same destination job as the player. Preserve the entity/stack data and reuse an exit already stored by another traveller. The portal sweep, next-tick transition and cooldown rules have unit coverage.

Merged current main while retaining the maintainer's prior fixes. The runtime audit now tags its fixture entities and retries queries while destination chunks load.

Fixes #1518.

Vanilla reference: EndGatewayBlock.entityInside, TheEndGatewayBlockEntity.getPortalPosition/triggerCooldown, Entity.handlePortal, and PortalProcessor.processPortalTeleportation.

Requested runtime proof: python3 tools/singleplayer_end_cargo_audit.py --mode both --bin-dir <fast-build> passed on the current merged tree. In both server-thread and legacy modes, the cow and dropped stack left the gateway at [104, 50, 0], arrived together at [1035.5, 76.0, 1.5], and the stack still contained seven diamonds. The audit loads the destination before checking arrivals.

pr_ready (tools/pr_ready.py --quick --base hr/main on cachyos-x8664, against hr/main at d203ca04b, 7 min 1 s)

Check Result
Scope ⚠️ 7 files, +555 −14; 569 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (33 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 27 s)
tests: horizon-client ✅ 805 passed (4 min 4 s)
doc tests ✅ 0 passed (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 ➖ 120 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 108 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Validation used Rust stable 1.99.1 and an isolated Cargo target directory with prepared resources.

🤖 Generated with OpenAI Codex.


🔄 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/2689 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/end-gateway-entities` --- ### 📝 Commits (9) - [`a2098c2`](https://github.com/horizon-rust/horizon/commit/a2098c2ffa5d0383ac3b72f257e3a60f22f69e7d) Let mobs and dropped items through End gateways - [`1a56e74`](https://github.com/horizon-rust/horizon/commit/1a56e743243c55755656d04c00eaaecdb7c29cff) Fix the f-string in the end cargo audit script - [`139de82`](https://github.com/horizon-rust/horizon/commit/139de824aa6187cbead20df8a58f9481c25b73bb) Re-run the checks after the audit script fix - [`92c073d`](https://github.com/horizon-rust/horizon/commit/92c073de618cd42c74bfdecd18b6908b7ef6eefd) Merge upstream/main into fix/end-gateway-entities - [`3382b66`](https://github.com/horizon-rust/horizon/commit/3382b666cec3bd6fc2e1cf54449313fb4eebea62) Add the audit that drives a cow and a stack through an End gateway - [`1232745`](https://github.com/horizon-rust/horizon/commit/1232745064a013fab3fcbe498d13d1d1a00a354a) Keep a traveller that waits for an End gateway's exit - [`a809733`](https://github.com/horizon-rust/horizon/commit/a80973335c05a5e05a241b12ed5b299b86f1017b) Merge current main before rerunning End gateway cargo proof - [`f75896e`](https://github.com/horizon-rust/horizon/commit/f75896ec45b75573e808e5eecf9d9b75a7c7f17b) Retry unloaded gateway arrivals and identify the fixture entities by tag - [`c566e69`](https://github.com/horizon-rust/horizon/commit/c566e69c6c31099606ee4e7792ea34d1f8cb69bf) Tick dropped items again, and keep a cooling-down entity out of a gateway ### 📊 Changes **7 files changed** (+570 additions, -13 deletions) <details> <summary>View changed files</summary> ➕ `crates/horizon-client/src/end_gateway.rs` (+159 -0) 📝 `crates/horizon-client/src/game.rs` (+9 -1) 📝 `crates/horizon-client/src/game/end.rs` (+234 -7) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+14 -5) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) 📝 `crates/horizon-client/src/nether_portal.rs` (+4 -0) ➕ `tools/singleplayer_end_cargo_audit.py` (+149 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself. Let mobs and dropped items travel through End gateways using the same destination job as the player. Preserve the entity/stack data and reuse an exit already stored by another traveller. The portal sweep, next-tick transition and cooldown rules have unit coverage. Merged current main while retaining the maintainer's prior fixes. The runtime audit now tags its fixture entities and retries queries while destination chunks load. Fixes #1518. Vanilla reference: `EndGatewayBlock.entityInside`, `TheEndGatewayBlockEntity.getPortalPosition`/`triggerCooldown`, `Entity.handlePortal`, and `PortalProcessor.processPortalTeleportation`. Requested runtime proof: `python3 tools/singleplayer_end_cargo_audit.py --mode both --bin-dir <fast-build>` passed on the current merged tree. In both server-thread and legacy modes, the cow and dropped stack left the gateway at [104, 50, 0], arrived together at [1035.5, 76.0, 1.5], and the stack still contained seven diamonds. The audit loads the destination before checking arrivals. **pr_ready** (`tools/pr_ready.py --quick --base hr/main` on cachyos-x8664, against hr/main at d203ca04b, 7 min 1 s) | Check | Result | | --- | --- | | Scope | ⚠️ 7 files, +555 −14; 569 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (33 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 27 s) | | tests: horizon-client | ✅ 805 passed (4 min 4 s) | | doc tests | ✅ 0 passed (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 | ➖ 120 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 108 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Validation used Rust stable 1.99.1 and an isolated Cargo target directory with prepared resources. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:56 +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#4543
No description provided.