Skip to content

Commit

Permalink
Tweeked config to make THe End not so insane.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 6, 2021
1 parent 88a5f99 commit 4cfac52
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/main/java/world/bentobox/skygrid/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class Settings implements WorldSettings {
@ConfigEntry(path = "world.end.generate")
private boolean endGenerate = true;

@ConfigComment("The End blocks. END_CRYSTAL is blocked because it causes serious performance issues.")
@ConfigComment("The End blocks.")
@ConfigEntry(path = "world.end.blocks")
private Map<Material, Integer> endBlocks = new EnumMap<>(Material.class);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package world.bentobox.skygrid.generators;

import java.util.NavigableMap;
import java.util.Random;
import java.util.TreeMap;

Expand All @@ -10,7 +11,7 @@ public class BlockProbability {
/**
* Tree map of all materials and their probabilities as a ratio to the sum of all probabilities
*/
private final TreeMap<Integer, Material> probMap = new TreeMap<>();
private final NavigableMap<Integer, Material> probMap = new TreeMap<>();
/**
* Sum of all probabilities
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class SkyGridChunks {
Material.WHITE_TULIP
));

private static final int PRE_MADE_CHUNKS_NUMBER = 30;
private static final int PRE_MADE_CHUNKS_NUMBER = 100;

private final SkyGrid addon;

Expand Down Expand Up @@ -115,7 +115,7 @@ private void setBlock(BlockProbability prob, int x, int y, int z, List<SkyGridBl
// Get a random block and feed in the last block (true if cactus or cane)
Material blockMat = prob.getBlock(random, y == 0, false);
// If blockMat is not "a block" then cannot be generated
if (!blockMat.isBlock()) {
if (!blockMat.isAir() && !blockMat.isBlock()) {
blockMat = Material.STONE;
}
// Check if the block needs dirt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ private TreeMap<Integer,EntityType> netherSpawns() {
*/
private TreeMap<Integer,EntityType> endSpawns() {
TreeMap<Integer,EntityType> s = new TreeMap<>();
s.put(50, EntityType.ENDERMAN);
s.put(100, EntityType.ENDERMAN);
s.put(55, EntityType.ENDERMITE);
s.put(65, EntityType.SHULKER);
s.put(1, EntityType.SHULKER);
return s;
}

Expand Down
13 changes: 7 additions & 6 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -694,17 +694,18 @@ world:
end:
# Generate SkyGrid End - if this is false, the end world will not be made
generate: true
# The End blocks. END_CRYSTAL is blocked because it causes serious performance issues.
# The End blocks.
blocks:
CHEST: 5
CHEST: 1
END_ROD: 1
OBSIDIAN: 5
CHORUS_PLANT: 2
OBSIDIAN: 1
PURPLE_STAINED_GLASS: 50
AIR: 200
END_STONE: 200
SPAWNER: 5
GRAVEL: 10
PURPUR_BLOCK: 10
PURPLE_STAINED_GLASS: 10
SPAWNER: 1
PURPUR_BLOCK: 50

# Biomes - this will affect some block types and tree types.
create-biomes: true
Expand Down

0 comments on commit 4cfac52

Please sign in to comment.