Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/01/19 in all areas

  1. 1 point
  2. Mojang created a brand new system (and library) for commands: https://github.com/Mojang/brigadier I don't know if there's a Forge wrapper for this library, but regardless the entire command system has changed.
    1 point
  3. My modConfig: package de.madone.nimox.config; import net.minecraftforge.common.ForgeConfigSpec; public class ModConfig { private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); public static final General GENERAL = new General(BUILDER); public static final ForgeConfigSpec spec = BUILDER.build(); public static class General { public final ForgeConfigSpec.ConfigValue<Boolean> ModEnabled; public final ForgeConfigSpec.ConfigValue<Integer> TorchDistance; public General(ForgeConfigSpec.Builder builder) { builder.push("General"); ModEnabled = builder .comment("Enables/Disables the whole Mod [false/true|default:true]") .translation("enable.ocdtorcher.config") .define("enableMod", true); TorchDistance = builder .comment("sets the Reach of the Torcher [0..50|default:20]") .translation("distance.ocdtorcher.config") .defineInRange("TorcherDistance", 20, 0,50); builder.pop(); } } } Main-Class-Constructor: // load Configfile ModLoadingContext.get().registerConfig(net.minecraftforge.fml.config.ModConfig.Type.COMMON, de.madone.nimox.config.ModConfig.spec); But it's not available at registration time. (NPE)
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.