mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Woodland cabin mob spawning
This commit is contained in:
parent
df2934c548
commit
33739dc5af
1 changed files with 17 additions and 0 deletions
|
@ -17,6 +17,23 @@ mcl_structures.register_structure("woodland_cabin",{
|
|||
modpath.."/schematics/mcl_structures_woodland_cabin.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 = {
|
||||
["mcl_chests:chest_small" ] ={{
|
||||
stacks_min = 3,
|
||||
|
|
Loading…
Reference in a new issue