diff --git a/mods/default/model.lua b/mods/default/model.lua index fbffad9..7fa6e8d 100644 --- a/mods/default/model.lua +++ b/mods/default/model.lua @@ -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 diff --git a/mods/mobs/boar.lua b/mods/mobs/boar.lua index 15a1d0c..1f6b237 100644 --- a/mods/mobs/boar.lua +++ b/mods/mobs/boar.lua @@ -26,7 +26,7 @@ mobs:register_mob( }, walk_velocity = 2, run_velocity = 3, - jump = true, + jump = false, follow = "default:apple", view_range = 10, drops = { diff --git a/mods/mobs/init.lua b/mods/mobs/init.lua index 2b98134..faa743f 100644 --- a/mods/mobs/init.lua +++ b/mods/mobs/init.lua @@ -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 diff --git a/mods/mobs/models/mobs_walker.b3d b/mods/mobs/models/mobs_walker.b3d new file mode 100644 index 0000000..6a2cb81 Binary files /dev/null and b/mods/mobs/models/mobs_walker.b3d differ diff --git a/mods/mobs/models/mobs_walker.blend b/mods/mobs/models/mobs_walker.blend new file mode 100644 index 0000000..d71ad97 Binary files /dev/null and b/mods/mobs/models/mobs_walker.blend differ diff --git a/mods/mobs/sheep.lua b/mods/mobs/sheep.lua index 041eca3..4b7d6ca 100644 --- a/mods/mobs/sheep.lua +++ b/mods/mobs/sheep.lua @@ -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", diff --git a/mods/mobs/sounds/mobs_swing.ogg b/mods/mobs/sounds/mobs_swing.ogg new file mode 100644 index 0000000..1bfc92c Binary files /dev/null and b/mods/mobs/sounds/mobs_swing.ogg differ diff --git a/mods/mobs/textures/mobs_walker.png b/mods/mobs/textures/mobs_walker.png new file mode 100644 index 0000000..33a58ed Binary files /dev/null and b/mods/mobs/textures/mobs_walker.png differ diff --git a/mods/mobs/textures/mobs_walker.xcf b/mods/mobs/textures/mobs_walker.xcf new file mode 100644 index 0000000..79490bb Binary files /dev/null and b/mods/mobs/textures/mobs_walker.xcf differ diff --git a/mods/mobs/walker.lua b/mods/mobs/walker.lua new file mode 100644 index 0000000..4a841f7 --- /dev/null +++ b/mods/mobs/walker.lua @@ -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) \ No newline at end of file