[PR #2360] [MERGED] Teleport a dragon egg when it is left-clicked #4242

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2360
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/dragon-egg-attack


📝 Commits (2)

  • dfd0601 Teleport a dragon egg when it is left-clicked
  • 35689a5 Merge main into fix/dragon-egg-attack

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 crates/horizon-world/src/level/interact.rs (+6 -2)

📄 Description

What and why

Left-clicking a dragon egg did nothing; only a right-click moved it. In vanilla, starting to mine the egg also teleports it (that is why you cannot just mine it away in survival).

attack_block now teleports the egg like the right-click does. It runs when mining starts, so a guest on the server thread gets the same behaviour, and creative mode still breaks the egg at once without the teleport.

Note: the open PR "Note blocks play on a left click and let mob heads be placed on top" also edits attack_block (it makes it return a bool). The two changes are independent and only need a trivial merge in that function.

Vanilla reference

  • DragonEggBlock.attack calls teleport.
  • ServerPlayerGameMode.handleBlockBreakAction: blockState.attack(...) on START_DESTROY_BLOCK in survival.

Self-check

cargo check -p horizon-client passes.


🔄 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/2360 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/dragon-egg-attack` --- ### 📝 Commits (2) - [`dfd0601`](https://github.com/horizon-rust/horizon/commit/dfd06011633f9b0d7f730297cb4e1fb64a4d63f0) Teleport a dragon egg when it is left-clicked - [`35689a5`](https://github.com/horizon-rust/horizon/commit/35689a58ba4a1c8e631c23c2a891ab85bdda99c1) Merge main into fix/dragon-egg-attack ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/level/interact.rs` (+6 -2) </details> ### 📄 Description ## What and why Left-clicking a dragon egg did nothing; only a right-click moved it. In vanilla, starting to mine the egg also teleports it (that is why you cannot just mine it away in survival). `attack_block` now teleports the egg like the right-click does. It runs when mining starts, so a guest on the server thread gets the same behaviour, and creative mode still breaks the egg at once without the teleport. Note: the open PR "Note blocks play on a left click and let mob heads be placed on top" also edits `attack_block` (it makes it return a bool). The two changes are independent and only need a trivial merge in that function. ## Vanilla reference - `DragonEggBlock.attack` calls `teleport`. - `ServerPlayerGameMode.handleBlockBreakAction`: `blockState.attack(...)` on START_DESTROY_BLOCK in survival. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:43 +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#4242
No description provided.