HomeJavaModsMagneticItems [1.8 - 1.16.x]
MagneticItems [1.8 - 1.16.x]
Description:
MagneticItems is a plugin that can makes item act like experience orbs: they are attracted by you, the further you are, the slower they are, and the closer you are, the faster they go (or not, this is fully configurable), it's my first plugin, so if you have any issues / request please send me a message / report issue on github and I will try to act as quickly as I can.
This plugin is currently working from 1.13 to 1.16.x minecraft versions

Examples:
These are demonstration videos, please remind that everything is customizable, these are taken with default settings (except for repulse where the reverse setting has been set to true)

Spoiler: Examples videos
Probably the most frequent case :


Items aren't attracted if there is a block between it and player:


Works on ice (configurable):


Works in water too (configurable):


Inverted (repulsing items):

Features:

Commands:
Here are the current commands, if you want me to add some, ask it out:
/magneticitems reload:

Reload the configuration file and load everything back

/magneticitems set <parameter> <value>

Changes a parameter in the configuration file (and apply it)
This is helped by tab completion so that you can manage settings easily

Configuration:
Code (YAML):
magnetism :
  # Please note that float values are allowed everywhere, for example if you want a radius of 7.5 or a strength of 1.125, it is totally possible
 
  # Changes the attractive force of player on items, this DOES NOT change the radius, check the radius parameter for this (default 1)
  strength
: 1
 
  # Toggle the inversion of the magnetism (the items will be repulsed by the player)
  reverse
: false
 
  # The radius of a sphere around the player, if an item is in this sphere, it will be attracted by the player (default 7)
  radius
: 7
 
  # This parameter changes the acceleration curve of the item depending on the distance to player, but be aware that this DOES NOT change the final speed of the item, check strength for this.
  # The closest this parameter is to 0, the flatter the acceleration curve is, this means that the item will always go at same speed if set to 0, and if set to a high value (for instance 100)
  # the item will go slowly when far, and then at the end accelerate very fast (default 25)
  acceleration
: 25
 
  # Minimum speed of item, so that it isn't stopped when at max range, it's a relative value, it does not refers to block distance or anything (default 2)
  minimum_speed
: 2


# If the item is going in the opposite direction from the player (for example if it's thrown on ice), these setings allow you to change the "force" at which they go back, default values
# are set to be smooth, but you can make them do sharp turn back by increasing the values. (the more you decrease the value, the more the item keeps it velocity)

# There are different values for each "special" block, so you can change values when the item is in water for instance

smoothness
:
  # Water (default: 0.35)
  water
: 0.35
 
  # Icy blocks, includes ice, packed ice and blue ice (default: 2)
  ice
: 2
 
  # Any other block (default: 0.2)
  other
: 0.2
 
aesthetic
:
  # Choose between the short [MI] and the long [MagneticItems] when using /magneticitems (default: long)
  prefix_type
: long

Permissions:
At the moment, there are only 2 permissions, if you want more, simply ask

magneticitems.manage: Allow the command (and subcommands) /magneticitems <set | reload> to manage the plugin without using the configuration file, and reload the configuration.

magneticitems.use: Permission to attract / repulse the items, if the user don't have this permission, items will keep their vanilla behavior
Upcoming:

Current icon from https://www.flaticon.com/free-icon/magnet_428162

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MagneticItems [1.8 - 1.16.x] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 5,619 times (via Spigot). Download it and open it directly in the game.

Explore more