
CustomMagnets
A datapack/packaged mod that adds magnets that can be found in the end city loot chests.
Screenshots






About this Mod
Will not be updating this project unless I change my mind.
CustomMagnets
By: FerranV
Important Notice!!: When downloading the datapack also download the embedded resourcepack!
- Step 1: Go to
versionsand click on the desired version. - Step 2: Scroll down to
filesand download BOTH the datapack and resourcepack. (Installation guide below if needed)

Description:
This is a datapack (+resourcepack) that adds custom magnet items to the end city loot pools.
Obtaining the magnets:
- You find the magnets in the chests that can be found in the end cities.
- If you are an OP you can also obtain the magnets by typing
/function custommagnets:get_magnetin chat.
Usage:
- Hold the magnet (either mainhand or offhand) to suck up items in a specific radius depending on it's rarity. Common: 3x3, Epic: 5x5, Legendary: 10x10
- Shift+right_click whilst holding the magnet to toggle the magnet from sucking up items.
- The magnets ARE compatible with the mending and unbreaking enchantments. (The magnets do also all have durability. Common: 3000, Epic: 7000, Legendary: 10000)
Bug report:
- Experiencing any issues or have ideas for enhancements? Please let me know at the
Report issuespage.

Changelog:
- 1.21.7_v1.0.0: Added support for the 1.21.7 version of Minecraft.
- 1.21.6_v1.0.0: Added support for the 1.21.6 version of Minecraft.
- v1.0.0+mod: now packaged as a mod for easier installation on modded instances.
- v1.0.0: Initial Push
Installation guide:
Modded instance:
- If you're playing on a modded instance you can download the +mod version and drop it in your mods folder and you're done :D. Note: this will enable the datapack on every world that you play on. Just like any other mods would. So if you want it to only affect specific worlds you should follow the steps below.
Datapack:
Adding to a new world:
Step 1:
PressCreate New Worldand thenMore
Step 2:
PressData Packs
Step 3:
PressOpen Pack Folderand drop your download.zipfile in the opened folder. (Make sure you select the datapack and not the resourcepack or else it will not work).
Step 4:
Click the arrow next to the now appeared file and you should see it go fromAvailabletoSelected.Before:

After:

Step 5:
PressDoneand after changing your world options to your liking pressCreate New Worldand you should be all set up!
Adding to an already existing world:
- Step 1: Locate your
savesfolder. - Step 2: Open folder of the world you want the datapack to be in.
- Step 3: Locate the
datapacksfolder within that world folder. - Step 4: Drop the
.zipfile into thedatapacksfolder. (Make sure you drop the datapack file and not the resourcepack or else it will not work)
- Step 1: Locate your
Resourcepack:
- Step 1:
Locate your Minecraft folder. - Step 2:
Locate theresourcepacksfolder - Step 3:
Drop the.zipfile into theresourcepacksfolder (make sure this is the resourcepack file and not the datapack or else it will not work).
Available Versions
How to Install CustomMagnets on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.8).
Install Mod
Open the mod browser in the dashboard and search for "CustomMagnets". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.8, 1.21.7, 1.21.6 (+1 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CustomMagnets server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.
Is CustomMagnets compatible with datapack and fabric and forge and neoforge and quilt?
CustomMagnets officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.8, 1.21.7, 1.21.6. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CustomMagnets – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CustomMagnets consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install CustomMagnets with just one click on your server.