1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-17 07:50:29 +01:00

Fixed wrong adaptation from slimes to mobs

- Replaced slimes: by mobs:
This commit is contained in:
LeMagnesium 2015-04-12 12:25:33 +02:00
parent a89db53bf7
commit 81028be989
2 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@ local green_sounds = {
local green_textures = {"green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_front.png", "green_slime_sides.png"} local green_textures = {"green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_front.png", "green_slime_sides.png"}
-- register small green slime -- register small green slime
mobs:register_mob("slimes:greensmall", { mobs:register_mob("mobs:greensmall", {
type = "monster", type = "monster",
hp_min = 1, hp_max = 2, hp_min = 1, hp_max = 2,
collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25}, collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
@ -41,10 +41,10 @@ mobs:register_mob("slimes:greensmall", {
lava_damage = 10, lava_damage = 10,
light_damage = 0, light_damage = 0,
}) })
mobs:register_egg("slimes:greensmall", "Small Green Slime", "green_slime_egg.png", 1) mobs:register_egg("mobs:greensmall", "Small Green Slime", "green_slime_egg.png", 1)
-- register medium green slime -- register medium green slime
mobs:register_mob("slimes:greenmedium", { mobs:register_mob("mobs:greenmedium", {
type = "monster", type = "monster",
hp_min = 3, hp_max = 4, hp_min = 3, hp_max = 4,
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
@ -68,7 +68,7 @@ mobs:register_mob("slimes:greenmedium", {
on_die = function(self, pos) on_die = function(self, pos)
local num = math.random(2, 4) local num = math.random(2, 4)
for i=1,num do for i=1,num do
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "slimes:greensmall") minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:greensmall")
end end
end, end,
drawtype = "front", drawtype = "front",
@ -76,10 +76,10 @@ mobs:register_mob("slimes:greenmedium", {
lava_damage = 10, lava_damage = 10,
light_damage = 0, light_damage = 0,
}) })
mobs:register_egg("slimes:greenmedium", "Medium Green Slime", "green_slime_egg.png", 1) mobs:register_egg("mobs:greenmedium", "Medium Green Slime", "green_slime_egg.png", 1)
-- register big green slime -- register big green slime
mobs:register_mob("slimes:greenbig", { mobs:register_mob("mobs:greenbig", {
type = "monster", type = "monster",
hp_min = 5, hp_max = 6, hp_min = 5, hp_max = 6,
collisionbox = {-1, -1, -1, 1, 1, 1}, collisionbox = {-1, -1, -1, 1, 1, 1},
@ -103,7 +103,7 @@ mobs:register_mob("slimes:greenbig", {
on_die = function(self, pos) on_die = function(self, pos)
local num = math.random(1, 2) local num = math.random(1, 2)
for i=1,num do for i=1,num do
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "slimes:greenmedium") minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:greenmedium")
end end
end, end,
drawtype = "front", drawtype = "front",

View File

@ -29,8 +29,8 @@ dofile(minetest.get_modpath("mobs").."/spider.lua") -- AspireMint
-- Migration to Mobs Redo API by TenPlus1 -- Migration to Mobs Redo API by TenPlus1
-- load mod files -- load mod files
dofile(minetest.get_modpath("slimes").."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1 dofile(minetest.get_modpath("mobs").."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1
dofile(minetest.get_modpath("slimes").."/lavaslimes.lua") -- davedevils/TomasJLuis/TenPlus1 dofile(minetest.get_modpath("mobs").."/lavaslimes.lua") -- davedevils/TomasJLuis/TenPlus1
-- cannot find mesecons?, craft glue instead -- cannot find mesecons?, craft glue instead
if not minetest.get_modpath("mesecons_materials") then if not minetest.get_modpath("mesecons_materials") then