From a7ceb2462a1ec03c6b0c53d15616baf95bd598a8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 15:22:44 +0200 Subject: [PATCH] Deal ender pearl damage as fall damage --- mods/ITEMS/mcl_throwing/init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index d7e236600d..7205a17b5b 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -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)