Перейти к содержимому
Mineforgian

Magnet Command

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

Загрузки
9K
Подписчики
33
Обновлён
16 июня 2026 г.
Лицензия
MIT

Опубликован 4 мая 2023 г.

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

Ченджлог

0.3.0+mc26.2Релиз26.2 · 16 июня 2026 г.

updated to 26.2

0.3.0+mc26.1.1Релиз26.1, 26.1.1, 26.1.2 · 5 апреля 2026 г.

update to 26.1.1

0.3.0+mc1.21.11Релиз1.21.11 · 10 декабря 2025 г.

dependency updates for 1.21.11

0.3.0+mc1.21.9Релиз1.21.9, 1.21.10 · 10 декабря 2025 г.

update to 1.21.9

0.2.5+mc1.21.5Релиз1.21.6, 1.21.7, 1.21.8 · 31 марта 2025 г.

updated to 1.21.5

0.2.5+mc1.21Релиз1.21.2, 1.21.3, 1.21.4 · 13 сентября 2024 г.

fix items dropping from pots when invenntory is full

0.2.4+mc1.18.2Релиз1.18.2 · 20 марта 2024 г.

fix xp dropping in OnBreak mode

0.2.3+mc1.18.2Релиз1.18.2 · 14 марта 2024 г.

New stuff:

  • pull strength option
  • pickup check option (runs before pulling)

Комментарии

Загружаем…