mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add test ore (coal)
This commit is contained in:
parent
36eed38b4c
commit
d534207deb
9 changed files with 31 additions and 10 deletions
|
|
@ -8,6 +8,12 @@ biomes = json.parse(file.read("core:generators/default/biomes.json"))
|
|||
|
||||
function place_structures(x, z, w, d, seed, hmap)
|
||||
local placements = {}
|
||||
for i=1,10 do
|
||||
local sx = math.random() * w
|
||||
local sz = math.random() * d
|
||||
local sy = math.random() * hmap:at(sx, sz)*256 - 6
|
||||
table.insert(placements, {"coal_ore0", {sx, sy, sz}, math.random()*4})
|
||||
end
|
||||
return placements
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue