MagneticItems [1.8 - 1.16.x] 1.1

Makes items attracted by you (or repulsed), Fully customizable

  1. Zekoyu
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://github.com/Zekoyuu/MagneticItems/
    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)

    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:
    • Fully configurable: you can change the strength and radius of attraction, the speed curve (if they should go at the same speed when they are far / near or not), the smoothness of sharp turns (on ice for example)
    • Easy to use: You can manage all these settings with commands, or by configuration files (parameters details are wrote in the configuration file, so that you know each parameter purpose), there are also two permissions for using the commands, and being able to attract / repulse items
    • The item is not moving if there is block between it and player: If there is a non-passable block between the player and the item, the item will not be attracted (flower, bush, grass, ... are passable blocks)

    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:
    • Other languages support
    • Better icon
    • Graphics for the plugin description

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

Recent Reviews

  1. Rethink
    Rethink
    5/5,
    Version: 1.0
    1. Zekoyu
      Author's Response
      Thanks for the review, and no you can't upload this plugin to the mcbbs forums
  2. Re4er
    Re4er
    5/5,
    Version: 1.0
    Recently I tried to find such a plugin and found only one with little functionality, but this cannot be said about that. Works great on my server. Thanks for the plugin.
    1. Zekoyu
      Author's Response
      I'm glad that you like it, thanks for the review, and if you want any other functionality, ask it in the Discussion section ;)
  3. CMarco
    CMarco
    5/5,
    Version: 1.0
    This Plugin implements an original idea. The developer is also friendly and put this as open-source project. Recommended
    1. Zekoyu
      Author's Response
      Thanks :D