1
0
Fork 0

Transform pig with on_lightning_strike

mcl-structures-fixes
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"
},
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)
-- set needed values if not already present