add debug world generator visualization

This commit is contained in:
MihailRis
2024-09-30 15:14:34 +03:00
parent 88752806e6
commit 75d66b644b
11 changed files with 116 additions and 9 deletions
@@ -1,9 +1,8 @@
BLOCKS_PER_CHUNK = 65536
local _, dir = parse_path(__DIR__)
ores = file.read_combined_list(dir.."/ores.json")
local function place_ores(placements, x, z, w, d, seed, hmap, chunk_height)
local BLOCKS_PER_CHUNK = w * d * chunk_height
for _, ore in ipairs(ores) do
local count = BLOCKS_PER_CHUNK / ore.rarity