mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Transform villager with on_lightning_strike
This commit is contained in:
parent
95db6104e9
commit
2c4a768685
1 changed files with 4 additions and 0 deletions
|
@ -1885,6 +1885,10 @@ mcl_mobs:register_mob("mobs_mc:villager", {
|
|||
mcl_log("Died, so bye bye jobsite")
|
||||
end
|
||||
end,
|
||||
on_lightning_strike = function(self, pos, pos2, objects)
|
||||
mcl_util.replace_mob(self.object, "mobs_mc:witch")
|
||||
return true
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue