--- ---
public class MyConfig { @ Switch ( name = "Sub Switch" , type = OptionType . SWITCH ) public static boolean subSwitch = false ; public MyConfig () { super ( new Mod ( "My Mod" , ModType . UTIL_QOL ), "config.json" ); addDependency ( "subSwitch" , () -> { // Do stuff here!}); } }