mobs_more_monsters/mobs_senderman/init.lua

59 lines
1.6 KiB
Lua
Raw Normal View History

2015-08-13 20:32:08 -07:00
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,
2019-01-16 07:09:43 -08:00
light_damage = 0,
damage = 14,
2015-09-29 12:20:11 -07:00
reach = 3,
2015-08-13 20:32:08 -07:00
attack_type = "dogfight",
view_range = 30,
walk_velocity = 3,
run_velocity = 6,
2019-01-16 08:25:47 -08:00
fall_speed = -2,
2015-08-13 20:32:08 -07:00
stepheight = 1.1,
drops = {
2019-01-16 08:25:47 -08:00
{name = "loud_walking:basalt", chance = 1, min = 1, max = 1},
2019-01-16 08:41:10 -08:00
{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
2015-08-13 20:32:08 -07:00
})
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
2019-01-16 07:09:43 -08:00
--[[
2015-08-13 20:32:08 -07:00
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
2015-08-13 20:32:08 -07:00
)
2019-01-16 07:09:43 -08:00
]]
2019-01-23 23:53:34 -08:00
mobs:spawn_specific("mobs_senderman:senderman", {"group:soil"}, "air", 0, 30, 4, 5000, 1, 29992, 29994)
2015-08-13 20:32:08 -07:00
mobs:register_egg("mobs_senderman:senderman", "Spawn Senderman", "senderman_egg.png", 0)
end