1
0
Fork 0

Enable wolf-on-sheep attack

objects
Wuzzy 2018-05-30 16:16:44 +02:00
parent 222f6880cb
commit 635a9c45bd
1 changed files with 4 additions and 0 deletions

View File

@ -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()