mirror of
https://codeberg.org/tenplus1/mob_horse.git
synced 2025-02-10 15:50:20 +01:00
horse can defend itself
This commit is contained in:
parent
ac8cb2ec70
commit
58d84da9eb
20
init.lua
20
init.lua
@ -28,7 +28,8 @@ mobs:register_mob("mob_horse:horse", {
|
|||||||
stand2_start = 25, stand2_end = 25,
|
stand2_start = 25, stand2_end = 25,
|
||||||
stand3_start = 55, stand3_end = 75, stand3_loop = false,
|
stand3_start = 55, stand3_end = 75, stand3_loop = false,
|
||||||
walk_start = 75, walk_end = 100,
|
walk_start = 75, walk_end = 100,
|
||||||
run_start = 75, run_end = 100
|
run_start = 75, run_end = 100,
|
||||||
|
punch_start = 55, punch_end = 75, punch_speed = 35,
|
||||||
},
|
},
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_horse.png"}, -- textures by Mjollna
|
{"mobs_horse.png"}, -- textures by Mjollna
|
||||||
@ -36,24 +37,27 @@ mobs:register_mob("mob_horse:horse", {
|
|||||||
{"mobs_horseara.png"}
|
{"mobs_horseara.png"}
|
||||||
},
|
},
|
||||||
fear_height = 3,
|
fear_height = 3,
|
||||||
runaway = true,
|
--runaway = true,
|
||||||
fly = false,
|
fly = false,
|
||||||
walk_chance = 60,
|
walk_chance = 60,
|
||||||
view_range = 5,
|
view_range = 10,
|
||||||
follow = {
|
follow = {
|
||||||
"farming:wheat", "default:apple", "farming:oat",
|
"farming:wheat", "default:apple", "farming:oat",
|
||||||
"farming:barley", "farming:corn"
|
"farming:barley", "farming:corn"
|
||||||
},
|
},
|
||||||
passive = true,
|
passive = false, attack_type = "dogfight", reach = 2.5, damage = 3,
|
||||||
hp_min = 12,
|
attack_monsters = true,
|
||||||
hp_max = 16,
|
hp_min = 15,
|
||||||
armor = 200,
|
hp_max = 23,
|
||||||
|
armor = 100,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
|
fire_damage = 4,
|
||||||
fall_damage = 1,
|
fall_damage = 1,
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:leather", chance = 1, min = 0, max = 2}
|
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||||
|
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2}
|
||||||
},
|
},
|
||||||
|
|
||||||
do_custom = function(self, dtime)
|
do_custom = function(self, dtime)
|
||||||
|
Loading…
Reference in New Issue
Block a user