Register egg if asm_spawneggs available
parent
e521288ef4
commit
539e4cdef8
8
init.lua
8
init.lua
|
@ -151,5 +151,13 @@ local shark_def = {
|
|||
|
||||
cmer.register_mob(shark_def)
|
||||
|
||||
if core.global_exists("asm") then
|
||||
asm.addEgg({
|
||||
name = "shark",
|
||||
inventory_image = "shark_spawnegg.png",
|
||||
spawn = mobname,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mlog("action", "v" .. version_full .. " loaded")
|
||||
|
|
2
mod.conf
2
mod.conf
|
@ -6,4 +6,4 @@ author = sapier
|
|||
license = CC BY-SA 3.0
|
||||
forum = https://forum.minetest.net/viewtopic.php?t=629
|
||||
depends = cmer, default
|
||||
optional_depends = ethereal, mobs
|
||||
optional_depends = ethereal, mobs, asm_spawneggs
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 339 B |
Loading…
Reference in New Issue