2015-02-28 12:36:22 +01:00
|
|
|
From 0fdac732c8b420d01452e9e997179c5e2e961ec3 Mon Sep 17 00:00:00 2001
|
2014-07-21 22:46:54 +02:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Fri, 4 Jul 2014 13:28:45 +1000
|
|
|
|
Subject: [PATCH] Further Seed Customisation
|
|
|
|
|
|
|
|
Allow server admins that really want to to customise the seeds used in world generation even further.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenLargeFeature.java b/src/main/java/net/minecraft/server/WorldGenLargeFeature.java
|
2015-02-28 12:36:22 +01:00
|
|
|
index b2f87cc..171be82 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldGenLargeFeature.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenLargeFeature.java
|
2014-11-28 02:17:45 +01:00
|
|
|
@@ -54,7 +54,7 @@ public class WorldGenLargeFeature extends StructureGenerator {
|
2014-07-21 22:46:54 +02:00
|
|
|
|
|
|
|
int i1 = i / this.g;
|
|
|
|
int j1 = j / this.g;
|
2014-11-28 02:17:45 +01:00
|
|
|
- Random random = this.c.a(i1, j1, 14357617);
|
|
|
|
+ Random random = this.c.a(i1, j1, this.c.spigotConfig.largeFeatureSeed); // Spigot
|
2014-07-21 22:46:54 +02:00
|
|
|
|
|
|
|
i1 *= this.g;
|
|
|
|
j1 *= this.g;
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenVillage.java b/src/main/java/net/minecraft/server/WorldGenVillage.java
|
2015-02-28 12:36:22 +01:00
|
|
|
index 411f2dc..6648a70 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldGenVillage.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenVillage.java
|
2014-11-28 02:17:45 +01:00
|
|
|
@@ -53,7 +53,7 @@ public class WorldGenVillage extends StructureGenerator {
|
2014-07-21 22:46:54 +02:00
|
|
|
|
|
|
|
int i1 = i / this.g;
|
|
|
|
int j1 = j / this.g;
|
2014-11-28 02:17:45 +01:00
|
|
|
- Random random = this.c.a(i1, j1, 10387312);
|
|
|
|
+ Random random = this.c.a(i1, j1, this.c.spigotConfig.villageSeed); // Spigot
|
2014-07-21 22:46:54 +02:00
|
|
|
|
|
|
|
i1 *= this.g;
|
|
|
|
j1 *= this.g;
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2015-02-26 11:40:16 +01:00
|
|
|
index c06084d..d644922 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2014-07-30 10:35:19 +02:00
|
|
|
@@ -292,4 +292,13 @@ public class SpigotWorldConfig
|
2014-07-21 22:46:54 +02:00
|
|
|
{
|
|
|
|
witherSpawnSoundRadius = getInt( "wither-spawn-sound-radius", 0 );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int villageSeed;
|
|
|
|
+ public int largeFeatureSeed;
|
|
|
|
+ private void initWorldGenSeeds()
|
|
|
|
+ {
|
|
|
|
+ villageSeed = getInt( "seed-village", 10387312 );
|
|
|
|
+ largeFeatureSeed = getInt( "seed-feature", 14357617 );
|
|
|
|
+ log( "Custom Map Seeds: Village: " + villageSeed + " Feature: " + largeFeatureSeed );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-11-28 02:17:45 +01:00
|
|
|
2.1.0
|
2014-07-21 22:46:54 +02:00
|
|
|
|