-
Notifications
You must be signed in to change notification settings - Fork 0
26.2 Despawn Timer and Age Inheritance
This document details the despawn lifecycle, tick-to-second conversion math, youngest age inheritance rules, and farm production safeguards in Item Clumps for Minecraft 26.2.
| Property | Specification |
|---|---|
| System Name | Youngest Age Despawn Preserver |
| Vanilla Despawn Threshold |
|
| Age Inheritance Rule |
|
| Pickup Delay Rule |
|
| Target Field |
ItemEntity.age and ItemEntity.pickupDelay
|
| Idle Despawn Behavior | Standard 5-minute timer counts down when no new items merge |
In Minecraft, entity timers run at 20 ticks per second:
In vanilla Minecraft, an ItemEntity increments its internal age field by
When two items merge in Item Clumps, the surviving entity executes:
Existing Ground Clump Newly Dropped Item
- Count: 500 Cobblestone - Count: 1 Cobblestone
- Age: 5,800 ticks (4m 50s old) - Age: 0 ticks (Brand new)
β β
ββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
β (Item Clumps Merging)
βΌ
Merged Mega-Stack Entity
- Count: 501 Cobblestone
- Age: min(5800, 0) = 0 ticks (Fresh 5-minute timer)
- The Problem with Vanilla Lifespans: In vanilla, if you have a slow collector, newly dropped items merging into older items could be deleted 10 seconds later if the host entity was already 4 minutes and 50 seconds old.
-
The Item Clumps Solution: Continuous item flow in active mob grinders, automated tree farms, or quarry drill lines repeatedly refreshes the clump age to
0. As long as the farm is actively generating items, no items will ever despawn. -
Idle Cleanup: Once the farm stops producing items, the clump sits idle on the ground. The age timer ticks up uninhibited from
$0$ to$6000$ , safely cleaning up all uncollected items after 5 minutes of inactivity to prevent long-term world file bloat.
To prevent players from instantly re-absorbing items they just dropped from their hand, Minecraft assigns a pickupDelay (typically 40 ticks = 2 seconds).
When items merge:
This ensures that if a player deliberately throws an item on top of an existing clump, the clump will not instantly vacuum back into their inventory until the full pickup delay expires.
From ItemEntityMixin.java in Minecraft 26.2:
// During Complete or Partial Merging:
this.pickupDelay = Math.max(this.pickupDelay, ((ItemEntityMixin)(Object)other).pickupDelay);
this.age = Math.min(this.age, ((ItemEntityMixin)(Object)other).age);Item Clumps is engineered with β€οΈ by Dasik (Rifaditya) | Licensed under GNU General Public License v3.0 (GPL-3.0-or-later).
π Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.
- 26.2 Hub
- 26.2 Mega-Stack Clumping
- 26.2 Smart Pickup System
- 26.2 Hopper Integration
- 26.2 Despawn Age Rules
- 26.2 Holographic Labels
- 26.2 Mod Compatibility
- 26.2 GameRules Table
- 26.2 Commands & Admin
- 26.2 Advancements
- 26.2 Configuration
- 26.2 ModVersionGuard
- 26.2 Architecture & Mixins
- 26.2 Developer Setup
- 26.2 API & Addons
- 26.2 FAQ & Diagnostics
- 26.1.2 Hub
- 26.1.2 Mega-Stack Clumping
- 26.1.2 Smart Pickup System
- 26.1.2 Hopper Integration
- 26.1.2 Despawn Age Rules
- 26.1.2 Holographic Labels
- 26.1.2 GameRules Table
- 26.1.2 Commands & Admin
- 26.1.2 Advancements
- 26.1.2 Configuration
- 26.1.2 Architecture & Mixins
- 26.1.2 Developer Setup
- 26.1.2 API & Addons
- 26.1.2 FAQ & Diagnostics