[PR #2343] [MERGED] Remove an endermite after 2400 ticks #4224

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

📋 Pull Request Information

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

Base: main ← Head: fix/endermite-lifetime


📝 Commits (3)

  • 7087029 Remove an endermite after 2400 ticks
  • 81b4c09 Count the endermite lifetime with NoAI set
  • 4de42d0 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

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

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+6 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+20 -1)

📄 Description

What and why

Endermites (from ender pearls or spawners) lived forever. In vanilla an endermite counts its life up every tick unless it is required to persist (name tag, etc.) and is removed at 2400 ticks (two minutes). The life is saved as Lifetime.

The endermite now counts up its life in its AI step, is removed at 2400, and the count is saved and loaded as Lifetime. The count uses the mob's spare counter field, which nothing else uses for endermites.

Vanilla reference

  • Endermite.MAX_LIFE (2400), Endermite.aiStep (server side: life++ unless isPersistenceRequired(), discard() at 2400)
  • Endermite.addAdditionalSaveData / readAdditionalSaveData: Lifetime

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/2343 **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/endermite-lifetime` --- ### 📝 Commits (3) - [`7087029`](https://github.com/horizon-rust/horizon/commit/708702917c35ecfab2c3cd35de15cfc71ada76be) Remove an endermite after 2400 ticks - [`81b4c09`](https://github.com/horizon-rust/horizon/commit/81b4c09ee6fd2cb5c83c43e7b8f67e92c12366e7) Count the endermite lifetime with NoAI set - [`4de42d0`](https://github.com/horizon-rust/horizon/commit/4de42d0dc4f469de09e7d4c3fc1a2e64f401820d) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **2 files changed** (+26 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+6 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+20 -1) </details> ### 📄 Description ## What and why Endermites (from ender pearls or spawners) lived forever. In vanilla an endermite counts its life up every tick unless it is required to persist (name tag, etc.) and is removed at 2400 ticks (two minutes). The life is saved as `Lifetime`. The endermite now counts up its life in its AI step, is removed at 2400, and the count is saved and loaded as `Lifetime`. The count uses the mob's spare `counter` field, which nothing else uses for endermites. ## Vanilla reference - `Endermite.MAX_LIFE` (2400), `Endermite.aiStep` (server side: `life++` unless `isPersistenceRequired()`, `discard()` at 2400) - `Endermite.addAdditionalSaveData` / `readAdditionalSaveData`: `Lifetime` ## 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: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#4224
No description provided.