mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Exhaust player for being hit by mob projectile
This commit is contained in:
parent
c1ad39febd
commit
6083c4895d
3 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,7 @@ mobs:register_arrow("mobs_mc:blaze_fireball", {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy = 5},
|
damage_groups = {fleshy = 5},
|
||||||
}, nil)
|
}, nil)
|
||||||
|
mcl_hunger.exhaust(player:get_player_name(), mcl_hunger.EXHAUST_DAMAGE)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
hit_mob = function(self, player)
|
hit_mob = function(self, player)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
mcl_core
|
mcl_core
|
||||||
mcl_tools
|
mcl_tools
|
||||||
|
mcl_hunger
|
||||||
mcl_fire
|
mcl_fire
|
||||||
mobs
|
mobs
|
||||||
mcl_tnt
|
mcl_tnt
|
||||||
|
|
|
@ -95,6 +95,7 @@ mobs:register_arrow("mobs_mc:ghast_fireball", {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy = 6},
|
damage_groups = {fleshy = 6},
|
||||||
}, nil)
|
}, nil)
|
||||||
|
mcl_hunger.exhaust(player:get_player_name(), mcl_hunger.EXHAUST_DAMAGE)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
hit_mob = function(self, player)
|
hit_mob = function(self, player)
|
||||||
|
|
Loading…
Reference in a new issue