[PR #2400] [MERGED] Cats skip open chests and bed heads when picking a seat #4279

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

📋 Pull Request Information

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

Base: main ← Head: fix/cat-sit-block


📝 Commits (2)

  • 752138e Cats sit on a chest only while nobody has it open, and on a bed's foot only
  • 35a02c7 Cats also skip chests a copper golem has open

📊 Changes

4 files changed (+16 additions, -2 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+3 -0)
📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+2 -0)
📝 crates/horizon-client/src/mobs/tame.rs (+10 -2)

📄 Description

What and why

A tamed cat could pick any chest, even one a player has open, and any half of a bed as a place to sit. Vanilla's CatSitOnBlockGoal only accepts a chest nobody has open, a lit furnace, and a bed's foot half (the head half is where players sleep). Horizon's can_sit_on accepted every block in #cats_can_sit_on except an unlit furnace.

The chest check reads the players-with-the-chest-open counts the game already keeps (lid_openers), which the mob world now carries.

Vanilla reference

  • CatSitOnBlockGoal.BLOCK_TYPE_VALIDATION: chest needs ChestBlockEntity.getOpenCount(level, pos) < 1, furnace needs LIT, beds need BedBlock.PART != HEAD.

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/2400 **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/cat-sit-block` --- ### 📝 Commits (2) - [`752138e`](https://github.com/horizon-rust/horizon/commit/752138e866916b5f116b7fbb933f07bee2138144) Cats sit on a chest only while nobody has it open, and on a bed's foot only - [`35a02c7`](https://github.com/horizon-rust/horizon/commit/35a02c79a8d433e86e5b1aa1a8f5afdbbfa268fb) Cats also skip chests a copper golem has open ### 📊 Changes **4 files changed** (+16 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+3 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/tame.rs` (+10 -2) </details> ### 📄 Description ## What and why A tamed cat could pick any chest, even one a player has open, and any half of a bed as a place to sit. Vanilla's `CatSitOnBlockGoal` only accepts a chest nobody has open, a lit furnace, and a bed's foot half (the head half is where players sleep). Horizon's `can_sit_on` accepted every block in `#cats_can_sit_on` except an unlit furnace. The chest check reads the players-with-the-chest-open counts the game already keeps (`lid_openers`), which the mob world now carries. ## Vanilla reference - `CatSitOnBlockGoal.BLOCK_TYPE_VALIDATION`: chest needs `ChestBlockEntity.getOpenCount(level, pos) < 1`, furnace needs `LIT`, beds need `BedBlock.PART != HEAD`. ## 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: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#4279
No description provided.