mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 05:51:05 +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()
|
local oldpos = player:get_pos()
|
||||||
-- Teleport and hurt player
|
-- Teleport and hurt player
|
||||||
player:set_pos(telepos)
|
player:set_pos(telepos)
|
||||||
if mod_death_messages then
|
player:set_hp(player:get_hp() - 5, { type = "fall", origin = "mod" })
|
||||||
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)
|
|
||||||
|
|
||||||
-- 5% chance to spawn endermite at the player's origin
|
-- 5% chance to spawn endermite at the player's origin
|
||||||
local r = math.random(1,20)
|
local r = math.random(1,20)
|
||||||
|
|
Loading…
Reference in a new issue