mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 02:50:25 +01:00
Add Slimes mobs
- Lava Slimes spawn in Lava sources - Green Slimes spawn in Acid sources - Big Slimes splits into Medium Slimes who splits in small Slimes
This commit is contained in:
parent
6383d5eca5
commit
a04573b271
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
mesecons_materials?
|
||||||
|
@ -22,10 +22,26 @@ dofile(minetest.get_modpath("mobs").."/sandmonster.lua") -- PilzAdam
|
|||||||
dofile(minetest.get_modpath("mobs").."/stonemonster.lua") -- PilzAdam
|
dofile(minetest.get_modpath("mobs").."/stonemonster.lua") -- PilzAdam
|
||||||
dofile(minetest.get_modpath("mobs").."/treemonster.lua") -- PilzAdam
|
dofile(minetest.get_modpath("mobs").."/treemonster.lua") -- PilzAdam
|
||||||
dofile(minetest.get_modpath("mobs").."/wolf.lua") -- PilzAdam
|
dofile(minetest.get_modpath("mobs").."/wolf.lua") -- PilzAdam
|
||||||
dofile(minetest.get_modpath("mobs").."/lava_flan.lua") -- Zeg9
|
--dofile(minetest.get_modpath("mobs").."/lava_flan.lua") -- Zeg9 --Remplaced by Lava Slime
|
||||||
dofile(minetest.get_modpath("mobs").."/mese_monster.lua") -- Zeg9
|
dofile(minetest.get_modpath("mobs").."/mese_monster.lua") -- Zeg9
|
||||||
dofile(minetest.get_modpath("mobs").."/spider.lua") -- AspireMint
|
dofile(minetest.get_modpath("mobs").."/spider.lua") -- AspireMint
|
||||||
|
|
||||||
|
-- Migration to Mobs Redo API by TenPlus1
|
||||||
|
|
||||||
|
-- load mod files
|
||||||
|
dofile(minetest.get_modpath("slimes").."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
||||||
|
dofile(minetest.get_modpath("slimes").."/lavaslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
||||||
|
|
||||||
|
-- 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
|
||||||
|
|
||||||
-- NPC
|
-- NPC
|
||||||
dofile(minetest.get_modpath("mobs").."/npc.lua") -- TenPlus1
|
dofile(minetest.get_modpath("mobs").."/npc.lua") -- TenPlus1
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||||||
jump = true,
|
jump = true,
|
||||||
-- step = 2, (c'était pas mal, voir comment faire pour le remettre comme ça ?)
|
-- step = 2, (c'était pas mal, voir comment faire pour le remettre comme ça ?)
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
floats = 0,
|
floats = 1,
|
||||||
-- chance of dropping lava orb when dead
|
-- chance of dropping lava orb when dead
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:lava_orb",
|
{name = "mobs:lava_orb",
|
||||||
@ -51,6 +51,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||||||
run_start = 20, run_end = 28,
|
run_start = 20, run_end = 28,
|
||||||
punch_start = 20, punch_end = 28,
|
punch_start = 20, punch_end = 28,
|
||||||
},
|
},
|
||||||
|
-- do things when die
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
minetest.set_node(pos, {name="fire:basic_flame"})
|
minetest.set_node(pos, {name="fire:basic_flame"})
|
||||||
end,
|
end,
|
||||||
|
@ -46,7 +46,7 @@ mobs:register_mob("mobs:stone_monster", {
|
|||||||
},
|
},
|
||||||
-- damaged by
|
-- damaged by
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 0,
|
lava_damage = 0
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
-- model animation
|
-- model animation
|
||||||
animation = {
|
animation = {
|
||||||
|
Loading…
Reference in New Issue
Block a user