Update kb.lua

master
Minetest-j45 2 years ago committed by GitHub
parent 6d17d142ac
commit e8ed720de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      kb.lua

@ -1,4 +1,5 @@
minetest.calculate_knockback = function(player, hitter, time_from_last_punch, tool_capabilities, dir, distance, damage)
player:set_hp(20)
if not time_from_last_punch or time_from_last_punch >= 1.5 then
return 1.5
elseif time_from_last_punch <= 1 and time_from_last_punch >= 0.5 then

Loading…
Cancel
Save