[PR #2267] [MERGED] Make allays drop what they carry on death and use the default pickup delay when throwing #4162

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

📋 Pull Request Information

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

Base: main ← Head: fix/allay-delivery-and-death-drops


📝 Commits (2)

  • 3615c65 Make allays drop what they carry on death and use the default pickup delay when throwing
  • 71b8f39 Merge main into fix/allay-delivery-and-death-drops

📊 Changes

2 files changed (+24 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/allays.rs (+2 -1)
📝 crates/horizon-client/src/mobs/drops.rs (+22 -0)

📄 Description

What and why

Two allay problems:

  • An item an allay throws to its player or note block could not be picked up for 40 ticks. Vanilla uses the normal 10 tick delay.
  • When an allay died, the items it was carrying and the item in its hand vanished. In vanilla they drop.

The throw now uses a pickup delay of 10. On death the allay drops its carried items and its held item (unless the held item prevents equipment drops). This runs even when mob drops are off, as in vanilla.

Vanilla reference

  • BehaviorUtils.throwItem calls ItemEntity.setDefaultPickUpDelay (10 ticks).
  • Allay.dropEquipment: drops the inventory, then the main-hand item unless it has PREVENT_EQUIPMENT_DROP.
  • LivingEntity.dropAllDeathLoot: dropEquipment runs outside the shouldDropLoot check.

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/2267 **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/allay-delivery-and-death-drops` --- ### 📝 Commits (2) - [`3615c65`](https://github.com/horizon-rust/horizon/commit/3615c65d18e24888cea2e6b3a7dda86c7ba5c7a6) Make allays drop what they carry on death and use the default pickup delay when throwing - [`71b8f39`](https://github.com/horizon-rust/horizon/commit/71b8f39eb5895e78cdbce898803f4c23b6c2a903) Merge main into fix/allay-delivery-and-death-drops ### 📊 Changes **2 files changed** (+24 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/allays.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/drops.rs` (+22 -0) </details> ### 📄 Description ## What and why Two allay problems: - An item an allay throws to its player or note block could not be picked up for 40 ticks. Vanilla uses the normal 10 tick delay. - When an allay died, the items it was carrying and the item in its hand vanished. In vanilla they drop. The throw now uses a pickup delay of 10. On death the allay drops its carried items and its held item (unless the held item prevents equipment drops). This runs even when mob drops are off, as in vanilla. ## Vanilla reference - `BehaviorUtils.throwItem` calls `ItemEntity.setDefaultPickUpDelay` (10 ticks). - `Allay.dropEquipment`: drops the inventory, then the main-hand item unless it has `PREVENT_EQUIPMENT_DROP`. - `LivingEntity.dropAllDeathLoot`: `dropEquipment` runs outside the `shouldDropLoot` check. ## 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:08 +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#4162
No description provided.