59 lines
1.6 KiB
Lua
59 lines
1.6 KiB
Lua
|
|
if mobs.mod and mobs.mod == "redo" then
|
|
|
|
mobs:register_mob("mobs_senderman:senderman", {
|
|
type = "monster",
|
|
visual = "mesh",
|
|
mesh = "sender_man.x",
|
|
textures = {
|
|
{"sender_man.png"}
|
|
},
|
|
visual_size = {x=6,y=6},
|
|
collisionbox = {-0.5, -0.01, -0.5, 0.5, 5.4, 0.5},
|
|
animation = {
|
|
speed_normal = 15, speed_run = 15,
|
|
stand_start = 0, stand_end = 14,
|
|
walk_start = 15, walk_end = 38,
|
|
run_start = 40, run_end = 63,
|
|
punch_start = 40, punch_end = 63
|
|
},
|
|
hp_min = 60,
|
|
hp_max = 180,
|
|
armor = 130,
|
|
light_damage = 0,
|
|
damage = 14,
|
|
reach = 3,
|
|
attack_type = "dogfight",
|
|
view_range = 30,
|
|
walk_velocity = 3,
|
|
run_velocity = 6,
|
|
fall_speed = -2,
|
|
stepheight = 1.1,
|
|
drops = {
|
|
{name = "loud_walking:basalt", chance = 1, min = 1, max = 1},
|
|
{name = "ethereal:bone", chance = 2, min = 2, max = 6},
|
|
},
|
|
on_die = function(self, pos)
|
|
minetest.add_entity({x=pos.x, y=pos.y + 1, z=pos.z}, "dmobs:skeleton")
|
|
end
|
|
})
|
|
|
|
local l_spawn_elevation_min = minetest.setting_get("water_level")
|
|
if l_spawn_elevation_min then
|
|
l_spawn_elevation_min = l_spawn_elevation_min + 3
|
|
else
|
|
l_spawn_elevation_min = 3
|
|
end
|
|
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
|
--[[
|
|
mobs:spawn_specific("mobs_senderman:senderman",
|
|
{"default:dirt_with_grass", "default:dirt", "default:desert_sand", "ethereal:green_dirt_top"},
|
|
{"air"},
|
|
-1, 3, 30, 70000, 1, l_spawn_elevation_min, 31000
|
|
)
|
|
]]
|
|
mobs:spawn_specific("mobs_senderman:senderman", {"group:soil"}, "air", 0, 30, 4, 5000, 1, 29992, 29994)
|
|
mobs:register_egg("mobs_senderman:senderman", "Spawn Senderman", "senderman_egg.png", 0)
|
|
|
|
end
|