Register egg if asm_spawneggs available

master
Jordan Irwin 2021-05-05 16:05:00 -07:00
parent e521288ef4
commit 539e4cdef8
3 changed files with 9 additions and 1 deletions

View File

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

View File

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

BIN
textures/shark_spawnegg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B