mobs/sandmonster.lua

50 lines
1018 B
Lua
Raw Normal View History

2014-11-09 19:13:11 +00:00
2015-09-02 20:56:43 -04:00
-- Sand Monster by PilzAdam
2014-11-09 19:13:11 +00:00
mobs:register_mob("mobs:sand_monster", {
type = "monster",
2015-09-02 20:56:43 -04:00
passive = false,
attack_type = "dogfight",
damage = 1,
2014-11-09 19:13:11 +00:00
hp_min = 4,
hp_max = 20,
2015-09-02 20:56:43 -04:00
armor = 100,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
2014-11-09 19:13:11 +00:00
visual = "mesh",
2015-09-02 20:56:43 -04:00
mesh = "mobs_sand_monster.b3d",
textures = {
"mobs_sand_monster.png"
2014-12-03 19:45:18 +00:00
},
2014-11-09 19:13:11 +00:00
makes_footstep_sound = true,
2015-09-02 20:56:43 -04:00
sounds = {
random = "mobs_sandmonster",
},
2014-11-09 19:13:11 +00:00
walk_velocity = 1.5,
run_velocity = 4,
2015-09-02 20:56:43 -04:00
view_range = 15,
jump = true,
floats = 0,
2014-11-09 19:13:11 +00:00
drops = {
{name = "default:desert_sand",
2015-09-02 20:56:43 -04:00
chance = 1, min = 3, max = 5},
2014-11-09 19:13:11 +00:00
},
water_damage = 3,
2015-09-02 20:56:43 -04:00
lava_damage = 4,
2014-11-09 19:13:11 +00:00
light_damage = 0,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 39,
walk_start = 41,
walk_end = 72,
run_start = 74,
run_end = 105,
punch_start = 74,
punch_end = 105,
},
})
2015-09-02 20:56:43 -04:00
mobs:register_spawn("mobs:sand_monster", {"default:desert_sand"}, 20, 0, 7000, 1, 31000)
mobs:register_egg("mobs:sand_monster", "Sand Monster", "default_desert_sand.png", 1)