forked from Mineclonia/Mineclonia
Enable wolf-on-sheep attack
This commit is contained in:
parent
222f6880cb
commit
635a9c45bd
|
@ -84,6 +84,8 @@ local wolf = {
|
||||||
},
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
attacks_monsters = true,
|
attacks_monsters = true,
|
||||||
|
attack_animals = true,
|
||||||
|
specific_attack = { "player", "mobs_mc:sheep" },
|
||||||
}
|
}
|
||||||
|
|
||||||
mobs:register_mob("mobs_mc:wolf", wolf)
|
mobs:register_mob("mobs_mc:wolf", wolf)
|
||||||
|
@ -133,6 +135,8 @@ dog.owner_loyal = true
|
||||||
-- Automatically teleport dog to owner
|
-- Automatically teleport dog to owner
|
||||||
dog.do_custom = mobs_mc.make_owner_teleport_function(12)
|
dog.do_custom = mobs_mc.make_owner_teleport_function(12)
|
||||||
dog.follow = mobs_mc.follow.dog
|
dog.follow = mobs_mc.follow.dog
|
||||||
|
dog.attack_animals = nil
|
||||||
|
dog.specific_attack = nil
|
||||||
dog.on_rightclick = function(self, clicker)
|
dog.on_rightclick = function(self, clicker)
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue