Magnet Command

Magnet Command

Server-side mod that adds a /magnet command so you don't need to take up valuable inventory space for a magnet.

by
8.3K Downloads
fabricequipmentgame-mechanicsutility
Rent Server with this Mod

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

Magnet Command 0.3.0+mc26.1.1release
MC 26.1, 26.1.1, 26.1.2fabric
April 5, 2026
Magnet Command 0.3.0+mc1.21.11release
MC 1.21.11fabric
December 10, 2025
Magnet Command 0.3.0+mc1.21.9release
MC 1.21.9, 1.21.10fabric
December 10, 2025
Magnet Command 0.2.5+mc1.21.5release
MC 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
March 31, 2025
Magnet Command 0.2.5+mc1.21release
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4fabric
September 13, 2024

How to Install Magnet Command on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

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

fabric

Minecraft Versions

26.1.2, 26.1.1, 26.1 (+29 more)

Server-side

Required

Recommended 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.

Rent Modded Server

Install Magnet Command with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

26.1.226.1.126.11.21.111.21.101.21.91.21.81.21.71.21.61.21.5+22 more