Transform pig with on_lightning_strike

This commit is contained in:
cora 2022-11-04 14:02:45 +01:00
parent 5cf2f488a8
commit 95db6104e9
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ mcl_mobs:register_mob("mobs_mc:pig", {
"mcl_mobitems:carrot_on_a_stick" "mcl_mobitems:carrot_on_a_stick"
}, },
view_range = 8, view_range = 8,
on_lightning_strike = function(self, pos, pos2, objects)
mcl_util.replace_mob(self.object, "mobs_mc:zombified_piglin")
return true
end,
do_custom = function(self, dtime) do_custom = function(self, dtime)
-- set needed values if not already present -- set needed values if not already present