mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-10-27 11:09:32 +01:00
Enable wolf-on-sheep attack
This commit is contained in:
parent
222f6880cb
commit
635a9c45bd
@ -84,6 +84,8 @@ local wolf = {
|
||||
},
|
||||
jump = true,
|
||||
attacks_monsters = true,
|
||||
attack_animals = true,
|
||||
specific_attack = { "player", "mobs_mc:sheep" },
|
||||
}
|
||||
|
||||
mobs:register_mob("mobs_mc:wolf", wolf)
|
||||
@ -133,6 +135,8 @@ dog.owner_loyal = true
|
||||
-- Automatically teleport dog to owner
|
||||
dog.do_custom = mobs_mc.make_owner_teleport_function(12)
|
||||
dog.follow = mobs_mc.follow.dog
|
||||
dog.attack_animals = nil
|
||||
dog.specific_attack = nil
|
||||
dog.on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user