Transform pig with on_lightning_strike
This commit is contained in:
parent
5cf2f488a8
commit
95db6104e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user