This commit is contained in:
Kacper Kostka
2023-01-31 05:45:15 +01:00
parent 8df420796a
commit 688f73e4a3
7 changed files with 128 additions and 33 deletions

View File

@@ -1,3 +1,4 @@
minetest.register_alias("mapgen_stone", "amogus_blocks:stone")
minetest.register_alias("mapgen_dirt", "amogus_blocks:dirt")
minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
@@ -17,24 +18,6 @@ minetest.register_biome({
heat_point = 50,
humidity_point = 50,
})
minetest.register_biome({
name = "amogus_biome",
--node_dust = "amogus_blocks:stone",
node_top = "amogus_blocks:grass",
depth_top = 1,
node_filler = "amogus_blocks:dirt",
depth_filler = 1,
node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1,
node_water = "amogus_blocks:water",
node_river_water = "amogus_blocks:water",
y_max = 31000,
y_min = 1,
heat_point = 50,
humidity_point = 50,
})
minetest.register_biome({
name = "amogus_green_biome",
--node_dust = "amogus_blocks:stone",
@@ -52,6 +35,24 @@ minetest.register_biome({
heat_point = 100,
humidity_point = 100,
})
minetest.register_biome({
name = "amogus_biome",
--node_dust = "amogus_blocks:stone",
node_top = "amogus_blocks:grass",
depth_top = 1,
node_filler = "amogus_blocks:dirt",
depth_filler = 1,
node_stone = "amogus_blocks:stone",
node_water_top = "amogus_blocks:water",
depth_water_top = 1,
node_water = "amogus_blocks:water",
node_river_water = "amogus_blocks:water",
y_max = 31000,
y_min = 1,
heat_point = 50,
humidity_point = 50,
})
minetest.register_ore({
ore_type = "scatter",
ore = "amogus_blocks:sussium_ore",
@@ -461,4 +462,68 @@ minetest.register_on_generated(function(minp, maxp, seed)
--minetest.sound_play("amogus_sound", { pos = pos,gain = 1.0,max_hear_distance = 5})
end
--end
end)
end)
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:sand"},
sidelen = 16,
fill_ratio = 0.0001,
y_max = 31000,
y_min = 1,
biomes = {"amogus_beach"},
schematic = "/schematics/sand_house_1.mts",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:sand"},
sidelen = 16,
fill_ratio = 0.0001,
y_max = 31000,
y_min = 1,
biomes = {"amogus_beach"},
schematic = "/schematics/sand_house_2.mts",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:sand"},
sidelen = 16,
fill_ratio = 0.0001,
y_max = 31000,
y_min = 1,
biomes = {"amogus_beach"},
schematic = "/schematics/sand_house_3.mts",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"amogus_blocks:grass_green"},
sidelen = 16,
fill_ratio = 0.0001,
y_max = 31000,
y_min = 1,
biomes = {"green_biome"},
schematic = "/schematics/STATUE_GIANT.mts",
})
minetest.register_on_generated(function(minp, maxp, seed)
for x = minp.x, maxp.x do
for y = minp.y, maxp.y do
for z = minp.z, maxp.z do
local p = {x=x, y=y, z=z}
if minetest.get_node(p).name == "default:water_source" then
minetest.set_node(p, {name="default:water_source", param2=0})
end
end
end
end
end)