2017-07-25 22:28:40 +02:00
|
|
|
-- Walker by KaadmY
|
2016-02-27 20:10:02 +01:00
|
|
|
|
2019-08-28 17:45:27 +02:00
|
|
|
local S = minetest.get_translator("mobs")
|
|
|
|
|
2016-02-27 20:10:02 +01:00
|
|
|
mobs:register_mob(
|
|
|
|
"mobs:walker",
|
|
|
|
{
|
|
|
|
type = "monster",
|
|
|
|
passive = false,
|
|
|
|
attack_type = "dogfight",
|
2017-07-25 22:28:40 +02:00
|
|
|
damage = 3,
|
2016-02-27 20:10:02 +01:00
|
|
|
hp_min = 8,
|
|
|
|
hp_max = 16,
|
2019-09-25 13:43:57 +02:00
|
|
|
breath_max = -1,
|
2016-02-27 20:10:02 +01:00
|
|
|
armor = 200,
|
|
|
|
collisionbox = {-0.3, 0, -0.3, 0.3, 1.5, 0.3},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_walker.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_walker.png"},
|
|
|
|
},
|
|
|
|
makes_footstep_sound = true,
|
|
|
|
sounds = {
|
|
|
|
attack = "mobs_swing",
|
|
|
|
distance = 16,
|
|
|
|
},
|
|
|
|
walk_velocity = 1,
|
2017-07-25 22:28:40 +02:00
|
|
|
run_velocity = 3,
|
|
|
|
jump = true,
|
2016-02-27 20:10:02 +01:00
|
|
|
follow = "default:rope",
|
2017-07-25 22:28:40 +02:00
|
|
|
view_range = 14,
|
2016-02-27 20:10:02 +01:00
|
|
|
drops = {
|
|
|
|
{
|
|
|
|
name = "default:stick",
|
|
|
|
chance = 1, min = 1, max = 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default:stick",
|
|
|
|
chance = 3, min = 2, max = 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default:fiber",
|
|
|
|
chance = 15, min = 2, max = 3
|
|
|
|
},
|
|
|
|
},
|
2017-07-25 22:28:40 +02:00
|
|
|
water_damage = 2,
|
|
|
|
lava_damage = 30,
|
2016-02-27 20:10:02 +01:00
|
|
|
animation = {
|
|
|
|
speed_normal = 20,
|
2017-07-25 22:28:40 +02:00
|
|
|
speed_run = 20,
|
2016-02-27 20:10:02 +01:00
|
|
|
stand_start = 0,
|
|
|
|
stand_end = 24,
|
|
|
|
punch_start = 25,
|
|
|
|
punch_end = 34,
|
2017-07-25 22:28:40 +02:00
|
|
|
walk_start = 35,
|
|
|
|
walk_end = 50,
|
|
|
|
run_start = 35,
|
|
|
|
run_end = 50,
|
2016-02-27 20:10:02 +01:00
|
|
|
},
|
2017-05-16 04:48:28 +02:00
|
|
|
})
|
2016-02-27 20:10:02 +01:00
|
|
|
|
2017-05-16 04:48:28 +02:00
|
|
|
mobs:register_spawn(
|
|
|
|
"mobs:walker",
|
|
|
|
{
|
|
|
|
"default:dry_dirt",
|
|
|
|
"default:dirt_with_dry_grass"
|
|
|
|
},
|
|
|
|
20,
|
|
|
|
14,
|
2017-07-25 22:28:40 +02:00
|
|
|
12000,
|
2017-05-16 04:48:28 +02:00
|
|
|
1,
|
|
|
|
31000
|
|
|
|
)
|
2019-08-28 17:45:27 +02:00
|
|
|
|
|
|
|
mobs:register_egg("mobs:walker", S("Walker"), "mobs_walker_inventory.png")
|