-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathostrich.lua
66 lines (63 loc) · 1.31 KB
/
ostrich.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
local S = mobs.intllib
mobs:register_mob("desert_life:ostrich", {
type = "animal",
passive = false,
attack_type = "dogfight",
group_attack = true,
reach = 2,
damage = 2,
hp_min = 5,
hp_max = 10,
armor = 200,
collisionbox = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
visual = "mesh",
mesh = "dl_ostrich.b3d",
textures = {
{'dl_ostrich.png'},
},
visual_size = {x=9, y=9},
makes_footstep_sound = true,
-- sounds = {
-- random = "mobs_chicken",
-- },
walk_velocity = 1,
run_velocity = 3,
jump = true,
drops = {
{name = "mobs:chicken_raw", chance = 1, min = 2, max = 6},
},
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fall_damage = 0,
fall_speed = -8,
fear_height = 5,
animation = {
speed_normal = 15,
speed_run = 30,
stand_start = 0,
stand_end = 60,
walk_start = 180,
walk_end = 229,
run_start = 180,
run_end = 229,
punch_start = 65,
punch_end = 90,
punch2_start = 95,
punch2_end = 125,
},
follow = {"farming:seed_wheat", "farming:seed_cotton"},
view_range = 5,
replace_what = {'group:flora', 'group:plant'},
replace_with = 'air',
replace_rate = 1,
})
mobs:spawn({
name = 'desert_life:ostrich',
nodes = {'default:desert_sand', 'default:desert_stone'},
min_height = 0,
max_height = 150,
interval = 60,
chance = 10000,
active_object_count = 5,
})