recipe fixe for default items

This commit is contained in:
Juraj Vajda 2016-09-14 20:36:37 +02:00
parent be4979dba8
commit 768fedc01a
6 changed files with 22 additions and 17 deletions

View File

@ -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

View File

@ -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"
}
},

View File

@ -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)

View File

@ -1,3 +1,3 @@
SPAWN_PYRAMIDS = true
SPAWNERS_GENERATE = false
CHESTS_GENERATE = false
CHESTS_GENERATE = true

View File

@ -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)

View File

@ -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"},
}
})