New PICKUP_MAGNET player command that creates a magnetic field around the player to automatically pull nearby dropped items towards them.
Parameter Type Default Description
radius: Distance to pull items from (blocks)
duration: How long to pull (-1=forever, 0=instant, >0=ticks)
speed: Pull speed multiplier (0.1-2.0)
itemTypes: Filter by material/category
blacklist: Materials to ignore (comma-separated)
particleEffect: Show particle trails
sound: Play sound effect
velocityMode: DIRECT or CURVED trajectory
examples:
- "PICKUP_MAGNET radius:8 duration:60 speed:0.5 itemTypes:FOOD particleEffect:true"
- "PICKUP_MAGNET radius:20 duration:0 speed:2.0 itemTypes:DIAMOND,EMERALD,GOLD_INGOT sound:true"
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }