Back to mods
Magnet Command project artwork

Modrinth · Minecraft mod

Magnet Command

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Magnet Command release should I use?

Updated 5 months ago
Latest stable file 0.3.0+mc26.2
Game version 26.2, 26.3
Loader Fabric

Magnet Command 0.3.0+mc26.2 targets 26.2, 26.3 with Fabric. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Magnet Command required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Magnet Command 0.3.0+mc26.2 need?

0.3.0+mc26.2. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

LuckPerms Optional for Magnet Command 0.3.0+mc26.2
optional
Matching file found Matched file: v5.5.85-fabric
Fabric API Needed by Magnet Command 0.3.0+mc26.2
required
Matching file found Matched file: 0.166.2+26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Magnet Command without breaking your instance.

Built for Magnet Command 0.3.0+mc26.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.3.0+mc26.2. It targets 26.2, 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.3.0+mc26.2. It opens that exact file at the source.

About this project

What does Magnet Command add?

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

Project description from Modrinth.

Pick your setup

Magnet Command by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

34 available setups

Showing the newest 12 of 34 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Magnet Command versions and loaders

31 of 31 releases match

Looking for an older file? The official Modrinth project page is in Resources.