[PR #4901] [MERGED] /place structure and /place jigsaw: spawn the entities the pieces carry #5932

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

📋 Pull Request Information

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

Base: main ← Head: parity/place-entities


📝 Commits (3)

  • 860dbf5 Fix main's build: streaming candidates hold a SectionMask
  • 1ee73d8 Spawn the entities /place structure and /place jigsaw's pieces carry
  • 26752de Merge remote-tracking branch 'hr/main' into parity/place-entities

📊 Changes

3 files changed (+32 additions, -18 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/place.rs (+8 -2)
📝 crates/horizon-client/src/game/jigsaw_blocks.rs (+5 -2)
📝 crates/horizon-world/src/level/growth.rs (+19 -14)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

Follow-up to #4342. Placed pieces add entities as they place (StructureTemplate.placeEntities for template pieces: village animals, armor stands, paintings; the mansion, monument, igloo and swamp hut pieces create theirs with addFreshEntity*). Horizon's LevelFeatureWorld collects them (add_entity), but place_structure and place_jigsaw threw the list away; only /place template and structure blocks spawned them.

Rows:

  • PlaceCommand.placeStructure: Behaviours::place_structure now returns the entities its pieces carried and /place structure spawns them into the live level (spawn_entity_from_nbt, as place_template_entry does).
  • PlaceCommand.placeJigsaw: same for /place jigsaw; the jigsaw block's Generate button (JigsawBlockEntity.generate, same generateJigsaw) too.
  • PlaceCommand.placeTemplate already spawned them through place_template_entry, so it is unchanged.

Also carries the one-line fix for main's build in streaming.rs (same as #4898).

Vanilla: PlaceCommand.placeStructure/placeJigsaw, StructureStart.placeInChunk, JigsawPlacement.generateJigsaw, StructureTemplate.placeEntities.

Tests: fmt, clippy -D warnings on horizon-world and horizon-client. No new unit test: the path needs a live level with structure resources (covered by the place_structure parity harness on main). Not run in game.

🤖 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/4901 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/place-entities` --- ### 📝 Commits (3) - [`860dbf5`](https://github.com/horizon-rust/horizon/commit/860dbf51e11349c2875d5208f30195868c100b22) Fix main's build: streaming candidates hold a SectionMask - [`1ee73d8`](https://github.com/horizon-rust/horizon/commit/1ee73d821d491c8a10f01c4eb6310f628a92be0d) Spawn the entities /place structure and /place jigsaw's pieces carry - [`26752de`](https://github.com/horizon-rust/horizon/commit/26752debe1afd922bc997664cbfc69c8ca07e287) Merge remote-tracking branch 'hr/main' into parity/place-entities ### 📊 Changes **3 files changed** (+32 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/place.rs` (+8 -2) 📝 `crates/horizon-client/src/game/jigsaw_blocks.rs` (+5 -2) 📝 `crates/horizon-world/src/level/growth.rs` (+19 -14) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 Follow-up to #4342. Placed pieces add entities as they place (`StructureTemplate.placeEntities` for template pieces: village animals, armor stands, paintings; the mansion, monument, igloo and swamp hut pieces create theirs with `addFreshEntity*`). Horizon's `LevelFeatureWorld` collects them (`add_entity`), but `place_structure` and `place_jigsaw` threw the list away; only `/place template` and structure blocks spawned them. Rows: - `PlaceCommand.placeStructure`: `Behaviours::place_structure` now returns the entities its pieces carried and `/place structure` spawns them into the live level (`spawn_entity_from_nbt`, as `place_template_entry` does). - `PlaceCommand.placeJigsaw`: same for `/place jigsaw`; the jigsaw block's Generate button (`JigsawBlockEntity.generate`, same `generateJigsaw`) too. - `PlaceCommand.placeTemplate` already spawned them through `place_template_entry`, so it is unchanged. Also carries the one-line fix for main's build in `streaming.rs` (same as #4898). Vanilla: `PlaceCommand.placeStructure/placeJigsaw`, `StructureStart.placeInChunk`, `JigsawPlacement.generateJigsaw`, `StructureTemplate.placeEntities`. Tests: fmt, clippy `-D warnings` on horizon-world and horizon-client. No new unit test: the path needs a live level with structure resources (covered by the place_structure parity harness on main). Not run in game. 🤖 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 05:16:00 +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#5932
No description provided.