Compare commits

...

5 Commits

Author SHA1 Message Date
BlockMen 64bfafc488 Don't generate junglegras (fixes #7)
Thanks to @everamzah for pointing out.
2015-12-20 17:28:25 +01:00
BlockMen 24ced368a6 Fix warnings caused by stupid engine change
Thanks for reporting to @LNJplus
Special thanks to @kwolekr and commit

8eb9cebdd0
2015-12-20 15:59:47 +01:00
BlockMen c22cb53dcd Update changelog for pre-release 2015-11-24 17:50:04 +01:00
BlockMen 4dd0c61676 Fix zombies not spawning 2015-11-24 17:13:55 +01:00
BlockMen f7ed6e3c16 Fix missing MT 0.4.13 mapgen alias 2015-11-24 17:09:17 +01:00
4 changed files with 60 additions and 52 deletions

View File

@ -9,4 +9,15 @@ Version 0.3:
- Added beds (currently no way to get wool for crafting) - Added beds (currently no way to get wool for crafting)
- Chests in ruins (and coffins) cant be opened anymore (items are dropped when cracked) - Chests in ruins (and coffins) cant be opened anymore (items are dropped when cracked)
- New formspec background - New formspec background
- Many, many smaller fixes and tweaks - Many, many smaller fixes and tweaks
Version 0.5 BETA:
-----------------
- Added mineralsand back (an restored original wasteland's sand texture)
- Made torches 3D
- Reduced water range
- Updated hud and hunger
- Removed remains of bronze (by andersje)
- A lot of cleanup (code, textures)
- Relicensed to GPL 3.0

View File

@ -46,7 +46,7 @@ if not minetest.setting_getbool("only_peaceful_mobs") then
if ll < -1 then if ll < -1 then
return return
end end
if not minetest.get_node(pos).walkable then if minetest.get_node(pos).name ~= "air" then
return return
end end
pos.y = pos.y + 1 pos.y = pos.y + 1

View File

@ -35,10 +35,7 @@ local z_sound_normal = "creatures_zombie"
local z_sound_hit = "creatures_zombie_hit" local z_sound_hit = "creatures_zombie_hit"
local z_sound_dead = "creatures_zombie_death" local z_sound_dead = "creatures_zombie_death"
creatures.z_spawn_nodes = { creatures.z_spawn_nodes = {"default:dry_dirt","default:dirt","default:mossycobble", "default:stone","default:dirt","default:desert_sand"}
"default:dirt_with_grass","default:dirt","default:mossycobble",
"default:stone","default:dirt","default:desert_sand"
}
creatures.z_spawner_range = 17 creatures.z_spawner_range = 17
creatures.z_spawner_max_mobs = 6 creatures.z_spawner_max_mobs = 6

View File

@ -12,6 +12,7 @@ minetest.register_alias("mapgen_jungletree", "air")
minetest.register_alias("mapgen_jungleleaves", "air") minetest.register_alias("mapgen_jungleleaves", "air")
minetest.register_alias("mapgen_apple", "air") minetest.register_alias("mapgen_apple", "air")
minetest.register_alias("mapgen_water_source", "air") minetest.register_alias("mapgen_water_source", "air")
minetest.register_alias("mapgen_river_water_source", "air")
minetest.register_alias("mapgen_dirt", "default:dry_dirt") minetest.register_alias("mapgen_dirt", "default:dry_dirt")
minetest.register_alias("mapgen_sand", "default:sand") minetest.register_alias("mapgen_sand", "default:sand")
minetest.register_alias("mapgen_gravel", "default:gravel") minetest.register_alias("mapgen_gravel", "default:gravel")
@ -20,7 +21,7 @@ minetest.register_alias("mapgen_lava_source", "default:lava_source")
minetest.register_alias("mapgen_cobble", "default:cobble") minetest.register_alias("mapgen_cobble", "default:cobble")
minetest.register_alias("mapgen_mossycobble", "default:mossycobble") minetest.register_alias("mapgen_mossycobble", "default:mossycobble")
minetest.register_alias("mapgen_dirt_with_grass", "default:dry_dirt") minetest.register_alias("mapgen_dirt_with_grass", "default:dry_dirt")
minetest.register_alias("mapgen_junglegrass", "default:junglegrass") minetest.register_alias("mapgen_junglegrass", "air")
minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal") minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal")
minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron") minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron")
minetest.register_alias("mapgen_mese", "default:stone") minetest.register_alias("mapgen_mese", "default:stone")
@ -39,8 +40,8 @@ minetest.register_ore({
clust_scarcity = 8*8*8, clust_scarcity = 8*8*8,
clust_num_ores = 8, clust_num_ores = 8,
clust_size = 3, clust_size = 3,
height_min = -31000, y_min = -31000,
height_max = 64, y_max = 64,
}) })
minetest.register_ore({ minetest.register_ore({
@ -50,8 +51,8 @@ minetest.register_ore({
clust_scarcity = 24*24*24, clust_scarcity = 24*24*24,
clust_num_ores = 27, clust_num_ores = 27,
clust_size = 6, clust_size = 6,
height_min = -31000, y_min = -31000,
height_max = 0, y_max = 0,
flags = "absheight", flags = "absheight",
}) })
@ -62,8 +63,8 @@ minetest.register_ore({
clust_scarcity = 12*12*12, clust_scarcity = 12*12*12,
clust_num_ores = 3, clust_num_ores = 3,
clust_size = 2, clust_size = 2,
height_min = -15, y_min = -15,
height_max = 2, y_max = 2,
}) })
minetest.register_ore({ minetest.register_ore({
@ -73,8 +74,8 @@ minetest.register_ore({
clust_scarcity = 9*9*9, clust_scarcity = 9*9*9,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 3, clust_size = 3,
height_min = -63, y_min = -63,
height_max = -16, y_max = -16,
}) })
minetest.register_ore({ minetest.register_ore({
@ -84,8 +85,8 @@ minetest.register_ore({
clust_scarcity = 7*7*7, clust_scarcity = 7*7*7,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 3, clust_size = 3,
height_min = -31000, y_min = -31000,
height_max = -64, y_max = -64,
flags = "absheight", flags = "absheight",
}) })
@ -96,8 +97,8 @@ minetest.register_ore({
clust_scarcity = 24*24*24, clust_scarcity = 24*24*24,
clust_num_ores = 27, clust_num_ores = 27,
clust_size = 6, clust_size = 6,
height_min = -31000, y_min = -31000,
height_max = -64, y_max = -64,
flags = "absheight", flags = "absheight",
}) })
@ -108,8 +109,8 @@ minetest.register_ore({
clust_scarcity = 15*15*15, clust_scarcity = 15*15*15,
clust_num_ores = 3, clust_num_ores = 3,
clust_size = 2, clust_size = 2,
height_min = -255, y_min = -255,
height_max = -64, y_max = -64,
flags = "absheight", flags = "absheight",
}) })
@ -120,8 +121,8 @@ minetest.register_ore({
clust_scarcity = 13*13*13, clust_scarcity = 13*13*13,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 3, clust_size = 3,
height_min = -31000, y_min = -31000,
height_max = -256, y_max = -256,
flags = "absheight", flags = "absheight",
}) })
@ -132,8 +133,8 @@ minetest.register_ore({
clust_scarcity = 17*17*17, clust_scarcity = 17*17*17,
clust_num_ores = 4, clust_num_ores = 4,
clust_size = 3, clust_size = 3,
height_min = -255, y_min = -255,
height_max = -128, y_max = -128,
flags = "absheight", flags = "absheight",
}) })
@ -144,8 +145,8 @@ minetest.register_ore({
clust_scarcity = 15*15*15, clust_scarcity = 15*15*15,
clust_num_ores = 4, clust_num_ores = 4,
clust_size = 3, clust_size = 3,
height_min = -31000, y_min = -31000,
height_max = -256, y_max = -256,
flags = "absheight", flags = "absheight",
}) })
@ -156,8 +157,8 @@ minetest.register_ore({
clust_scarcity = 12*12*12, clust_scarcity = 12*12*12,
clust_num_ores = 4, clust_num_ores = 4,
clust_size = 3, clust_size = 3,
height_min = -63, y_min = -63,
height_max = -16, y_max = -16,
}) })
minetest.register_ore({ minetest.register_ore({
@ -167,8 +168,8 @@ minetest.register_ore({
clust_scarcity = 9*9*9, clust_scarcity = 9*9*9,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 3, clust_size = 3,
height_min = -31000, y_min = -31000,
height_max = -64, y_max = -64,
flags = "absheight", flags = "absheight",
}) })
@ -182,8 +183,8 @@ if minetest.setting_get("mg_name") == "indev" then
clust_scarcity = 40*40*40, clust_scarcity = 40*40*40,
clust_num_ores = 8, clust_num_ores = 8,
clust_size = 3, clust_size = 3,
height_min = 100, y_min = 100,
height_max = 31000, y_max = 31000,
}) })
minetest.register_ore({ minetest.register_ore({
@ -194,8 +195,8 @@ if minetest.setting_get("mg_name") == "indev" then
clust_scarcity = 50*50*50, clust_scarcity = 50*50*50,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 2, clust_size = 2,
height_min = 10000, y_min = 10000,
height_max = 31000, y_max = 31000,
}) })
minetest.register_ore({ minetest.register_ore({
@ -205,8 +206,8 @@ if minetest.setting_get("mg_name") == "indev" then
clust_scarcity = 20*20*20, clust_scarcity = 20*20*20,
clust_num_ores = 5*5*3, clust_num_ores = 5*5*3,
clust_size = 5, clust_size = 5,
height_min = 500, y_min = 500,
height_max = 31000, y_max = 31000,
}) })
-- Underground springs -- Underground springs
@ -218,8 +219,8 @@ if minetest.setting_get("mg_name") == "indev" then
clust_scarcity = 25*25*25, clust_scarcity = 25*25*25,
clust_num_ores = 8, clust_num_ores = 8,
clust_size = 3, clust_size = 3,
height_min = -10000, y_min = -10000,
height_max = -10, y_max = -10,
}) })
minetest.register_ore({ minetest.register_ore({
@ -230,8 +231,8 @@ if minetest.setting_get("mg_name") == "indev" then
clust_scarcity = 35*35*35, clust_scarcity = 35*35*35,
clust_num_ores = 5, clust_num_ores = 5,
clust_size = 2, clust_size = 2,
height_min = -31000, y_min = -31000,
height_max = -100, y_max = -100,
}) })
end end
@ -242,8 +243,8 @@ minetest.register_ore({
clust_scarcity = 15*15*15, clust_scarcity = 15*15*15,
clust_num_ores = 64, clust_num_ores = 64,
clust_size = 5, clust_size = 5,
height_max = 0, y_max = 0,
height_min = -10, y_min = -10,
}) })
function make_dead_tree(pos, size) function make_dead_tree(pos, size)
@ -281,7 +282,7 @@ local function make_snow(min, max, data, va, rnd)
local y_max = SNOW_START + rnd local y_max = SNOW_START + rnd
if y1 == 48 then if y1 == 48 then
y_max = y1 y_max = y1
end end
for yi = max.y, y_max, -1 do for yi = max.y, y_max, -1 do
for xi = x1, x2 do for xi = x1, x2 do
for zi = z1, z2 do for zi = z1, z2 do
@ -324,7 +325,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
if not (by == -32 or by == 48) then if not (by == -32 or by == 48) then
return return
end end
local pr = PseudoRandom(seed+1) local pr = PseudoRandom(seed+1)
if by == -32 then if by == -32 then
-- dead trees -- dead trees
@ -389,7 +390,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
break break
end end
end end
if ground_y then if ground_y then
local p = {x=x,y=ground_y+1,z=z} local p = {x=x,y=ground_y+1,z=z}
local nn = minetest.get_node(p).name local nn = minetest.get_node(p).name
@ -403,13 +404,13 @@ minetest.register_on_generated(function(minp, maxp, seed)
end end
end end
end end
end end
end end
end end
--data = --data =
end end
-- snowcaps and mineral sand -- snowcaps and mineral sand
@ -431,7 +432,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
-- Generate mineral sand -- Generate mineral sand
local wait = true local wait = true
data, wait = make_minerals(minp, maxp, data, va) data, wait = make_minerals(minp, maxp, data, va)
while wait do while wait do
--wait for first manip to finish --wait for first manip to finish
end end
@ -439,11 +440,10 @@ minetest.register_on_generated(function(minp, maxp, seed)
else else
data = make_snow(minp, maxp, data, va, snow_height_rnd) data = make_snow(minp, maxp, data, va, snow_height_rnd)
end end
-- write vmanip data -- write vmanip data
vm:set_data(data) vm:set_data(data)
vm:calc_lighting() vm:calc_lighting()
vm:write_to_map(data) vm:write_to_map(data)
end) end)