mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-09 17:23:49 +01:00
Transform creeper with on_lightning_strike
This commit is contained in:
parent
97468cde0c
commit
5cf2f488a8
@ -219,6 +219,10 @@ mcl_mobs:register_mob("mobs_mc:creeper_charged", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
on_lightning_strike = function(self, pos, pos2, objects)
|
||||||
|
mcl_util.replace_mob(self.object, "mobs_mc:creeper_charged")
|
||||||
|
return true
|
||||||
|
end,
|
||||||
maxdrops = 2,
|
maxdrops = 2,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mcl_mobitems:gunpowder",
|
{name = "mcl_mobitems:gunpowder",
|
||||||
|
Loading…
Reference in New Issue
Block a user