-
Notifications
You must be signed in to change notification settings - Fork 0
26.2 Configuration
π Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.
| Configuration Infobox | Details |
|---|---|
| Config File Path | config/ig_magnet.json |
| GUI Library | YetAnotherConfigLib v3 (dev.isxander:yet-another-config-lib) |
| ModMenu Entrypoint | net.instantgratification.magnet.config.ModMenuIntegration |
| GUI Screen Helper | net.instantgratification.magnet.config.YaclScreenHelper |
| Classloading Safety | Isolated via GuiHelper.getOptionalFactory
|
Magnet, Let me get that! provides an optional client-side configuration GUI powered by YetAnotherConfigLib v3 (YACL) and accessible through ModMenu.
To ensure that dedicated servers never crash when loading client GUI classes, the GUI factory is resolved through reflection-safe isolated classloading:
public class ModMenuIntegration implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return GuiHelper.getOptionalFactory(
"ig_magnet",
"net.instantgratification.magnet.config.YaclScreenHelper",
"createScreen"
);
}
}
β οΈ Important Notice:
Changes made in the ModMenu GUI orconfig/ig_magnet.jsononly affect the baseline default values for NEW worlds.
To modify the settings of an active, already-created world, use the in-game GameRules Reference via/gameruleor the vanilla GameRules edit screen.
YACL Configuration Screen ("Magnet, Let me get that! Configuration")
βββ General Settings
β βββ Magnet Enabled (Default: true)
β βββ Magnet Range (Default: 12, Range: 1..64)
β βββ Instant Pickup (Default: false)
β βββ Magnet Noclip (Default: true)
βββ Speeds & Pull Heuristics
β βββ Item Speed (Default: 80%, Range: 1..1000)
β βββ Item Acceleration (Default: 10%, Range: 1..1000)
βββ Line of Sight (LOS)
β βββ Line of Sight Only (Default: true)
β βββ Keep Moving if Unseen (Default: true)
β βββ Blocked by Transparent (Default: false)
β βββ Blocked by Flora (Default: false)
β βββ Blocked by Block Entities (Default: false)
βββ Visuals & Performance
βββ Attract XP Orbs (Default: true)
βββ Magnet Particles (Default: true)
βββ Particle Count (Default: 1, Range: 0..100)
βββ Max Particle Sources (Default: 5, Range: 0..100)
{
"configVersion": 1,
"enabled": true,
"range": 12,
"noClip": true,
"affectsXp": true,
"particles": true,
"particleCount": 1,
"maxParticleSources": 5,
"speed": 80,
"acceleration": 10,
"instant": false,
"losOnly": true,
"keepMovingIfUnseen": true,
"blockedByTransparent": false,
"blockedByFlora": false,
"blockedByBlockEntities": false
}
Magnet, Let me get that! β’ Developed by Dasik (Rifaditya) β’ Licensed under GNU GPLv3
Documentation reflects active repository source code. Features may precede public releases on CurseForge/Modrinth.
- π 26.2 Overview
- Gameplay Mechanics
- Administration & Config
- Technical & Development
- π 26.1.2 Overview
- Gameplay Mechanics
- Administration & Config
- Technical & Development