mobs_monster/dirt_monster.lua

82 lines
1.6 KiB
Lua
Raw Permalink Normal View History

2016-10-08 09:07:29 -07:00
local S = mobs.intllib
2018-12-10 20:57:00 -08:00
2016-10-08 09:07:29 -07:00
-- Dirt Monster by PilzAdam
mobs:register_mob("mobs_monster:dirt_monster", {
type = "monster",
2018-12-10 20:57:00 -08:00
group_attack = true,
2016-10-08 09:07:29 -07:00
passive = false,
attack_type = "dogfight",
2018-12-10 20:57:00 -08:00
pathfinding = true,
2018-11-18 10:28:49 -08:00
reach = 3,
2018-01-10 12:29:03 -08:00
damage = 3,
hp_min = 25,
hp_max = 65,
2016-10-08 09:07:29 -07:00
armor = 100,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
visual = "mesh",
mesh = "mobs_stone_monster.b3d",
textures = {
{"mobs_dirt_monster.png"},
2018-12-10 20:57:00 -08:00
{"mobs_dirt_monster2.png"}
2016-10-08 09:07:29 -07:00
},
blood_texture = "default_dirt.png",
makes_footstep_sound = true,
sounds = {
2018-10-18 14:00:47 -07:00
random = "mobs_dirtmonster_neutral",
damage = "mobs_dirtmonster_hit",
attack = "mobs_dirtmonster_attack",
death = "mobs_dirtmonster_death",
distance = 15
2016-10-08 09:07:29 -07:00
},
2018-12-10 20:57:00 -08:00
view_range = 16,
2016-10-08 09:07:29 -07:00
walk_velocity = 1,
run_velocity = 3,
jump = true,
drops = {
2018-12-10 20:57:00 -08:00
{name = "default:dirt", chance = 1, min = 0, max = 2},
2016-10-08 09:07:29 -07:00
},
2018-01-04 10:09:12 -08:00
water_damage = 5,
lava_damage = 10,
light_damage = 10,
2016-10-08 09:07:29 -07:00
fear_height = 4,
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,
},
})
2018-12-10 20:57:00 -08:00
local spawn_on = "default:dirt_with_grass", "default:dirt_with_dry_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:gray_dirt"
end
2017-07-24 14:07:56 -07:00
mobs:spawn({
name = "mobs_monster:dirt_monster",
2018-12-10 20:57:00 -08:00
nodes = {spawn_on},
2017-07-24 14:07:56 -07:00
min_light = 0,
max_light = 7,
2018-12-10 20:57:00 -08:00
chance = 7000,
active_object_count = 2,
2017-07-24 14:07:56 -07:00
min_height = 0,
day_toggle = false,
})
2018-12-10 20:57:00 -08:00
2016-10-08 09:07:29 -07:00
mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1)
2018-12-10 20:57:00 -08:00
mobs:alias_mob("mobs:dirt_monster", "mobs_monster:dirt_monster") -- compatibility