-
Notifications
You must be signed in to change notification settings - Fork 0
26.2 Compatibility and Integrations
This document details third-party mod integrations, dynamic reflection safeguards, Stack Size Adjuster alignment, and farm compatibility in Item Clumps for Minecraft 26.2.
| Integration | Type | Compatibility Status | Handling Mechanism |
|---|---|---|---|
| Magnet ("Let me get that!") | Optional | 🟢 100% Seamless | Dynamic reflection check (ig_magnet$isMagnetized / ig$isMagnetized) |
| Stack Size Adjuster | Optional | 🟢 Dynamic Limit Sync | Yields max_clump_size registration to getMaxStackSize()
|
| YetAnotherConfigLib (YACL v3) | Optional GUI | 🟢 Supported | Deferred classloading via GuiHelper.getOptionalYaclFactory
|
| ModMenu | Optional GUI | 🟢 Supported | ModMenu entrypoint integration |
| Vanilla Automation / Redstone | Core | 🟢 100% Parity | 1-item hopper drip extraction & youngest age inheritance |
When using item vacuum or magnet mods (such as Magnet: Let me get that!), items on the ground are lifted into 3D flight trajectories heading toward the player.
┌───────────────────────────────────────────────────────────┐
│ Item In-Flight Magnet Trajectory │
│ │
│ [Item A (In-Flight)] --------> [Player] │
│ │ │
│ (Passes close to Item B on ground) │
│ │ │
│ ❌ WITHOUT MAGNET CHECK: │
│ Item A merges with B; flight velocity resets; │
│ Item snaps to ground. │
│ │
│ ✅ WITH ITEM CLUMPS MAGNET CHECK: │
│ Merge paused while in-flight; │
│ Smooth curve preserved straight to player! │
└───────────────────────────────────────────────────────────┘
Item Clumps queries the magnet state via reflection without hardcoded compile-time dependencies:
if (net.fabricmc.loader.api.FabricLoader.getInstance().isModLoaded("magnet")) {
try {
java.lang.reflect.Method isMagnetizedMethod;
try {
isMagnetizedMethod = this.getClass().getMethod("ig_magnet$isMagnetized");
} catch (NoSuchMethodException e) {
isMagnetizedMethod = this.getClass().getMethod("ig$isMagnetized");
}
if ((boolean) isMagnetizedMethod.invoke(this) || (boolean) isMagnetizedMethod.invoke(other)) {
ci.cancel();
return;
}
} catch (Throwable ignored) {}
}When Stack Size Adjuster is installed alongside Item Clumps:
-
GameRule De-duplication: Item Clumps automatically suppresses the registration of
item_clumps:max_clump_sizeand its YACL config widget. -
Unified Limit Sync: Ground merging limits automatically query
itemStack.getMaxStackSize(), allowing Stack Size Adjuster to dictate ground stack caps globally or per-item.
int maxClump;
if (net.fabricmc.loader.api.FabricLoader.getInstance().isModLoaded("stack-size-adjuster") ||
ItemClumpsFabric.MAX_CLUMP_SIZE == null) {
maxClump = thisStack.getMaxStackSize();
} else {
maxClump = DynamicGameRuleManager.getInt(this.level(), ItemClumpsFabric.MAX_CLUMP_SIZE);
}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