Update registered spawneggs

master
Jordan Irwin 2021-05-05 17:22:26 -07:00
parent c82459ef96
commit 5f5d8827ef
2 changed files with 40 additions and 35 deletions

View File

@ -40,49 +40,54 @@ if core.get_modpath("spawneggs") then
end end
-- Sheep spawnegg
if core.get_modpath("sheep") and core.get_modpath("wool") then
asm.addEgg("sheep", "creatures:sheep", "group:wool")
end
-- Chicken spawnegg -- Chicken spawnegg
if core.get_modpath("chicken") then if core.registered_entities["creatures:chicken"] then
asm.addEgg("chicken", "creatures:chicken", "antum:feather") asm.addEgg({
name = "chicken",
spawn = "creatures:chicken",
ingredients = "antum:feather",
})
end end
-- cow -- cow
if core.get_modpath("mobs_animal") and core.registered_items["mobs:bucket_milk"] then if core.registered_entities["mobs_animal:cow"] and core.registered_items["mobs:bucket_milk"] then
asm.addEgg("cow", "mobs_animal:cow", "mobs:bucket_milk") asm.addEgg({
name = "cow",
spawn = "mobs_animal:cow",
ingredients = "mobs:bucket_milk",
})
end end
-- Oerrki spawnegg -- spider (needs ingredient)
if core.get_modpath("oerkki") and core.registered_items["default:obsidian"] then if core.registered_entities["mobs:spider"] then
asm.addEgg("oerkki", "creatures:oerkki", "default:obsidian") asm.addEgg({
name = "spider",
spawn = "mobs:spider",
})
end end
local mobs_monster = core.get_modpath("mobs_monster") ~= nil local mobs_monster = {
{"dirt_monster", "mobs:dirt_monster", "default:dirt"},
{"mese_monster", "mobs:mese_monster", "default:mese"},
{"sand_monster", "mobs:sand_monster", "default:sand"},
{"stone_monster", "mobs_monster:stone_monster", "default:stone"},
{"tree_monster", "mobs:tree_monster", "default:sapling"},
{"dungeon_master", "mobs:dungeon_master"},
}
-- mobs_redo monsters for _, mob in ipairs(mobs_monster) do
if mobs_monster and core.global_exists("default") then local monster = mob[1]
-- dirt monster local spawn = mob[2]
asm.addEgg("dirt_monster", "mobs_monster:dirt_monster", "default:dirt") local ingredients = mob[3]
-- mese monster if not ingredients then
asm.addEgg("mese_monster", "mobs_monster:mese_monster", "default:mese") if core.registered_entities[spawn] then
asm.addEgg({name=monster, spawn=spawn})
-- sand monster end
asm.addEgg("sand_monster", "mobs_monster:sand_monster", "default:sand") else
if core.registered_entities[spawn] and core.registered_items[ingredients] then
-- tree monster asm.addEgg({name=monster, spawn=spawn, ingredients=ingredients})
asm.addEgg("tree_monster", "mobs_monster:tree_monster", "default:sapling") end
end
-- dungeon master (needs ingredient)
asm.addEgg("dungeon_master", "mobs_monster:dungeon_master")
-- spider (needs ingredient & texture, disabled)
--asm.addEgg("spider", "mobs_monster:spider")
-- stone monster (disabled: too graphic)
--asm.addEgg("stone_monster", "mobs_monster:stone_monster", "default:stone")
end end

View File

@ -4,4 +4,4 @@ description = Spawneggs for the Antum game
license = MIT license = MIT
version = 0.1 version = 0.1
depends = antum, asm_spawneggs depends = antum, asm_spawneggs
optional_depends = default, wool, sheep, chicken, mobs_animal, oerkki optional_depends = default, wool, cmer_chicken, mobs_animal, spider, dirt_monster, mese_monster, sand_monster, tree_monster, dungeon_master