mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Enable wolf-on-sheep attack
This commit is contained in:
parent
222f6880cb
commit
635a9c45bd
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue