mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Transform pig with on_lightning_strike
This commit is contained in:
parent
5cf2f488a8
commit
95db6104e9
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue