
Magnet Command
Server-side mod that adds a /magnet command so you don't need to take up valuable inventory space for a magnet.
About this Mod
Magnet Command
This mod adds a magnet command to the game which allows you to pull items towards you.
Modes
- Off (default) - The magnet is not active
- Range - The magnet pull items within a range towards you (currently 3 blocks)
- OnBreak - Blocks you break will be directly put in your inventory, if it doesn't fit, the item just drops like normal
The commands
| Command | Description | Permission Node | OP level |
|---|---|---|---|
/magnet Range |
Set magnet mode to Range | magnet.mode.range |
2* |
/magnet OnBreak |
Set magnet mode to OnBreak | magnet.mode.break |
2* |
/magnet Off |
Disable magnet behavior | none | 0 |
/magnet info |
Shows some info about the mod | none | 0 |
* can be changed in config
Config
The config is located at /config/magnet-command.json.
| Option | Description | Default value |
|---|---|---|
permissionLevel |
The default permission/OP level for all modes | 2 |
modes.*.enabled |
Enable/disable modes | true |
modes.Range.range |
The range in blocks for Range mode | 3 |
modes.Range.mode |
Movement mode for the magnet. Options: Pull, Teleport | "Pull" |
modes.Range.pullStrengthMultiplier |
Increase or decrease the pull speed for items | 1.0 |
modes.Range.skipCanPickUpCheck |
Skipping this check makes it so that items are pulled towards you immediately | false |
modes.OnBreak.dropLocation |
Where to drop items if they don't fit in inventory. Options: Block, Player | "Block" |
modes.OnBreak.includeContainerItems |
Enable/disable injecting items from containers like chests and furnaces | true |
Available Versions
How to Install Magnet Command on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Magnet Command". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+29 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Magnet Command server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Magnet Command compatible with fabric?
Magnet Command officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Magnet Command – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Magnet Command consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Magnet Command with just one click on your server.