promotional bannermobile promotional banner

Item Magnetism

A simple mod which increases the distance from which drops are attracted to the player. Much like the feature originally in the TooManyItems mod.

Item Magnetism

  Increase the distance from which items and XP orbs are attracted to you!

  Inspired by the classic magnetism feature from TooManyItems, this mod extends the range at which dropped items and experience orbs are pulled toward the player. No more chasing after items that landed just out of reach!

  ---
  Features

  - Extended Pickup Range - Items are attracted from up to 8 blocks away (configurable up to 64 blocks)
  - XP Orb Magnetism - Experience orbs are also attracted (can be disabled separately)
  - Line-of-Sight Check - Items won't fly through walls unless you enable it
  - Fully Configurable - Adjust range, speed, and behavior to your preference
  - Lightweight - Minimal performance impact with efficient distance calculations

  ---
  Configuration

  All settings can be adjusted in config/itemmagnetism.json:

  | Setting              | Default | Description                                 |
|----------------------|---------|---------------------------------------------|
| enabled              | true  | Master toggle for the mod              |
| range                | 8.0   | Attraction range in blocks (1-64)      |
| speed                | 0.3   | How fast items move toward you (0.05-1.0). |
| attractThroughWalls | false   | Allow items to be attracted through blocks |
| attractXpOrbs       | true    | Also attract experience orbs               |
| pickupDelayTicks    | -1      | Override pickup delay (-1 = use vanilla)    |

  ---
  How It Works

  Every server tick, the mod checks for items and XP orbs within your configured range. If they're within range (and line-of-sight, if enabled), they receive a velocity boost toward your position. The attraction uses spherical range checking for natural-feeling behavior.

  ---
  Requirements

  - Minecraft 1.21.6
  - Fabric Loader
  - Fabric API

  ---
  A simple quality-of-life mod for players who just want their items to come to them.

  ---
   I am new to mod creation for Minecraft. But, my mod creation experience actually goes back to Skyrim mods. This is a mod I created for my own convience and decided to share. I will continue with updates and additional version releases if there is any interest.

The Item Magnetism Team

profile avatar
  • 1
    Projects
  • 30
    Downloads
Donate