World gen stuff

This commit is contained in:
2026-11-13 00:01:59 -03:00
parent e013fbe550
commit e8ca9753f5
25 changed files with 645 additions and 162 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import { load_client_mods } from "@/client/mods.ts";
import { load_mods } from "@/server/load_mods.ts";
import { load_and_check } from "@/tools/check_mods.ts";
import { pack_mod } from "@/tools/pack_mod.ts";
import { copy_dir, test_game } from "./helpers.ts";
import { copy_dir, GROUND_BLOCKS, test_game } from "./helpers.ts";
// a block for every rock and its bricks, and one more where the script can't read files, like the server's worker
const CONTENT = `
@@ -57,7 +57,7 @@ function rocks_mod(extra = "") {
write("tags/blocks/rocks/rocks.json", { format_version: 1, tag: { values: ["rocks:granite", "rocks:basalt"] } });
write("worldgen/ores.json", {
format_version: 1,
ores: [{ id: "rocks:basalt", replaces: "bworld:stone", min_y: 5, max_y: 200, scale: 0.07, threshold: 0.3 }],
ores: [{ id: "rocks:basalt", replaces: GROUND_BLOCKS, min_y: 5, max_y: 200, scale: 0.07, threshold: 0.3 }],
});
return dir;
}