mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 05:50:31 +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
|
||||
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").."/treemonster.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").."/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
|
||||
dofile(minetest.get_modpath("mobs").."/npc.lua") -- TenPlus1
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||
jump = true,
|
||||
-- step = 2, (c'était pas mal, voir comment faire pour le remettre comme ça ?)
|
||||
view_range = 16,
|
||||
floats = 0,
|
||||
floats = 1,
|
||||
-- chance of dropping lava orb when dead
|
||||
drops = {
|
||||
{name = "mobs:lava_orb",
|
||||
|
@ -51,6 +51,7 @@ mobs:register_mob("mobs:lava_flan", {
|
|||
run_start = 20, run_end = 28,
|
||||
punch_start = 20, punch_end = 28,
|
||||
},
|
||||
-- do things when die
|
||||
on_die = function(self, pos)
|
||||
minetest.set_node(pos, {name="fire:basic_flame"})
|
||||
end,
|
||||
|
|
|
@ -46,7 +46,7 @@ mobs:register_mob("mobs:stone_monster", {
|
|||
},
|
||||
-- damaged by
|
||||
water_damage = 0,
|
||||
lava_damage = 0,
|
||||
lava_damage = 0
|
||||
light_damage = 0,
|
||||
-- model animation
|
||||
animation = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user