mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 10:20:45 +01:00
testing default tunnel decorators
This commit is contained in:
parent
2501ff14fc
commit
6911ccb07d
21
biomes.lua
21
biomes.lua
@ -46,6 +46,26 @@ local test_biome_floor = function(area, data, ai, vi, bi, param2_data)
|
||||
data[vi] = c_cavern_fungi
|
||||
elseif subterrane:vertically_consistent_random(vi, area) < 0.002 then
|
||||
subterrane:stalagmite(bi, area, data, 6, 15, c_stone, c_stone, c_stone)
|
||||
elseif math.random() < 0.002 then
|
||||
dfcaverns.spawn_tower_cap_vm(bi, area, data)
|
||||
end
|
||||
end
|
||||
|
||||
local test_biome_cave_floor = function(area, data, ai, vi, bi, param2_data)
|
||||
if data[bi] ~= c_stone then
|
||||
return
|
||||
end
|
||||
|
||||
if math.random() < 0.25 then
|
||||
data[bi] = c_dirt
|
||||
elseif math.random() < 0.25 then
|
||||
data[bi] = c_dirt_moss
|
||||
end
|
||||
|
||||
if math.random() < 0.1 then
|
||||
--data[vi] = c_plump_helmet
|
||||
--param2_data[vi] = math.random(0,3)
|
||||
data[vi] = c_cavern_fungi
|
||||
end
|
||||
end
|
||||
|
||||
@ -68,4 +88,5 @@ minetest.register_biome({
|
||||
_subterrane_ceiling_decor = test_biome_ceiling,
|
||||
_subterrane_floor_decor = test_biome_floor,
|
||||
_subterrane_fill_node = c_air,
|
||||
_subterrane_cave_floor_decor = test_biome_cave_floor,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user