From 212e895c1a92352a9382dc55bffeedd1f81ea169 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 1 Jan 2021 19:59:34 +0100 Subject: [PATCH] Fire Aspect for Mobs --- mods/ENTITIES/mcl_mobs/api.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 3452b83c39..c8dc7143e2 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2947,6 +2947,13 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) * tmp * ((armor[group] or 0) / 100.0) 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