mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 08:05:09 +00:00
Fire Aspect for Mobs
This commit is contained in:
parent
2932837951
commit
212e895c1a
1 changed files with 7 additions and 0 deletions
|
@ -2948,6 +2948,13 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
|||
end
|
||||
end
|
||||
|
||||
if weapon then
|
||||
local fire_aspect_level = mcl_enchanting.get_enchantment(weapon, "fire_aspect")
|
||||
if fire_aspect_level > 0 then
|
||||
mcl_burning.set_on_fire(self.object, 4, fire_aspect_level * 2)
|
||||
end
|
||||
end
|
||||
|
||||
-- check for tool immunity or special damage
|
||||
for n = 1, #self.immune_to do
|
||||
|
||||
|
|
Loading…
Reference in a new issue