Skip to content

Commit 561be8c

Browse files
committed
fixes missing moon chunk data, must've been a kjs-tfc change #1528
1 parent dc9e57c commit 561be8c

File tree

2 files changed

+184
-124
lines changed

2 files changed

+184
-124
lines changed
Lines changed: 158 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,166 @@
11
{
22
"type": "tfg:moon",
33
"generator": {
4-
"type": "minecraft:noise",
5-
"settings": "tfg:moon_noise",
6-
"biome_source": {
7-
"type": "minecraft:multi_noise",
8-
"biomes": [
9-
{
10-
"biome": "tfg:moon/lunar_lights_dense",
11-
"parameters": {
12-
"temperature": 0,
13-
"humidity": 0,
14-
"continentalness": [ 0.4, 1 ],
15-
"erosion": 0,
16-
"weirdness": [ 0.4, 1 ],
17-
"depth": 0,
18-
"offset": 0
19-
}
20-
},
21-
{
22-
"biome": "tfg:moon/lunar_lights_sparse",
23-
"parameters": {
24-
"temperature": 0,
25-
"humidity": 0,
26-
"continentalness": [ 0.2, 0.4 ],
27-
"erosion": 0,
28-
"weirdness": [ 0.2, 0.4 ],
29-
"depth": 0,
30-
"offset": 0
31-
}
32-
},
33-
{
34-
"biome": "tfg:moon/lunar_asurine_dense",
35-
"parameters": {
36-
"temperature": 0,
37-
"humidity": 0,
38-
"continentalness": [ 0.4, 1 ],
39-
"erosion": 0,
40-
"weirdness": [ -1, -0.4 ],
41-
"depth": 0,
42-
"offset": 0
43-
}
44-
},
45-
{
46-
"biome": "tfg:moon/lunar_asurine_sparse",
47-
"parameters": {
48-
"temperature": 0,
49-
"humidity": 0,
50-
"continentalness": [ 0.2, 0.4 ],
51-
"erosion": 0,
52-
"weirdness": [ -0.4, -0.2 ],
53-
"depth": 0,
54-
"offset": 0
55-
}
56-
},
57-
{
58-
"biome": "tfg:moon/lunar_plains",
59-
"parameters": {
60-
"temperature": 0,
61-
"humidity": -0.1,
62-
"continentalness": [ -0.2, 0.2 ],
63-
"erosion": 0,
64-
"weirdness": [ -0.2, 0.2 ],
65-
"depth": 0,
66-
"offset": 0
67-
}
68-
},
69-
{
70-
"biome": "tfg:moon/lunar_sands",
71-
"parameters": {
72-
"temperature": 0,
73-
"humidity": 0.2,
74-
"continentalness": [ -0.2, 0.2 ],
75-
"erosion": 0,
76-
"weirdness": [ -0.2, 0.2 ],
77-
"depth": 0,
78-
"offset": 0
79-
}
80-
},
81-
{
82-
"biome": "tfg:moon/lunar_corals_sparse",
83-
"parameters": {
84-
"temperature": 0,
85-
"humidity": 0,
86-
"continentalness": [ -0.4, -0.2 ],
87-
"erosion": 0,
88-
"weirdness": [ -0.4, -0.2 ],
89-
"depth": 0,
90-
"offset": 0
91-
}
92-
},
93-
{
94-
"biome": "tfg:moon/lunar_corals_dense",
95-
"parameters": {
96-
"temperature": 0,
97-
"humidity": 0,
98-
"continentalness": [ -1, -0.4 ],
99-
"erosion": 0,
100-
"weirdness": [ -1, -0.4 ],
101-
"depth": 0,
102-
"offset": 0
103-
}
104-
},
105-
{
106-
"biome": "tfg:moon/lunar_chorus_sparse",
107-
"parameters": {
108-
"temperature": 0,
109-
"humidity": 0,
110-
"continentalness": [ -0.4, -0.2 ],
111-
"erosion": 0,
112-
"weirdness": [ 0.2, 0.4 ],
113-
"depth": 0,
114-
"offset": 0
115-
}
4+
"type": "kubejs_tfc:wrapped",
5+
"event_key": "moon",
6+
"settings": {
7+
"flat_bedrock": false,
8+
"spawn_distance": 0,
9+
"spawn_center_x": 0,
10+
"spawn_center_z": 0,
11+
"temperature_scale": 2000,
12+
"rainfall_scale": 2000,
13+
"continentalness": -0.5,
14+
"rock_layer_settings": {
15+
"rocks": {
16+
"gabbro": "tfc:gabbro"
11617
},
117-
{
118-
"biome": "tfg:moon/lunar_chorus_dense",
119-
"parameters": {
120-
"temperature": 0,
121-
"humidity": 0,
122-
"continentalness": [ -1, -0.4 ],
123-
"erosion": 0,
124-
"weirdness": [ 0.4, 1 ],
125-
"depth": 0,
126-
"offset": 0
18+
"layers": [],
19+
"bottom": [
20+
"gabbro"
21+
],
22+
"ocean_floor": [
23+
"bottom"
24+
],
25+
"volcanic": [
26+
"bottom"
27+
],
28+
"land": [
29+
"bottom"
30+
],
31+
"uplift": [
32+
"bottom"
33+
]
34+
}
35+
},
36+
"generator": {
37+
"type": "minecraft:noise",
38+
"settings": "tfg:moon_noise",
39+
"biome_source": {
40+
"type": "minecraft:multi_noise",
41+
"biomes": [
42+
{
43+
"biome": "tfg:moon/lunar_lights_dense",
44+
"parameters": {
45+
"temperature": 0,
46+
"humidity": 0,
47+
"continentalness": [ 0.4, 1 ],
48+
"erosion": 0,
49+
"weirdness": [ 0.4, 1 ],
50+
"depth": 0,
51+
"offset": 0
52+
}
53+
},
54+
{
55+
"biome": "tfg:moon/lunar_lights_sparse",
56+
"parameters": {
57+
"temperature": 0,
58+
"humidity": 0,
59+
"continentalness": [ 0.2, 0.4 ],
60+
"erosion": 0,
61+
"weirdness": [ 0.2, 0.4 ],
62+
"depth": 0,
63+
"offset": 0
64+
}
65+
},
66+
{
67+
"biome": "tfg:moon/lunar_asurine_dense",
68+
"parameters": {
69+
"temperature": 0,
70+
"humidity": 0,
71+
"continentalness": [ 0.4, 1 ],
72+
"erosion": 0,
73+
"weirdness": [ -1, -0.4 ],
74+
"depth": 0,
75+
"offset": 0
76+
}
77+
},
78+
{
79+
"biome": "tfg:moon/lunar_asurine_sparse",
80+
"parameters": {
81+
"temperature": 0,
82+
"humidity": 0,
83+
"continentalness": [ 0.2, 0.4 ],
84+
"erosion": 0,
85+
"weirdness": [ -0.4, -0.2 ],
86+
"depth": 0,
87+
"offset": 0
88+
}
89+
},
90+
{
91+
"biome": "tfg:moon/lunar_plains",
92+
"parameters": {
93+
"temperature": 0,
94+
"humidity": -0.1,
95+
"continentalness": [ -0.2, 0.2 ],
96+
"erosion": 0,
97+
"weirdness": [ -0.2, 0.2 ],
98+
"depth": 0,
99+
"offset": 0
100+
}
101+
},
102+
{
103+
"biome": "tfg:moon/lunar_sands",
104+
"parameters": {
105+
"temperature": 0,
106+
"humidity": 0.2,
107+
"continentalness": [ -0.2, 0.2 ],
108+
"erosion": 0,
109+
"weirdness": [ -0.2, 0.2 ],
110+
"depth": 0,
111+
"offset": 0
112+
}
113+
},
114+
{
115+
"biome": "tfg:moon/lunar_corals_sparse",
116+
"parameters": {
117+
"temperature": 0,
118+
"humidity": 0,
119+
"continentalness": [ -0.4, -0.2 ],
120+
"erosion": 0,
121+
"weirdness": [ -0.4, -0.2 ],
122+
"depth": 0,
123+
"offset": 0
124+
}
125+
},
126+
{
127+
"biome": "tfg:moon/lunar_corals_dense",
128+
"parameters": {
129+
"temperature": 0,
130+
"humidity": 0,
131+
"continentalness": [ -1, -0.4 ],
132+
"erosion": 0,
133+
"weirdness": [ -1, -0.4 ],
134+
"depth": 0,
135+
"offset": 0
136+
}
137+
},
138+
{
139+
"biome": "tfg:moon/lunar_chorus_sparse",
140+
"parameters": {
141+
"temperature": 0,
142+
"humidity": 0,
143+
"continentalness": [ -0.4, -0.2 ],
144+
"erosion": 0,
145+
"weirdness": [ 0.2, 0.4 ],
146+
"depth": 0,
147+
"offset": 0
148+
}
149+
},
150+
{
151+
"biome": "tfg:moon/lunar_chorus_dense",
152+
"parameters": {
153+
"temperature": 0,
154+
"humidity": 0,
155+
"continentalness": [ -1, -0.4 ],
156+
"erosion": 0,
157+
"weirdness": [ 0.4, 1 ],
158+
"depth": 0,
159+
"offset": 0
160+
}
127161
}
128-
}
129-
]
162+
]
163+
}
130164
}
131165
}
132166
}

kubejs/server_scripts/tfg/events.chunks.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ const $HeightMap = Java.loadClass("net.minecraft.world.level.levelgen.Heightmap"
55

66
const ROCK_LAYER_HEIGHT = 40;
77

8+
// Bare minimum
9+
TFCEvents.createChunkDataProvider('moon', event => {
10+
var aquifer = [];
11+
let i = 0;
12+
while (i < 16) {
13+
aquifer.push(32);
14+
i++;
15+
}
16+
var heights = [];
17+
for (let x = 0 ; x < 16 ; x++) {
18+
for (let z = 0 ; z < 16 ; z++) {
19+
heights[x + 16 * z] = 80;
20+
}
21+
}
22+
23+
event.partial((data, chunk) => {
24+
data.generatePartial(0, 0, 0, 0, 0)
25+
})
26+
event.full((data, chunk) => {
27+
data.generateFull(heights, aquifer)
28+
})
29+
event.rocks((x, y, z, surfaceY, cache, rockLayers) => {
30+
return rockLayers.sampleAtLayer(0, 0)
31+
})
32+
})
33+
834
TFCEvents.createChunkDataProvider('mars', event => {
935

1036
const rain = TFC.misc.lerpFloatLayer(0, 0, 0, 0);

0 commit comments

Comments
 (0)