mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-20 01:51:06 +01:00
11 lines
352 B
Lua
11 lines
352 B
Lua
|
function mobs:spawn_abm_check(pos, node, name)
|
||
|
if (node.name == "air") then
|
||
|
return true
|
||
|
elseif (node.name == "mcl_core:mycelium" or node.name == "mcl_core:mycelium_snow") and minetest.registered_entities[name].type == "monster" then
|
||
|
return false
|
||
|
elseif minetest.get_item_group(node.name, "opaque") ~= 0 then
|
||
|
return false
|
||
|
end
|
||
|
return true
|
||
|
end
|