HomeJavaDatapacksMagnetism
Magnetism
DatapacksJava

Magnetism

by Diesse · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.8–1.21.11 · Data pack⬇ Download for 1.21.5–1.21.7 · Data pack⬇ Download for 1.21.8–1.21.11 · Fabric⬇ Download for 1.21.5–1.21.7 · Fabric⬇ Download for 1.21.8–1.21.11 · Forge⬇ Download for 1.21.5–1.21.7 · Forge⬇ Download for 1.21.8–1.21.11 · NeoForge⬇ Download for 1.21.5–1.21.7 · NeoForge⬇ Download for 1.21.8–1.21.11 · Quilt⬇ Download for 1.21.5–1.21.7 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Magnetism — screenshot 1

­

Have you ever mined a ton of ores, chopped trees for hours, or defeated mobs, only to watch half your loot scatter across the ground, rolling away into lava or getting lost in tall grass? Yeah, we’ve all been there.

Magnetism is here to fix that — elegantly. This datapack adds a magnet that automatically attracts nearby dropped items toward you, saving you time, keeping your inventory tidy, and preventing the frustration of losing resources.

Built 100% in vanilla Minecraft commands, Magnetism feels like a natural extension of the game itself: smooth, balanced, and intuitive to use. No mods, no lag, no weird mechanics — just simple magnet power, done right.
­

Smart Item Attraction

Once activated, the magnet continuously detects dropped items within a configurable radius around the player. Each item gently moves toward you, one step at a time — no harsh teleportation, just a satisfying pull effect that feels completely natural.

By default, the attraction radius is 10 blocks, but you can change it to any distance that fits your playstyle.

Fully Vanilla & Server-Friendly

Magnetism runs entirely through Minecraft’s datapack system, using functions, tags, and scoreboard logic. It’s optimized to run efficiently on both singleplayer and multiplayer worlds, even on large servers.

Each player can activate their own magnet independently without affecting others — making it perfect for co-op worlds or survival SMPs.

Visual & Audio Feedback

To make the magnet more immersive, Magnetism includes subtle particle effects and sounds that activate when items start being attracted. You’ll see a small sparkle trail as items slide toward you, giving that “magical gravity” feeling — satisfying but never overwhelming.

Crafting Recipe

Magnetism supports an optional crafting recipe for players who want a true survival progression.

By default, the recipe uses materials that make logical sense:

Replace this with a description

When crafted, you’ll receive a Magnet — a small, shimmering item that you can hold to toggle the magnet to activate its passive effect.

Gameplay Impact

Once you’ve used Magnetism, it’s hard to go back. Here are some real examples of how it changes your daily Minecraft routine:

Performance & Optimization

Magnetism has been carefully profiled to ensure it’s lightweight even in worlds with many entities. The attraction check uses efficient selectors and avoids unnecessary loops. It also scales based on how many players are currently using the magnet — if nobody has it active, the system essentially goes idle.

This means you can safely use it on large servers without lag or performance degradation.

Commands & Setup

After installing the datapack:

Run /reload

Other links

­ ­ ­

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more