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
@@ -11,7 +11,7 @@ import { load_worldgen } from "@/common/worldgen_loader.ts";
import { create_mod } from "@/tools/new_mod.ts";
import { PLAYER_MENU_CRAFTING, PROTOCOL_VERSION } from "@/common/protocol.ts";
import { recipe_lookup } from "@/common/mod_loader.ts";
import { container_items, copy_dir, test_game } from "./helpers.ts";
import { container_items, copy_dir, GROUND_BLOCKS, test_game } from "./helpers.ts";
// mods/bworld plus a mod made from the template, in a temp folder
function mods_with_template() {
@@ -175,7 +175,7 @@ Deno.test("mod ores generate into the block they replace", async () => {
format_version: 1,
ores: [{
id: "copper_tools:example_block",
replaces: "bworld:stone",
replaces: GROUND_BLOCKS,
min_y: 0,
max_y: 60,
scale: 0.1,