fixes missing moon chunk data, must've been a kjs-tfc change #1528
This commit is contained in:
parent
dc9e57c3bf
commit
561be8c20c
2 changed files with 184 additions and 124 deletions
|
|
@ -1,132 +1,166 @@
|
||||||
{
|
{
|
||||||
"type": "tfg:moon",
|
"type": "tfg:moon",
|
||||||
"generator": {
|
"generator": {
|
||||||
"type": "minecraft:noise",
|
"type": "kubejs_tfc:wrapped",
|
||||||
"settings": "tfg:moon_noise",
|
"event_key": "moon",
|
||||||
"biome_source": {
|
"settings": {
|
||||||
"type": "minecraft:multi_noise",
|
"flat_bedrock": false,
|
||||||
"biomes": [
|
"spawn_distance": 0,
|
||||||
{
|
"spawn_center_x": 0,
|
||||||
"biome": "tfg:moon/lunar_lights_dense",
|
"spawn_center_z": 0,
|
||||||
"parameters": {
|
"temperature_scale": 2000,
|
||||||
"temperature": 0,
|
"rainfall_scale": 2000,
|
||||||
"humidity": 0,
|
"continentalness": -0.5,
|
||||||
"continentalness": [ 0.4, 1 ],
|
"rock_layer_settings": {
|
||||||
"erosion": 0,
|
"rocks": {
|
||||||
"weirdness": [ 0.4, 1 ],
|
"gabbro": "tfc:gabbro"
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
"layers": [],
|
||||||
"biome": "tfg:moon/lunar_lights_sparse",
|
"bottom": [
|
||||||
"parameters": {
|
"gabbro"
|
||||||
"temperature": 0,
|
],
|
||||||
"humidity": 0,
|
"ocean_floor": [
|
||||||
"continentalness": [ 0.2, 0.4 ],
|
"bottom"
|
||||||
"erosion": 0,
|
],
|
||||||
"weirdness": [ 0.2, 0.4 ],
|
"volcanic": [
|
||||||
"depth": 0,
|
"bottom"
|
||||||
"offset": 0
|
],
|
||||||
|
"land": [
|
||||||
|
"bottom"
|
||||||
|
],
|
||||||
|
"uplift": [
|
||||||
|
"bottom"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"generator": {
|
||||||
|
"type": "minecraft:noise",
|
||||||
|
"settings": "tfg:moon_noise",
|
||||||
|
"biome_source": {
|
||||||
|
"type": "minecraft:multi_noise",
|
||||||
|
"biomes": [
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_lights_dense",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ 0.4, 1 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ 0.4, 1 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_lights_sparse",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ 0.2, 0.4 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ 0.2, 0.4 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_asurine_dense",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ 0.4, 1 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -1, -0.4 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_asurine_sparse",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ 0.2, 0.4 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -0.4, -0.2 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_plains",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": -0.1,
|
||||||
|
"continentalness": [ -0.2, 0.2 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -0.2, 0.2 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_sands",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0.2,
|
||||||
|
"continentalness": [ -0.2, 0.2 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -0.2, 0.2 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_corals_sparse",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ -0.4, -0.2 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -0.4, -0.2 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_corals_dense",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ -1, -0.4 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ -1, -0.4 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_chorus_sparse",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ -0.4, -0.2 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ 0.2, 0.4 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"biome": "tfg:moon/lunar_chorus_dense",
|
||||||
|
"parameters": {
|
||||||
|
"temperature": 0,
|
||||||
|
"humidity": 0,
|
||||||
|
"continentalness": [ -1, -0.4 ],
|
||||||
|
"erosion": 0,
|
||||||
|
"weirdness": [ 0.4, 1 ],
|
||||||
|
"depth": 0,
|
||||||
|
"offset": 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
}
|
||||||
"biome": "tfg:moon/lunar_asurine_dense",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ 0.4, 1 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -1, -0.4 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_asurine_sparse",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ 0.2, 0.4 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -0.4, -0.2 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_plains",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": -0.1,
|
|
||||||
"continentalness": [ -0.2, 0.2 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -0.2, 0.2 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_sands",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0.2,
|
|
||||||
"continentalness": [ -0.2, 0.2 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -0.2, 0.2 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_corals_sparse",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ -0.4, -0.2 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -0.4, -0.2 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_corals_dense",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ -1, -0.4 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ -1, -0.4 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_chorus_sparse",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ -0.4, -0.2 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ 0.2, 0.4 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"biome": "tfg:moon/lunar_chorus_dense",
|
|
||||||
"parameters": {
|
|
||||||
"temperature": 0,
|
|
||||||
"humidity": 0,
|
|
||||||
"continentalness": [ -1, -0.4 ],
|
|
||||||
"erosion": 0,
|
|
||||||
"weirdness": [ 0.4, 1 ],
|
|
||||||
"depth": 0,
|
|
||||||
"offset": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5,6 +5,32 @@ const $HeightMap = Java.loadClass("net.minecraft.world.level.levelgen.Heightmap"
|
||||||
|
|
||||||
const ROCK_LAYER_HEIGHT = 40;
|
const ROCK_LAYER_HEIGHT = 40;
|
||||||
|
|
||||||
|
// Bare minimum
|
||||||
|
TFCEvents.createChunkDataProvider('moon', event => {
|
||||||
|
var aquifer = [];
|
||||||
|
let i = 0;
|
||||||
|
while (i < 16) {
|
||||||
|
aquifer.push(32);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
var heights = [];
|
||||||
|
for (let x = 0 ; x < 16 ; x++) {
|
||||||
|
for (let z = 0 ; z < 16 ; z++) {
|
||||||
|
heights[x + 16 * z] = 80;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
event.partial((data, chunk) => {
|
||||||
|
data.generatePartial(0, 0, 0, 0, 0)
|
||||||
|
})
|
||||||
|
event.full((data, chunk) => {
|
||||||
|
data.generateFull(heights, aquifer)
|
||||||
|
})
|
||||||
|
event.rocks((x, y, z, surfaceY, cache, rockLayers) => {
|
||||||
|
return rockLayers.sampleAtLayer(0, 0)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
TFCEvents.createChunkDataProvider('mars', event => {
|
TFCEvents.createChunkDataProvider('mars', event => {
|
||||||
|
|
||||||
const rain = TFC.misc.lerpFloatLayer(0, 0, 0, 0);
|
const rain = TFC.misc.lerpFloatLayer(0, 0, 0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue