From e64530aa43260c8535b41cd961b680aec040798a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 13 Apr 2017 11:01:38 +0100 Subject: [PATCH] default stepheight is 1.1 for mobs to walk uphill properly --- api.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api.lua b/api.lua index 60aa99b..9d18e9c 100644 --- a/api.lua +++ b/api.lua @@ -1,5 +1,5 @@ --- Mobs Api (8th April 2017) +-- Mobs Api (13th March 2017) mobs = {} mobs.mod = "redo" @@ -2037,7 +2037,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) -- knock back effect (only on full punch) if self.knock_back > 0 - and tflp > punch_interval then + and tflp >= punch_interval then local v = self.object:getvelocity() local r = 1.4 - min(punch_interval, 1.4) @@ -2407,7 +2407,7 @@ function mobs:register_mob(name, def) minetest.register_entity(name, { - stepheight = def.stepheight or 0.6, + stepheight = def.stepheight or 1.1, -- was 0.6 name = name, type = def.type, attack_type = def.attack_type, @@ -2417,7 +2417,7 @@ minetest.register_entity(name, { order = def.order or "", on_die = def.on_die, do_custom = def.do_custom, - jump_height = def.jump_height or 6, + jump_height = def.jump_height or 4, -- was 6 drawtype = def.drawtype, -- DEPRECATED, use rotate instead rotate = math.rad(def.rotate or 0), -- 0=front, 90=side, 180=back, 270=side2 lifetimer = def.lifetimer or 180, -- 3 minutes