mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 22:10:31 +01:00
95 lines
3.3 KiB
Lua
Executable File
95 lines
3.3 KiB
Lua
Executable File
-- Mob Api
|
|
|
|
dofile(minetest.get_modpath("mobs").."/api.lua")
|
|
|
|
-- Animals
|
|
|
|
dofile(minetest.get_modpath("mobs").."/chicken.lua") -- JKmurray
|
|
dofile(minetest.get_modpath("mobs").."/cow.lua") -- KrupnoPavel
|
|
dofile(minetest.get_modpath("mobs").."/rat.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/sheep.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/warthog.lua") -- KrupnoPavel
|
|
dofile(minetest.get_modpath("mobs").."/bee.lua") -- KrupnoPavel
|
|
dofile(minetest.get_modpath("mobs").."/bunny.lua") -- ExeterDad
|
|
dofile(minetest.get_modpath("mobs").."/kitten.lua") -- Jordach/BFD
|
|
dofile(minetest.get_modpath("mobs").."/goat.lua") -- ???
|
|
|
|
-- Monsters
|
|
|
|
dofile(minetest.get_modpath("mobs").."/dirtmonster.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/dungeonmaster.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/oerkki.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/sandmonster.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/stonemonster.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/treemonster.lua") -- PilzAdam
|
|
dofile(minetest.get_modpath("mobs").."/wolf.lua") -- PilzAdam
|
|
--dofile(minetest.get_modpath("mobs").."/dog-can-help.lua") -- ???
|
|
dofile(minetest.get_modpath("mobs").."/dog.lua") -- CProgrammerRU
|
|
--dofile(minetest.get_modpath("mobs").."/lava_flan.lua") -- Zeg9 --Remplaced by Lava Slimes
|
|
dofile(minetest.get_modpath("mobs").."/mese_monster.lua") -- Zeg9
|
|
dofile(minetest.get_modpath("mobs").."/spider.lua") -- AspireMint
|
|
dofile(minetest.get_modpath("mobs").."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
|
dofile(minetest.get_modpath("mobs").."/lavaslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
|
dofile(minetest.get_modpath("mobs").."/zombie.lua") -- ???
|
|
dofile(minetest.get_modpath("mobs").."/yeti.lua") -- ???
|
|
dofile(minetest.get_modpath("mobs").."/minotaur.lua") -- Kalabasa
|
|
|
|
-- begin slimes mobs compatibility changes
|
|
-- cannot find mesecons?, craft glue instead
|
|
if not minetest.get_modpath("mesecons_materials") then
|
|
minetest.register_craftitem(":mesecons_materials:glue", {
|
|
image = "jeija_glue.png",
|
|
description = "Glue",
|
|
})
|
|
end
|
|
|
|
if minetest.setting_get("log_mods") then minetest.log("action", "Slimes loaded") end
|
|
-- end slimes mobs compatibility changes
|
|
|
|
-- NPC
|
|
dofile(minetest.get_modpath("mobs").."/npc.lua") -- TenPlus1
|
|
|
|
-- Creeper (fast impl by davedevils)
|
|
dofile(minetest.get_modpath("mobs").."/creeper.lua")
|
|
|
|
-- Meat & Cooked Meat
|
|
|
|
minetest.register_craftitem("mobs:meat_raw", {
|
|
description = "Raw Meat",
|
|
inventory_image = "mobs_meat_raw.png",
|
|
on_use = minetest.item_eat(3),
|
|
})
|
|
|
|
minetest.register_craftitem("mobs:meat", {
|
|
description = "Meat",
|
|
inventory_image = "mobs_meat.png",
|
|
on_use = minetest.item_eat(8),
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "mobs:meat",
|
|
recipe = "mobs:meat_raw",
|
|
cooktime = 5,
|
|
})
|
|
|
|
-- Golden Lasso
|
|
|
|
minetest.register_tool("mobs:magic_lasso", {
|
|
description = "Magic Lasso (right-click animal to put in inventory)",
|
|
inventory_image = "mobs_magic_lasso.png",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "mobs:magic_lasso",
|
|
recipe = {
|
|
{"farming:string", "default:gold_lump", "farming:string"},
|
|
{"default:gold_lump", "default:diamondblock", "default:gold_lump"},
|
|
{"farming:string", "default:gold_lump", "farming:string"},
|
|
}
|
|
})
|
|
|
|
if minetest.setting_get("log_mods") then
|
|
minetest.log("action", "mobs loaded")
|
|
end
|