More death messages, more reliable
This commit is contained in:
parent
db8d7af245
commit
20576431e1
12 changed files with 148 additions and 128 deletions
|
@ -1,6 +1,7 @@
|
|||
mcl_throwing = {}
|
||||
|
||||
local S = minetest.get_translator("mcl_throwing")
|
||||
local mod_death_messages = minetest.get_modpath("mcl_death_messages")
|
||||
|
||||
--
|
||||
-- Snowballs and other throwable items
|
||||
|
@ -267,6 +268,10 @@ 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)
|
||||
|
||||
-- 5% chance to spawn endermite at the player's origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue