Woodland cabin mob spawning

This commit is contained in:
cora 2022-07-12 00:32:53 +02:00
parent df2934c548
commit 33739dc5af

@ -17,6 +17,23 @@ mcl_structures.register_structure("woodland_cabin",{
modpath.."/schematics/mcl_structures_woodland_cabin.mts", modpath.."/schematics/mcl_structures_woodland_cabin.mts",
modpath.."/schematics/mcl_structures_woodland_outpost.mts", modpath.."/schematics/mcl_structures_woodland_outpost.mts",
}, },
after_place = function(p,def,pr)
local spawnon = {"mcl_deepslate:deepslate","mcl_wool:white_carpet","mcl_wool:white_carpet"}
for i=1,5 do
local vindicator = minetest.find_node_near(p,25,spawnon)
if vindicator then
minetest.add_entity(vindicator,"mobs_mc:vindicator")
end
end
local evoker = minetest.find_node_near(p,25,spawnon)
if evoker then
minetest.add_entity(evoker,"mobs_mc:evoker")
end
local parrot = minetest.find_node_near(p,25,{"mcl_heads:wither_skeleton"})
if parrot then
minetest.add_entity(parrot,"mobs_mc:parrot")
end
end,
loot = { loot = {
["mcl_chests:chest_small" ] ={{ ["mcl_chests:chest_small" ] ={{
stacks_min = 3, stacks_min = 3,