Skip to content

Commit

Permalink
Add item config option
Browse files Browse the repository at this point in the history
  • Loading branch information
democat3457 authored Mar 17, 2021
1 parent b549c36 commit c23a7a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/ellpeck/nyx/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public final class Config {
public static Set<String> allowedDimensions;
public static boolean enchantments;
public static boolean lunarWater;
public static String lunarWaterItem;
public static boolean addPotionEffects;
public static int additionalMobsChance;
public static boolean lunarEdgeXp;
Expand Down Expand Up @@ -66,6 +67,7 @@ public static void init(File file) {
public static void load() {
allowedDimensions = Sets.newHashSet(instance.get("general", "allowedDimensions", new String[]{"overworld"}, "Names of the dimensions that lunar events should occur in").getStringList());
lunarWater = instance.get("general", "lunarWater", true, "If lunar water should be enabled").getBoolean();
lunarWaterItem = instance.get("general", "lunarWaterItem", "minecraft:dye:11", "The item that needs to be dropped into a cauldron to turn it into lunar water. Examples include 'minecraft:stick', 'minecraft:wool:3', and 'ore:stone'").getString();
meteorShardGuardianChance = instance.get("general", "meteorShardGuardianChance", 0.05, "The chance in percent (1 = 100%) for a meteor shard to be dropped from an elder guardian", 0, 1).getDouble();
mobDuplicationBlacklist = Sets.newHashSet(instance.get("general", "mobDuplicationBlacklist", new String[0], "The registry names of entities that should not be spawned during the full and blood moons. If isMobDuplicationWhitelist is true, this acts as a whitelist instead.").getStringList());
isMobDuplicationWhitelist = instance.get("general", "isMobDuplicationWhitelist", false, "If the mobDuplicationBlacklist should act as a whitelist instead").getBoolean();
Expand Down

0 comments on commit c23a7a8

Please sign in to comment.