remove hostile llama

This commit is contained in:
epCode 2021-02-14 20:01:41 -08:00
parent a6b3959790
commit 9307e06df5
2 changed files with 2 additions and 31 deletions

View File

@ -25,7 +25,7 @@ local carpets = {
}
mobs:register_mob("mobs_mc:llama", {
type = "monster",
type = "animal",
spawn_class = "passive",
hp_min = 15,
hp_max = 30,
@ -84,11 +84,8 @@ mobs:register_mob("mobs_mc:llama", {
},
follow = mobs_mc.follow.llama,
view_range = 16,
attack_type = "dogshoot",
arrow = "mobs_mc:llama_spit",
shoot_interval = 1.5,
shoot_offset = .5,
do_custom = function(self, dtime)
-- set needed values if not already present
if not self.v2 then
self.v2 = 0
@ -219,32 +216,6 @@ mobs:register_mob("mobs_mc:llama", {
})
mobs:register_arrow("mobs_mc:llama_spit", {
visual = "sprite",
visual_size = {x = 0.3, y = 0.3},
textures = {"mobs_mc_spit.png"},
velocity = 30,
-- Direct hit, no fire... just plenty of pain
hit_player = function(self, player)
if rawget(_G, "armor") and armor.last_damage_types then
armor.last_damage_types[player:get_player_name()] = "llama_spit"
end
player:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 1, knockback = 10},
}, nil)
end,
hit_mob = function(self, mob)
mob:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 1, knockback = 10},
}, nil)
end,
})
--spawn
mobs:spawn_specific("mobs_mc:llama", mobs_mc.spawn.savanna, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 15000, 5, mobs_mc.spawn_height.water+15, mobs_mc.spawn_height.overworld_max)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B