aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranhgelus <anhgelus.morhtuuzh@proton.me>2024-08-31 16:50:37 +0000
committeranhgelus <anhgelus.morhtuuzh@proton.me>2024-08-31 16:51:07 +0000
commite97bb7a09c3201682c91f423c2a8a87b20b3816d (patch)
treed8cf82d26373a464eb22b3f3cfe44b8e48a39183
parentd6e463164c17a01ec2d24de880418d59237e39a1 (diff)
feat(config): change default values for world borders
-rw-r--r--Writerside/topics/config-file.md8
-rw-r--r--Writerside/topics/gamerules.md6
-rw-r--r--src/main/java/world/anhgelus/molehunt/Molehunt.java6
-rw-r--r--src/main/java/world/anhgelus/molehunt/config/Config.java12
4 files changed, 16 insertions, 16 deletions
diff --git a/Writerside/topics/config-file.md b/Writerside/topics/config-file.md
index bbfbecd..bdba4f4 100644
--- a/Writerside/topics/config-file.md
+++ b/Writerside/topics/config-file.md
@@ -133,18 +133,18 @@ show_tab = false
# World border settings
# Initial world size (in blocks).
-# Default: 200 blocks.
-initial_world_size = 200
+# Default: 600 blocks.
+initial_world_size = 600
# Final world size (in blocks).
# Default: 50 blocks.
-final_world_size = 50
+final_world_size = 100
# Moving starting time offset (in minutes)
# The time before starting to move the world borders.
# If this value is greater than the game duration, borders will never move.
# Default: 10 minutes.
-border_moving_starting_time_offset = 10
+border_moving_starting_time_offset = 30
# Other
diff --git a/Writerside/topics/gamerules.md b/Writerside/topics/gamerules.md
index c838643..688f938 100644
--- a/Writerside/topics/gamerules.md
+++ b/Writerside/topics/gamerules.md
@@ -37,8 +37,8 @@ Here's a list of all the Molehunt gamerules.
#### World-border settings
-- `initialWorldSize`: the world size when starting the game (default: `200 blocks`).
-- `finalWorldSize`: the target world size on the end of the game (default: `50 blocks`).
-- `borderMovingStartingTimeOffsetMinutes`: the time before the world borders start to move in minutes (default: `5 minutes`).
+- `initialWorldSize`: the world size when starting the game (default: `600 blocks`).
+- `finalWorldSize`: the target world size on the end of the game (default: `100 blocks`).
+- `borderMovingStartingTimeOffsetMinutes`: the time before the world borders start to move in minutes (default: `10 minutes`).
> Setting this to a value greater than `gameDuration` will make the borders never move.
{style=note}
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java
index 86668e3..abce46b 100644
--- a/src/main/java/world/anhgelus/molehunt/Molehunt.java
+++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java
@@ -83,17 +83,17 @@ public class Molehunt implements ModInitializer {
public static final GameRules.Key<GameRules.IntRule> INITIAL_WORLD_SIZE = GameRuleRegistry.register(
MOD_ID +":initialWorldSize",
GameRules.Category.MISC,
- GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("initial_world_size", 200), 0)
+ GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("initial_world_size", 600), 0)
);
public static final GameRules.Key<GameRules.IntRule> FINAL_WORLD_SIZE = GameRuleRegistry.register(
MOD_ID +":finalWorldSize",
GameRules.Category.MISC,
- GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("final_world_size", 50), 0)
+ GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("final_world_size", 100), 0)
);
public static final GameRules.Key<GameRules.IntRule> MOVING_STARTING_TIME_OFFSET = GameRuleRegistry.register(
MOD_ID +":borderMovingStartingTimeOffsetMinutes",
GameRules.Category.MISC,
- GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("border_moving_starting_time_offset", 10), 0)
+ GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("border_moving_starting_time_offset", 30), 0)
);
public static final GameRules.Key<GameRules.BooleanRule> ENABLE_PORTALS = GameRuleRegistry.register(
MOD_ID +":enablePortals",
diff --git a/src/main/java/world/anhgelus/molehunt/config/Config.java b/src/main/java/world/anhgelus/molehunt/config/Config.java
index 1f617e6..96f62d8 100644
--- a/src/main/java/world/anhgelus/molehunt/config/Config.java
+++ b/src/main/java/world/anhgelus/molehunt/config/Config.java
@@ -109,18 +109,18 @@ public class Config {
# World border settings
# Initial world size (in blocks).
- # Default: 200 blocks.
- initial_world_size = 200
+ # Default: 600 blocks.
+ initial_world_size = 600
# Final world size (in blocks).
- # Default: 50 blocks.
- final_world_size = 50
+ # Default: 100 blocks.
+ final_world_size = 100
# Moving starting time offset (in minutes)
# The time before starting to move the world borders.
# If this value is greater than the game duration, borders will never move.
- # Default: 10 minutes.
- border_moving_starting_time_offset = 10
+ # Default: 30 minutes.
+ border_moving_starting_time_offset = 30
# Other