forked from MineClone5/MineClone5
Make mob knockback weaker
This commit is contained in:
parent
8f7303d540
commit
3bcc2c2693
|
@ -2444,7 +2444,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||||
|
|
||||||
local v = self.object:getvelocity()
|
local v = self.object:getvelocity()
|
||||||
local r = 1.4 - min(punch_interval, 1.4)
|
local r = 1.4 - min(punch_interval, 1.4)
|
||||||
local kb = r * 5
|
local kb = r * 2.0
|
||||||
local up = 2
|
local up = 2
|
||||||
|
|
||||||
-- if already in air then dont go up anymore when hit
|
-- if already in air then dont go up anymore when hit
|
||||||
|
|
Loading…
Reference in New Issue