[PR #7475] Include simulated area-effect clouds in entity selectors #7621

Open
opened 2026-11-03 07:20:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7475
Author: @TheMrZZ
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/7438-generated-cloud-selectors


📝 Commits (2)

  • 3e4c4d7 Include simulated area-effect clouds in entity selectors
  • d3a2308 Merge current main and retain cloud and trident command targets

📊 Changes

5 files changed (+101 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game/commands.rs (+23 -2)
📝 crates/horizon-client/src/game/commands/data.rs (+29 -1)
📝 crates/horizon-client/src/game/native_entities.rs (+2 -1)
📝 crates/horizon-client/src/game/scoreboard.rs (+4 -2)
📝 tools/command_exec_corpus.py (+43 -0)

📄 Description

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

What and why

Fixes #7438.

Creeper-generated area-effect clouds were sent to clients but omitted from entity selector candidates. Add a command target for simulated clouds and include it in the shared candidate and entity-ID lookup paths. Wire live position/type/data reads, tags, UUID-backed score holders, teleport position updates, and explicit removal to the existing cloud state.

Extend the command-execution corpus with default-fuse creepers and a directly summoned cloud control. The regression checks selection at 30 and 40 ticks, live data, tag/NBT and score filters, natural expiry, and /kill.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Java 26.3 EntitySelector.findEntities / addEntities enumerate the level's entities through ServerLevel.getEntities; generated AreaEffectCloud entities participate in that same selection. The live data reads follow the position and cloud Age, Duration, Radius, and WaitTime fields exposed through entity data access. Reference bytecode inspected: EntitySelector and AreaEffectCloud.addAdditionalSaveData.

The snapshot covers the live command fields used here. Cloud chunk persistence remains a separate gap in the port ledger.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick locally, against origin/main at f030c124c, 10 min 13 s)

Check Result
Scope ✅ 5 files, +101 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (1 min 24 s)
rustfmt ✅ (17 s)
clippy ✅ (4 min 12 s)
tests: horizon-client ✅ 698 passed (3 min 41 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
mod API up to date ✅ (35 s)
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)

The focused creeper cloud selectors group in tools/test_command_exec_parity.py was run against the pinned Java 26.3 oracle and both prebuilt binaries. Unchanged main a27e9b456 failed with 12 mismatches among 18 commands; the fixed binary matched all 18, including feedback, styles, and callbacks. The Java reference records were identical between runs. The group uses the default fuse throughout.

The port-ledger base comparison also completed with no new gaps or stale citations.

The Python suite ran 614 tests with one skipped; the Rust suite passed 698 tests with five ignored. The full affected-harness suite has not been run locally (pr_ready --quick).

Merged current main after #7390 landed: the shared target arms retain both tridents and generated clouds. The merged branch again matches all 18 focused cloud commands against a fresh Java 26.3 oracle.

🤖 Generated with 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/7475 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/7438-generated-cloud-selectors` --- ### 📝 Commits (2) - [`3e4c4d7`](https://github.com/horizon-rust/horizon/commit/3e4c4d7f8974d5029216c0fc06d4cee1d88043f6) Include simulated area-effect clouds in entity selectors - [`d3a2308`](https://github.com/horizon-rust/horizon/commit/d3a2308444a0982470028c3e05ce6ab20cb08837) Merge current main and retain cloud and trident command targets ### 📊 Changes **5 files changed** (+101 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands.rs` (+23 -2) 📝 `crates/horizon-client/src/game/commands/data.rs` (+29 -1) 📝 `crates/horizon-client/src/game/native_entities.rs` (+2 -1) 📝 `crates/horizon-client/src/game/scoreboard.rs` (+4 -2) 📝 `tools/command_exec_corpus.py` (+43 -0) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Fixes #7438. Creeper-generated area-effect clouds were sent to clients but omitted from entity selector candidates. Add a command target for simulated clouds and include it in the shared candidate and entity-ID lookup paths. Wire live position/type/data reads, tags, UUID-backed score holders, teleport position updates, and explicit removal to the existing cloud state. Extend the command-execution corpus with default-fuse creepers and a directly summoned cloud control. The regression checks selection at 30 and 40 ticks, live data, tag/NBT and score filters, natural expiry, and `/kill`. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Java 26.3 `EntitySelector.findEntities` / `addEntities` enumerate the level's entities through `ServerLevel.getEntities`; generated `AreaEffectCloud` entities participate in that same selection. The live data reads follow the position and cloud `Age`, `Duration`, `Radius`, and `WaitTime` fields exposed through entity data access. Reference bytecode inspected: `EntitySelector` and `AreaEffectCloud.addAdditionalSaveData`. The snapshot covers the live command fields used here. Cloud chunk persistence remains a separate gap in the port ledger. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` locally, against origin/main at f030c124c, 10 min 13 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +101 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (1 min 24 s) | | rustfmt | ✅ (17 s) | | clippy | ✅ (4 min 12 s) | | tests: horizon-client | ✅ 698 passed (3 min 41 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (35 s) | | 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) | The focused `creeper cloud selectors` group in `tools/test_command_exec_parity.py` was run against the pinned Java 26.3 oracle and both prebuilt binaries. Unchanged main `a27e9b456` failed with 12 mismatches among 18 commands; the fixed binary matched all 18, including feedback, styles, and callbacks. The Java reference records were identical between runs. The group uses the default fuse throughout. The port-ledger base comparison also completed with no new gaps or stale citations. The Python suite ran 614 tests with one skipped; the Rust suite passed 698 tests with five ignored. The full affected-harness suite has not been run locally (`pr_ready --quick`). Merged current main after #7390 landed: the shared target arms retain both tridents and generated clouds. The merged branch again matches all 18 focused cloud commands against a fresh Java 26.3 oracle. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7621
No description provided.