[PR #2397] [MERGED] A cookie poisons and kills a parrot #4276

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/2397
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/parrot-cookie


📝 Commits (4)

  • 50fdcad A cookie poisons and kills a parrot
  • 2a297a4 Credit the feeder with a parrot's cookie kill
  • 8fad68a Merge main into fix/parrot-cookie
  • b28797c Merge main into fix/parrot-cookie

📊 Changes

1 file changed (+24 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+24 -0)

📄 Description

What and why

Giving a parrot a cookie did nothing. In vanilla a cookie (#parrot_poisonous_food) is used up, gives the parrot Poison for 45 seconds and hurts it with a player attack of Float.MAX_VALUE, so it dies and counts as a player kill. Horizon only handled parrot food (seeds) for taming. The cookie case is now handled; an invulnerable parrot still survives.

Vanilla reference

  • Parrot.mobInteract, the PARROT_POISONOUS_FOOD branch: usePlayerItem, addEffect(POISON, 900), hurt(playerAttack(player), Float.MAX_VALUE).
  • data/minecraft/tags/item/parrot_poisonous_food.json.

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/2397 **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/parrot-cookie` --- ### 📝 Commits (4) - [`50fdcad`](https://github.com/horizon-rust/horizon/commit/50fdcad10fed4dc812228d0cd24390d3ed326002) A cookie poisons and kills a parrot - [`2a297a4`](https://github.com/horizon-rust/horizon/commit/2a297a43eb65807666978fd75128bb779e61b8f5) Credit the feeder with a parrot's cookie kill - [`8fad68a`](https://github.com/horizon-rust/horizon/commit/8fad68ab3e6cbb66f8a600d28408cfebe378fb67) Merge main into fix/parrot-cookie - [`b28797c`](https://github.com/horizon-rust/horizon/commit/b28797c5348e546131ef53f74e400c85f3c6c1f8) Merge main into fix/parrot-cookie ### 📊 Changes **1 file changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+24 -0) </details> ### 📄 Description ## What and why Giving a parrot a cookie did nothing. In vanilla a cookie (`#parrot_poisonous_food`) is used up, gives the parrot Poison for 45 seconds and hurts it with a player attack of `Float.MAX_VALUE`, so it dies and counts as a player kill. Horizon only handled parrot food (seeds) for taming. The cookie case is now handled; an invulnerable parrot still survives. ## Vanilla reference - `Parrot.mobInteract`, the `PARROT_POISONOUS_FOOD` branch: `usePlayerItem`, `addEffect(POISON, 900)`, `hurt(playerAttack(player), Float.MAX_VALUE)`. - `data/minecraft/tags/item/parrot_poisonous_food.json`. ## 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#4276
No description provided.