[PR #2226] [MERGED] Make armadillos shed scutes on their own #4119

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

📋 Pull Request Information

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

Base: main ← Head: fix/armadillo-scutes


📝 Commits (3)

  • 329ce1b Make armadillos shed scutes on their own
  • 47654b6 Save the armadillo scute timer and reset it only when a scute can drop
  • 8905aaf Merge main into fix/armadillo-scutes

📊 Changes

5 files changed (+62 additions, -0 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+1 -0)
📝 crates/horizon-client/src/entity_nbt.rs (+10 -0)
📝 crates/horizon-client/src/game/creatures.rs (+17 -0)
📝 crates/horizon-client/src/mobs.rs (+8 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+26 -0)

📄 Description

What and why

Armadillos never dropped scutes by themselves. Nothing ran their shed timer, so only brushing could ever give a scute.

Now an armadillo counts down a random 5 to 10 minutes (picked when it is created). When the timer hits zero and it is alive, it drops an armadillo_scute from the gameplay/armadillo_shed loot table, plays the scute drop sound, and posts the entity_place game event. Babies and worlds with mob_drops off only reset the timer. The drop happens in the game's mob event handler, so it works on the in-process server path too.

Vanilla reference

  • Armadillo.customServerAiStep (timer, shouldDropLoot, ARMADILLO_SHED, ARMADILLO_SCUTE_DROP, ENTITY_PLACE)
  • Armadillo.pickNextScuteDropTime
  • LivingEntity.shouldDropLoot (not a baby, mob_drops rule)

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/2226 **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/armadillo-scutes` --- ### 📝 Commits (3) - [`329ce1b`](https://github.com/horizon-rust/horizon/commit/329ce1b724aa72ee67dc1cfeeaeb884acb541399) Make armadillos shed scutes on their own - [`47654b6`](https://github.com/horizon-rust/horizon/commit/47654b62a3b3f64ff163590ec1c29d16c341d50d) Save the armadillo scute timer and reset it only when a scute can drop - [`8905aaf`](https://github.com/horizon-rust/horizon/commit/8905aaf0dd55f2568905592221a697f3478b99e1) Merge main into fix/armadillo-scutes ### 📊 Changes **5 files changed** (+62 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+1 -0) 📝 `crates/horizon-client/src/entity_nbt.rs` (+10 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+17 -0) 📝 `crates/horizon-client/src/mobs.rs` (+8 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+26 -0) </details> ### 📄 Description ## What and why Armadillos never dropped scutes by themselves. Nothing ran their shed timer, so only brushing could ever give a scute. Now an armadillo counts down a random 5 to 10 minutes (picked when it is created). When the timer hits zero and it is alive, it drops an `armadillo_scute` from the `gameplay/armadillo_shed` loot table, plays the scute drop sound, and posts the `entity_place` game event. Babies and worlds with `mob_drops` off only reset the timer. The drop happens in the game's mob event handler, so it works on the in-process server path too. ## Vanilla reference - `Armadillo.customServerAiStep` (timer, `shouldDropLoot`, `ARMADILLO_SHED`, `ARMADILLO_SCUTE_DROP`, `ENTITY_PLACE`) - `Armadillo.pickNextScuteDropTime` - `LivingEntity.shouldDropLoot` (not a baby, `mob_drops` rule) ## 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:14:49 +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#4119
No description provided.