[PR #2991] [MERGED] Match vanilla for eight block behaviours: ender chest, doors, hanging signs, beehives, carved pumpkins, vines, tripwire and turtle eggs #4741

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

📋 Pull Request Information

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

Base: main ← Head: fix/block-behaviour-parity


📝 Commits (9)

  • e08adcd Anger nearby piglins when an ender chest is opened
  • 2c2aa41 Clear a door's lower half when the tool would not drop it
  • 60a4eda Chain a hanging sign under a ceiling hanging sign
  • 2b74cfa Drop a beehive with its bees when it is broken in creative
  • 3fe8aa7 Build a golem whenever a carved pumpkin is placed
  • 785d579 Stop vines spreading when the spread_vines rule is off
  • 1ab2736 Disarm a tripwire with shears before breaking it
  • 0d3ca74 Break turtle eggs by stepping on them
  • ffb6594 Format the block behaviour changes

📊 Changes

8 files changed (+155 additions, -45 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+50 -1)
📝 crates/horizon-client/src/game/chat.rs (+1 -0)
📝 crates/horizon-client/src/motion.rs (+13 -0)
📝 crates/horizon-world/src/block_landing.rs (+62 -35)
📝 crates/horizon-world/src/level/hooks.rs (+17 -4)
📝 crates/horizon-world/src/level/mod.rs (+9 -3)
📝 crates/horizon-world/src/level/tests.rs (+1 -1)
📝 crates/horizon-world/src/level/tick.rs (+2 -1)

📄 Description

What and why

  • Opening an ender chest angers nearby piglins that can see you, as other containers already do.
  • Breaking an iron door by hand (no pickaxe) now also removes the lower half without a drop, like creative breaks.
  • A hanging sign aimed at the underside of a ceiling hanging sign places the next sign instead of opening the editor, so signs chain.
  • Breaking a beehive or bee nest in creative drops the hive with its bees and honey level.
  • A carved pumpkin placed by any means (/setblock, /fill, /clone, a piston move) builds the golem its blocks complete, not only a player, dispenser or shears.
  • Vines no longer spread when the spread_vines game rule is off.
  • Breaking a tripwire with shears disarms it first, so it no longer trips its hook.
  • Walking on a turtle egg without sneaking can break it (1 in 100 per step).

Vanilla reference

  • EnderChestBlock.java:85 (angerNearbyPiglins)
  • DoorBlock.java:110-116 (playerWillDestroy)
  • CeilingHangingSignBlock.java:58-70 (useItemOn returns PASS)
  • BeehiveBlock.java:266-283 (playerWillDestroy)
  • CarvedPumpkinBlock.java:46 (onPlace)
  • VineBlock.java:166 (randomTick, SPREAD_VINES)
  • TripWireBlock.java:104-110 (playerWillDestroy, flags 260, SHEAR event)
  • TurtleEggBlock.java:50-56, 66-86 (stepOn, destroyEgg)

Self-check

clippy and fmt pass for horizon-world and horizon-client. Not run in game.


🔄 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/2991 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/block-behaviour-parity` --- ### 📝 Commits (9) - [`e08adcd`](https://github.com/horizon-rust/horizon/commit/e08adcd31c59d484ae3b622f0ce12b51dca0f0d8) Anger nearby piglins when an ender chest is opened - [`2c2aa41`](https://github.com/horizon-rust/horizon/commit/2c2aa416191a5c8a8178e981a526e45139dff3a2) Clear a door's lower half when the tool would not drop it - [`60a4eda`](https://github.com/horizon-rust/horizon/commit/60a4edaef9c90b692e9f53b833ffed6a226aea79) Chain a hanging sign under a ceiling hanging sign - [`2b74cfa`](https://github.com/horizon-rust/horizon/commit/2b74cfae4a4e7f700b5bf162f6a8ac3ff7bd2e12) Drop a beehive with its bees when it is broken in creative - [`3fe8aa7`](https://github.com/horizon-rust/horizon/commit/3fe8aa76b2d0f9c16ffa82a670a53dd6250885f3) Build a golem whenever a carved pumpkin is placed - [`785d579`](https://github.com/horizon-rust/horizon/commit/785d579f47cbd8d260a16c26aa6787e8089bc901) Stop vines spreading when the spread_vines rule is off - [`1ab2736`](https://github.com/horizon-rust/horizon/commit/1ab273641e3291c7e203ea9c152ae80985adf783) Disarm a tripwire with shears before breaking it - [`0d3ca74`](https://github.com/horizon-rust/horizon/commit/0d3ca74bd00844548a198c49bb5e3d02ecb74aa1) Break turtle eggs by stepping on them - [`ffb6594`](https://github.com/horizon-rust/horizon/commit/ffb6594600275986d6a2a0ffc3cfe651bd205f6e) Format the block behaviour changes ### 📊 Changes **8 files changed** (+155 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+50 -1) 📝 `crates/horizon-client/src/game/chat.rs` (+1 -0) 📝 `crates/horizon-client/src/motion.rs` (+13 -0) 📝 `crates/horizon-world/src/block_landing.rs` (+62 -35) 📝 `crates/horizon-world/src/level/hooks.rs` (+17 -4) 📝 `crates/horizon-world/src/level/mod.rs` (+9 -3) 📝 `crates/horizon-world/src/level/tests.rs` (+1 -1) 📝 `crates/horizon-world/src/level/tick.rs` (+2 -1) </details> ### 📄 Description ## What and why - Opening an ender chest angers nearby piglins that can see you, as other containers already do. - Breaking an iron door by hand (no pickaxe) now also removes the lower half without a drop, like creative breaks. - A hanging sign aimed at the underside of a ceiling hanging sign places the next sign instead of opening the editor, so signs chain. - Breaking a beehive or bee nest in creative drops the hive with its bees and honey level. - A carved pumpkin placed by any means (/setblock, /fill, /clone, a piston move) builds the golem its blocks complete, not only a player, dispenser or shears. - Vines no longer spread when the spread_vines game rule is off. - Breaking a tripwire with shears disarms it first, so it no longer trips its hook. - Walking on a turtle egg without sneaking can break it (1 in 100 per step). ## Vanilla reference - EnderChestBlock.java:85 (angerNearbyPiglins) - DoorBlock.java:110-116 (playerWillDestroy) - CeilingHangingSignBlock.java:58-70 (useItemOn returns PASS) - BeehiveBlock.java:266-283 (playerWillDestroy) - CarvedPumpkinBlock.java:46 (onPlace) - VineBlock.java:166 (randomTick, SPREAD_VINES) - TripWireBlock.java:104-110 (playerWillDestroy, flags 260, SHEAR event) - TurtleEggBlock.java:50-56, 66-86 (stepOn, destroyEgg) ## Self-check clippy and fmt pass for horizon-world and horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:36 +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#4741
No description provided.