cjcj55

OreGenConfig

Jul 14th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. package chris.chrispymod.config;
  2.  
  3. import net.minecraftforge.common.ForgeConfigSpec;
  4.  
  5. public class OreGenConfig
  6. {
  7. public static ForgeConfigSpec.IntValue ruby_chance;
  8. public static ForgeConfigSpec.IntValue opal_chance;
  9. public static ForgeConfigSpec.IntValue tangerine_chance;
  10. public static ForgeConfigSpec.IntValue cobalt_chance;
  11. public static ForgeConfigSpec.BooleanValue generate_overworld;
  12.  
  13. public static void init(ForgeConfigSpec.Builder server, ForgeConfigSpec.Builder client)
  14. {
  15. server.comment("Oregen Config");
  16.  
  17. ruby_chance = server
  18. .comment("Maximum number of Ruby Ore veins that can spawn in one chunk.")
  19. .defineInRange("oregen.ruby_chance", 8, 1, 1000);
  20.  
  21. opal_chance = server
  22. .comment("Maximum number of Opal Ore veins that can spawn in one chunk.")
  23. .defineInRange("oregen.opal_chance", 12, 1, 1000);
  24.  
  25. tangerine_chance = server
  26. .comment("Maximum number of Tangerine Ore veins that can spawn in one chunk.")
  27. .defineInRange("oregen.tangerine_chance", 10, 1, 1000);
  28.  
  29. cobalt_chance = server
  30. .comment("Maximum number of Cobalt Ore veins that can spawn in one chunk.")
  31. .defineInRange("oregen.tangerine_chance", 8, 1, 1000);
  32.  
  33. generate_overworld = server
  34. .comment("Decide if you want Ruby Ore to spawn in overworld.")
  35. .define("oregen.generate_overworld", true);
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment