mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-28 02:49:33 +01:00
Deal ender pearl damage as fall damage
This commit is contained in:
parent
219ec1ddcb
commit
a7ceb2462a
1 changed files with 1 additions and 5 deletions
|
@ -268,11 +268,7 @@ local pearl_on_step = function(self, dtime)
|
|||
local oldpos = player:get_pos()
|
||||
-- Teleport and hurt player
|
||||
player:set_pos(telepos)
|
||||
if mod_death_messages then
|
||||
mcl_death_messages.player_damage(player, S("@1 used the ender pearl too often.", player:get_player_name()))
|
||||
end
|
||||
-- TODO: Deal as fall damage
|
||||
player:set_hp(player:get_hp() - 5)
|
||||
player:set_hp(player:get_hp() - 5, { type = "fall", origin = "mod" })
|
||||
|
||||
-- 5% chance to spawn endermite at the player's origin
|
||||
local r = math.random(1,20)
|
||||
|
|
Loading…
Reference in a new issue