Skip to content

Magnet Command

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

Fabric
Loaders
Fabric
Downloads on Modrinth
9.8K
Followers on Modrinth
37
versions
31
Updated
June 16, 2026Jun 16
Published
in 2023

At a glance

Runs on Fabric
For Minecraft 1.18.2, 1.19.2–26.3
Server only — players don't need to install it
Latest version — 0.3.0+mc26.2 from June 16, 2026
Requires Fabric API
License MIT — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.18.2, 1.19.2–26.3

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

CommandDescriptionPermission NodeOP level
/magnet RangeSet magnet mode to Rangemagnet.mode.range2*
/magnet OnBreakSet magnet mode to OnBreakmagnet.mode.break2*
/magnet OffDisable magnet behaviornone0
/magnet infoShows some info about the modnone0

* can be changed in config

Config

The config is located at /config/magnet-command.json.

OptionDescriptionDefault value
permissionLevelThe default permission/OP level for all modes2
modes.*.enabledEnable/disable modestrue
modes.Range.rangeThe range in blocks for Range mode3
modes.Range.modeMovement mode for the magnet. Options: Pull, Teleport"Pull"
modes.Range.pullStrengthMultiplierIncrease or decrease the pull speed for items1.0
modes.Range.skipCanPickUpCheckSkipping this check makes it so that items are pulled towards you immediatelyfalse
modes.OnBreak.dropLocationWhere to drop items if they don't fit in inventory. Options: Block, Player"Block"
modes.OnBreak.includeContainerItemsEnable/disable injecting items from containers like chests and furnacestrue

FAQ

How to install Magnet Command?

Install Fabric for your Minecraft version, download Magnet Command for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Magnet Command support?

Magnet Command has builds for Minecraft 1.18.2, 1.19.2–26.3.

Is Magnet Command needed on the server?

Server only — players don't need to install it

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More