mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
add debug world generator visualization
This commit is contained in:
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue