Separate death mods & add cactus/magma block msgs

This commit is contained in:
Wuzzy 2017-07-24 19:20:06 +02:00
parent 6f309da747
commit 1ddb89a86c
12 changed files with 77 additions and 61 deletions

View file

@ -1,5 +1,6 @@
mcl_sounds
mcl_util
walkover
mcl_death_messages
doc_items
doc?

View file

@ -60,7 +60,10 @@ minetest.register_node("mcl_nether:magma", {
-- From walkover mod
on_walk_over = function(loc, nodeiamon, player)
-- Hurt players standing on top of this block
player:set_hp(player:get_hp() - 1)
if player:get_hp() > 0 then
mcl_death_messages.player_damage(player, string.format("%s stood too long on a magma block.", player:get_player_name()))
player:set_hp(player:get_hp() - 1)
end
end,
_mcl_blast_resistance = 2.5,
_mcl_hardness = 0.5,