diff --git a/API.lua b/API.lua index cad871d..b48f2a4 100644 --- a/API.lua +++ b/API.lua @@ -26,9 +26,9 @@ for k, mob_mod in ipairs(ENABLED_MODS) do minetest.register_craft({ output = "spawners:"..mob_mod.."_"..mob.name.."_spawner", recipe = { - {"default:diamondblock", "fake_fire:flint_and_steel", "default:diamondblock"}, - {"xpanes:bar", mob_egg, "xpanes:bar"}, - {"default:diamondblock", "xpanes:bar", "default:diamondblock"}, + {"default:diamondblock", "fire:flint_and_steel", "default:diamondblock"}, + {"xpanes:bar_flat", mob_egg, "xpanes:bar_flat"}, + {"default:diamondblock", "xpanes:bar_flat", "default:diamondblock"}, } }) end @@ -66,6 +66,7 @@ function spawners.start_spawning(pos, how_many, mob_name, mod_prefix, sound_cust end for i=1,how_many do + pos.y = pos.y+1 local obj = minetest.add_entity(pos, mod_prefix..":"..mob_name) if obj then diff --git a/config.lua b/config.lua index 32ace9b..782cc56 100644 --- a/config.lua +++ b/config.lua @@ -133,7 +133,7 @@ MOBS_PROPS = { dummy_offset=0.05, dummy_mesh="mobs_tree_monster.b3d", dummy_texture={"mobs_tree_monster.png"}, - night_only=false, + night_only=true, sound_custom="mobs_treemonster" } }, diff --git a/pyramids.lua b/pyramids.lua index 277d875..beabee5 100644 --- a/pyramids.lua +++ b/pyramids.lua @@ -52,7 +52,7 @@ function pyramids.fill_chest(pos) inv:set_size("main", 8*4) - if math.random(1,10) < 5 then return end + -- if math.random(1,10) < 5 then return end for i=0,2,1 do local stuff = chest_stuff[math.random(1,#chest_stuff)] @@ -159,7 +159,11 @@ local function make(pos) make_entrance({x=pos.x,y=pos.y, z=pos.z}) end -local perl1 = {SEED1 = 9130, OCTA1 = 3, PERS1 = 0.5, SCAL1 = 250} -- Values should match minetest mapgen V6 desert noise. +local perl1 = {SEED1 = 9130, OCTA1 = 3, PERS1 = 0.5, SCAL1 = 250} -- Values should match minetest mapgen V6 desert noise + +if minetest.get_modpath("simplev7") ~= nil then + perl1 = {SEED1 = 5349, OCTA1 = 3, PERS1 = 0.7, SCAL1 = 500} +end local function hlp_fnct(pos, name) local n = minetest.get_node_or_nil(pos) diff --git a/settings.txt b/settings.txt index fc019d3..009a9a7 100644 --- a/settings.txt +++ b/settings.txt @@ -1,3 +1,3 @@ SPAWN_PYRAMIDS = true SPAWNERS_GENERATE = false -CHESTS_GENERATE = false +CHESTS_GENERATE = true diff --git a/spawners_mobs.lua b/spawners_mobs.lua index 64e5148..aa53cfa 100644 --- a/spawners_mobs.lua +++ b/spawners_mobs.lua @@ -325,7 +325,7 @@ function spawners.create(mob_name, mod_prefix, size, offset, mesh, texture, nigh "spawners:"..mod_prefix.."_"..mob_name.."_spawner_waiting_env" }, neighbors = {"air"}, - interval = 20.0, + interval = 10.0, chance = 6, catch_up = false, action = function(pos, node, active_object_count, active_object_count_wider) diff --git a/spawners_ores.lua b/spawners_ores.lua index dd043ca..8ecfede 100644 --- a/spawners_ores.lua +++ b/spawners_ores.lua @@ -310,26 +310,26 @@ spawners.create_ore("stone_with_copper", "", {x=.33,y=.33}, 0, {"default_stone.p minetest.register_craft({ output = "spawners:stone_with_gold_spawner", recipe = { - {"default:diamondblock", "fake_fire:flint_and_steel", "default:diamondblock"}, - {"xpanes:bar", "default:goldblock", "xpanes:bar"}, - {"default:diamondblock", "xpanes:bar", "default:diamondblock"}, + {"default:diamondblock", "fire:flint_and_steel", "default:diamondblock"}, + {"xpanes:bar_flat", "default:goldblock", "xpanes:bar_flat"}, + {"default:diamondblock", "xpanes:bar_flat", "default:diamondblock"}, } }) minetest.register_craft({ output = "spawners:stone_with_iron_spawner", recipe = { - {"default:diamondblock", "fake_fire:flint_and_steel", "default:diamondblock"}, - {"xpanes:bar", "default:steelblock", "xpanes:bar"}, - {"default:diamondblock", "xpanes:bar", "default:diamondblock"}, + {"default:diamondblock", "fire:flint_and_steel", "default:diamondblock"}, + {"xpanes:bar_flat", "default:steelblock", "xpanes:bar_flat"}, + {"default:diamondblock", "xpanes:bar_flat", "default:diamondblock"}, } }) minetest.register_craft({ output = "spawners:stone_with_copper_spawner", recipe = { - {"default:diamondblock", "fake_fire:flint_and_steel", "default:diamondblock"}, - {"xpanes:bar", "default:copperblock", "xpanes:bar"}, - {"default:diamondblock", "xpanes:bar", "default:diamondblock"}, + {"default:diamondblock", "fire:flint_and_steel", "default:diamondblock"}, + {"xpanes:bar_flat", "default:copperblock", "xpanes:bar_flat"}, + {"default:diamondblock", "xpanes:bar_flat", "default:diamondblock"}, } })