added another dangerous mob, the walker
This commit is contained in:
parent
8208c8c275
commit
0e6b7e420a
@ -143,7 +143,7 @@ minetest.register_globalstep(
|
||||
|
||||
if model and not player_attached[name] then
|
||||
local walking = false
|
||||
local animation_speed_mod = model.animation_speed or player_animation_steed
|
||||
local animation_speed_mod = model.animation_speed or player_animation_speed
|
||||
|
||||
-- Determine if the player is walking
|
||||
if controls.up or controls.down or controls.left or controls.right then
|
||||
|
@ -26,7 +26,7 @@ mobs:register_mob(
|
||||
},
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
jump = true,
|
||||
jump = false,
|
||||
follow = "default:apple",
|
||||
view_range = 10,
|
||||
drops = {
|
||||
|
@ -14,6 +14,7 @@ dofile(path.."/sheep.lua") -- PilzAdam
|
||||
dofile(path.."/boar.lua") -- KrupnoPavel
|
||||
dofile(path.."/skunk.lua") -- Kaadmy
|
||||
dofile(path.."/mineturtle.lua") -- Kaadmy
|
||||
dofile(path.."/walker.lua") -- Kaadmy
|
||||
|
||||
-- NPC
|
||||
dofile(path.."/npc.lua") -- TenPlus1
|
||||
|
BIN
mods/mobs/models/mobs_walker.b3d
Normal file
BIN
mods/mobs/models/mobs_walker.b3d
Normal file
Binary file not shown.
BIN
mods/mobs/models/mobs_walker.blend
Normal file
BIN
mods/mobs/models/mobs_walker.blend
Normal file
Binary file not shown.
@ -24,7 +24,7 @@ mobs:register_mob(
|
||||
},
|
||||
walk_velocity = 1,
|
||||
walk_chance = 150,
|
||||
jump = true,
|
||||
jump = false,
|
||||
jump_height = 5,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
|
BIN
mods/mobs/sounds/mobs_swing.ogg
Normal file
BIN
mods/mobs/sounds/mobs_swing.ogg
Normal file
Binary file not shown.
BIN
mods/mobs/textures/mobs_walker.png
Normal file
BIN
mods/mobs/textures/mobs_walker.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 B |
BIN
mods/mobs/textures/mobs_walker.xcf
Normal file
BIN
mods/mobs/textures/mobs_walker.xcf
Normal file
Binary file not shown.
60
mods/mobs/walker.lua
Normal file
60
mods/mobs/walker.lua
Normal file
@ -0,0 +1,60 @@
|
||||
-- Walker by Kaadmy
|
||||
|
||||
mobs:register_mob(
|
||||
"mobs:walker",
|
||||
{
|
||||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
damage = 2,
|
||||
hp_min = 8,
|
||||
hp_max = 16,
|
||||
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,
|
||||
run_velocity = 5,
|
||||
jump = false,
|
||||
follow = "default:rope",
|
||||
view_range = 8,
|
||||
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
|
||||
},
|
||||
},
|
||||
water_damage = 6,
|
||||
lava_damage = 10,
|
||||
light_damage = 1,
|
||||
animation = {
|
||||
speed_normal = 20,
|
||||
speed_run = 30,
|
||||
stand_start = 0,
|
||||
stand_end = 24,
|
||||
run_start = 35,
|
||||
run_end = 50,
|
||||
walk_start = 35,
|
||||
walk_end = 50,
|
||||
punch_start = 25,
|
||||
punch_end = 34,
|
||||
},
|
||||
})
|
||||
|
||||
mobs:register_spawn("mobs:walker", {"default:dry_dirt"}, 20, 14, 200000, 1, 31000)
|
Loading…
Reference in New Issue
Block a user