Inventory Spam Mod — Reference
Core Mechanics
The mod functions by monitoring the player's inventory slots every tick. When a discrepancy is detected between the current state and the previous state, the mod generates a notification entry.
Item Tracking
- Additions: When an item is picked up from the ground, crafted, or moved from a container into the player's inventory, a notification appears with a green prefix (e.g.,
+64 Stone). - Removals: When an item is dropped, consumed, used in crafting, or destroyed, a notification appears with a red prefix (e.g.,
-1 Bread). - Stacking Logic: If multiple items of the same type are added or removed within a short window, the mod intelligently groups them into a single line rather than spamming multiple entries. For example, picking up a stack of 64 dirt will show one entry for
+64 Dirtrather than 64 individual lines.
HUD Behavior
Notifications appear at a designated anchor point on the screen. Each entry remains visible for a set duration (configurable) before fading out. If the list of changes exceeds the maximum allowed lines, the oldest entries are pushed off the screen to make room for new ones.