mirror of
https://github.com/BentoBoxWorld/CaveBlock.git
synced 2024-11-22 11:35:11 +01:00
Add NumberOfBlockGenerationTries - variable that indicate how many times generator should try to place block.
This commit is contained in:
parent
dc83823da5
commit
bcdbdef1ae
@ -734,7 +734,12 @@ public class Settings implements DataObject, WorldSettings
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public int getNumberOfBlockGenerationTries()
|
||||
{
|
||||
return numberOfBlockGenerationTries;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Section: Setters
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
@ -1428,7 +1433,13 @@ public class Settings implements DataObject, WorldSettings
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
public void setNumberOfBlockGenerationTries(int numberOfBlockGenerationTries)
|
||||
{
|
||||
this.numberOfBlockGenerationTries = numberOfBlockGenerationTries;
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Section: Variables
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
@ -1520,6 +1531,10 @@ public class Settings implements DataObject, WorldSettings
|
||||
@ConfigEntry(path = "world.world-depth", needsReset = true)
|
||||
private int worldDepth = 256;
|
||||
|
||||
@ConfigComment("This indicate how many times block should be tried to generate.")
|
||||
@ConfigEntry(path = "world.generation-tries", needsReset = true)
|
||||
private int numberOfBlockGenerationTries = 1;
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("Make over world roof of bedrock, if false, it will be made from stone")
|
||||
@ConfigEntry(path = "world.normal.roof", needsReset = true)
|
||||
|
Loading…
Reference in New Issue
Block a user