overwrite getMaxNetherPortalTime
This commit is contained in:
1 parent
9a875c64e2
commit
fe56ab8d3e
2 files changed
+31
-18
No files matched your search
@@ -50,11 +50,30 @@ public class CarpetSettings
|
||||
public static boolean superSecretSetting = false;
|
||||
|
||||
@Rule(
|
||||
desc = "Portals won't let a creative player go through instantly",
|
||||
extra = "Holding obsidian in either hand won't let you through at all",
|
||||
category = CREATIVE
|
||||
desc = "Modify the amount of ticks for entering a Nether portal in creative",
|
||||
options = {"1", "40", "80", "72000"},
|
||||
category = CREATIVE,
|
||||
strict = false,
|
||||
validate = NetherPortalDelayLimit.class
|
||||
)
|
||||
public static boolean portalCreativeDelay = false;
|
||||
public static int portalCreativeDelay = 1;
|
||||
|
||||
@Rule(
|
||||
desc = "Modify the amount of ticks for entering a Nether portal in survival",
|
||||
options = {"1", "40", "80", "72000"},
|
||||
category = SURVIVAL,
|
||||
strict = false,
|
||||
validate = NetherPortalDelayLimit.class
|
||||
)
|
||||
public static int portalSurvivalDelay = 80;
|
||||
|
||||
private static class NetherPortalDelayLimit extends Validator<Integer> {
|
||||
@Override public Integer validate(ServerCommandSource source, ParsedRule<Integer> currentRule, Integer newValue, String string) {
|
||||
return (newValue > 0 && newValue <= 72000) ? newValue : null;
|
||||
}
|
||||
@Override
|
||||
public String description() { return "You must choose a value from 1 to 72000";}
|
||||
}
|
||||
|
||||
@Rule(desc = "Dropping entire stacks works also from on the crafting UI result slot", category = {BUGFIX, SURVIVAL})
|
||||
public static boolean ctrlQCraftingFix = false;
|
||||
|
||||
Reference in new issue
Block a user