More slag

This commit is contained in:
Anuken
2021-11-14 10:12:47 -05:00
parent 3a6878ef60
commit 70cf55f314
4 changed files with 23 additions and 4 deletions

View File

@@ -110,7 +110,8 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
if(floor != Blocks.redIce){
float noise = noise(x + 782, y, 7, 0.8f, 280f, 1f);
if(noise > 0.62f){
if(noise > 0.7f){
if(noise > 0.635f){
//TODO slag must be rounded, no single occurrences
floor = Blocks.slag;
}else{
floor = Blocks.yellowStone;
@@ -136,6 +137,9 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
distort(10f, 12f);
distort(5f, 7f);
//smooth out slag to prevent random 1-tile patches
median(3, 0.6, Blocks.slag);
pass((x, y) -> {
float max = 0;
for(Point2 p : Geometry.d8){
@@ -209,6 +213,12 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
}
}
for(Tile tile : tiles){
if(tile.overlay().needsSurface && !tile.floor().hasSurface()){
tile.setOverlay(Blocks.air);
}
}
//not allowed
state.rules.hiddenBuildItems.addAll(Items.copper, Items.titanium, Items.coal, Items.lead, Items.blastCompound, Items.pyratite, Items.sporePod, Items.metaglass, Items.plastanium);