improvements to jagged tablelands + some skew for the rock layers
This commit is contained in:
parent
5aa82d80af
commit
8fd7cf3847
4 changed files with 52 additions and 35 deletions
|
|
@ -43,7 +43,9 @@
|
|||
"tfg:venus/terrain/lava_spring_rare",
|
||||
"tfc:random_empty_hot_spring"
|
||||
],
|
||||
[],
|
||||
[
|
||||
"tfg:venus/terrain/adakite_column"
|
||||
],
|
||||
[],
|
||||
[],
|
||||
"#tfg:venus_veins",
|
||||
|
|
@ -102,8 +104,8 @@
|
|||
"charge": 0.7
|
||||
},
|
||||
"minecraft:magma_cube": {
|
||||
"energy_budget": 0.15,
|
||||
"charge": 0.7
|
||||
"energy_budget": 0.03,
|
||||
"charge": 0.10
|
||||
},
|
||||
"arthropocolypse:millipede_head": {
|
||||
"energy_budget": 0.05,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"type": "tfc:pipe_vein",
|
||||
"config": {
|
||||
"height": 120,
|
||||
"radius": 4,
|
||||
"min_skew": 0,
|
||||
"max_skew": 2,
|
||||
"min_slant": 0,
|
||||
"max_slant": 2,
|
||||
"sign": 0,
|
||||
"rarity": 80,
|
||||
"density": 0.99,
|
||||
"min_y": 60,
|
||||
"max_y": 180,
|
||||
"random_name": "adakite_column",
|
||||
"blocks": [
|
||||
{
|
||||
"replace": [
|
||||
"minecraft:air"
|
||||
],
|
||||
"with": [
|
||||
{
|
||||
"block": "betterend:lacugrove_bark",
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"feature": "tfg:venus/terrain/adakite_column",
|
||||
"placement": []
|
||||
}
|
||||
|
|
@ -58,10 +58,13 @@ let forestWeirdnessNoise = TFC.misc.newOpenSimplex2D(3210378120)
|
|||
.map(i => 1.1 * Math.abs(i))
|
||||
.clamped(0, 1)
|
||||
|
||||
let cellularNoise = TFC.misc.cellular3D(678965856);
|
||||
|
||||
//TFC.misc.register2DNoiseForInspection('temp', tempLayer)
|
||||
//TFC.misc.register2DNoiseForInspection('rain', rainLayer)
|
||||
//TFC.misc.register2DNoiseForInspection('forestType', forestDensityNoise)
|
||||
//TFC.misc.register2DNoiseForInspection('forestWeirdness', forestWeirdnessNoise)
|
||||
TFC.misc.register3DNoiseForInspection('cellular', cellularNoise);
|
||||
|
||||
// Forest layer
|
||||
let forestLayerNoise = TFC.misc.newOpenSimplex2D(3210378120)
|
||||
|
|
@ -126,41 +129,17 @@ TFCEvents.createChunkDataProvider('mars', event => {
|
|||
});
|
||||
|
||||
event.rocks((x, y, z, surfaceY, cache, rockSettings) => {
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x, z), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
let skew = y / 8;
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x + skew, z + skew), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
});
|
||||
})
|
||||
|
||||
TFCEvents.createChunkDataProvider('venus', event => {
|
||||
const emptyLayer = TFC.misc.lerpFloatLayer(0, 0, 0, 0);
|
||||
|
||||
event.partial((data, chunk) => {
|
||||
let x = chunk.pos.minBlockX;
|
||||
let z = chunk.pos.minBlockZ;
|
||||
|
||||
const avgTemp1 = calcAverage(z, global.VENUS_PLANET_SIZE, 0, 100)
|
||||
const avgTemp2 = calcAverage(z + 15, global.VENUS_PLANET_SIZE, 0, 100)
|
||||
const avgRain1 = calcAverage(x, global.VENUS_PLANET_SIZE, 0, 100)
|
||||
const avgRain2 = calcAverage(x + 15, global.VENUS_PLANET_SIZE, 0, 100)
|
||||
|
||||
let rain = TFC.misc.lerpFloatLayer(
|
||||
avgRain1 + rainLayer.noise(x, z),
|
||||
avgRain1 + rainLayer.noise(x, z + 15),
|
||||
avgRain2 + rainLayer.noise(x + 15, z),
|
||||
avgRain2 + rainLayer.noise(x + 15, z + 15)
|
||||
);
|
||||
let temp = TFC.misc.lerpFloatLayer(
|
||||
avgTemp1 + tempLayer.noise(x, z),
|
||||
avgTemp1 + tempLayer.noise(x, z + 15),
|
||||
avgTemp2 + tempLayer.noise(x + 15, z),
|
||||
avgTemp2 + tempLayer.noise(x + 15, z + 15)
|
||||
);
|
||||
|
||||
data.generatePartial(
|
||||
rain,
|
||||
temp,
|
||||
floatToForestType(forestLayerNoise.noise(x, z)),
|
||||
forestWeirdnessNoise.noise(x, z), // forest weirdness
|
||||
forestDensityNoise.noise(x, z) // forest density
|
||||
);
|
||||
});
|
||||
data.generatePartial(emptyLayer, emptyLayer, 0, 0, 0)
|
||||
})
|
||||
|
||||
event.full((data, chunk) => {
|
||||
let heights = [];
|
||||
|
|
@ -173,7 +152,8 @@ TFCEvents.createChunkDataProvider('venus', event => {
|
|||
});
|
||||
|
||||
event.rocks((x, y, z, surfaceY, cache, rockSettings) => {
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x, z), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
let skew = y / 6;
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x + skew, z + skew), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
});
|
||||
})
|
||||
|
||||
|
|
@ -220,7 +200,8 @@ TFCEvents.createChunkDataProvider('glacio', event => {
|
|||
});
|
||||
|
||||
event.rocks((x, y, z, surfaceY, cache, rockSettings) => {
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x, z), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
let skew = y / 8;
|
||||
return rockSettings.sampleAtLayer(rockLayer.getAt(x + skew, z + skew), (surfaceY - y) / ROCK_LAYER_HEIGHT);
|
||||
});
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue