-
Notifications
You must be signed in to change notification settings - Fork 2
/
mobs.lua
131 lines (115 loc) · 4.26 KB
/
mobs.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
--monsters
if minetest.get_modpath("mobs_monster") then
mobs:spawn({
name = "mobs_monster:dirt_monster",
nodes = {"ebiomes:dirt_with_grass_med", "ebiomes:dirt_with_grass_steppe_warm", "ebiomes:dirt_with_grass_steppe", "ebiomes:dirt_with_grass_steppe_cold", "ebiomes:dirt_with_grass_cold", "ebiomes:dirt_with_grass_swamp", "ebiomes:dirt_with_grass_warm", "ebiomes:dry_dirt_with_grass_arid", "ebiomes:dry_dirt_with_grass_arid_cool", "ebiomes:peat_with_swamp_moss_yellow", "ebiomes:dirt_with_japanese_rainforest_litter", "ebiomes:dry_dirt_with_humid_savanna_grass", "ebiomes:dirt_with_forest_litter", "ebiomes:dirt_with_jungle_savanna_grass"},
min_light = 0,
max_light = 7,
chance = 6000,
active_object_count = 2,
min_height = 0,
day_toggle = false,
})
mobs:spawn({
name = "mobs_monster:sand_monster",
nodes = {"ebiomes:dry_dirt_with_grass_arid"},
min_light = 0,
max_light = 7,
chance = 7000,
active_object_count = 2,
min_height = 0,
day_toggle = false,
})
mobs:spawn({
name = "mobs_monster:spider",
nodes = {
"ebiomes:dirt_with_grass_cold", "ebiomes:dirt_with_grass_swamp", "ebiomes:peat_with_swamp_moss_yellow", "ebiomes:dirt_with_japanese_rainforest_litter", "ebiomes:dry_dirt_with_humid_savanna_grass", "ebiomes:dirt_with_forest_litter", "ebiomes:dirt_with_jungle_savanna_grass"
},
min_light = 0,
max_light = 8,
chance = 7000,
active_object_count = 1,
min_height = 25,
max_height = 31000,
})
mobs:spawn({
name = "mobs_monster:tree_monster",
nodes = {"ebiomes:dirt_with_grass_cold", "ebiomes:dirt_with_grass_med", "ebiomes:dirt_with_grass_warm", "ebiomes:dirt_with_grass_swamp", "ebiomes:peat_with_swamp_moss_yellow", "ebiomes:dirt_with_japanese_rainforest_litter", "ebiomes:dry_dirt_with_humid_savanna_grass", "ebiomes:dirt_with_forest_litter", "ebiomes:dirt_with_jungle_savanna_grass"},
max_light = 7,
chance = 7000,
min_height = 0,
day_toggle = false,
})
mobs:spawn({
name = "mobs_monster:land_guard",
nodes = {
"ebiomes:dry_dirt_with_grass_arid", "ebiomes:dry_dirt_with_grass_arid_cool", "ebiomes:dry_dirt_with_humid_savanna_grass"
},
max_light = 7,
chance = 25000,
min_height = 0,
active_object_count = 1,
})
end
--animals
if minetest.get_modpath("mobs_animal") then
mobs:spawn({
name = "mobs_animal:cow",
nodes = {"ebiomes:dirt_with_grass_med", "ebiomes:dirt_with_grass_steppe_warm", "ebiomes:dirt_with_grass_steppe", "ebiomes:dirt_with_grass_steppe_cold", "ebiomes:dirt_with_grass_cold", "ebiomes:dirt_with_grass_warm"},
neighbors = {"group:grass"},
min_light = 14,
interval = 60,
chance = 8000,
min_height = 5,
max_height = 200,
day_toggle = true,
})
mobs:spawn({
name = "mobs_animal:sheep_white",
nodes = {"ebiomes:dirt_with_grass_med", "ebiomes:dirt_with_grass_steppe_warm", "ebiomes:dirt_with_grass_steppe", "ebiomes:dirt_with_grass_warm"},
neighbors = {"group:grass"},
min_light = 14,
interval = 60,
chance = 8000,
min_height = 0,
max_height = 200,
day_toggle = true,
})
mobs:spawn({
name = "mobs_animal:bunny",
nodes = {"ebiomes:dirt_with_japanese_rainforest_litter", "ebiomes:dirt_with_grass_med", "ebiomes:dry_dirt_with_humid_savanna_grass", "ebiomes:dirt_with_grass_warm", "ebiomes:dirt_with_grass_cold", "ebiomes:dirt_with_grass_steppe_warm", "ebiomes:dirt_with_forest_litter", "ebiomes:dirt_with_jungle_savanna_grass"},
-- neighbors = {"group:grass"},
min_light = 12,
interval = 60,
chance = 1600,
min_height = 5,
max_height = 200,
day_toggle = true,
})
end
--npcs
if minetest.get_modpath("mobs_npc") then
mobs:spawn({
name = "mobs_npc:npc",
nodes = {"default:brick"},
neighbors = {"ebiomes:grass_med_3", "ebiomes:grass_steppe_warm_3", "ebiomes:grass_steppe_3", "ebiomes:grass_steppe_cold_3", "ebiomes:grass_cold_3", "ebiomes:grass_warm_3", "ebiomes:grass_arid_3", "ebiomes:grass_arid_cool_3"},
min_light = 10,
chance = 10000,
active_object_count = 1,
min_height = 0,
day_toggle = true,
})
end
--horse
if minetest.get_modpath("mob_horse") then
mobs:spawn({
name = "mob_horse:horse",
nodes = {"ebiomes:dirt_with_grass_med", "ebiomes:dirt_with_grass_steppe_warm", "ebiomes:dirt_with_grass_steppe", "ebiomes:dirt_with_grass_steppe_cold"},
min_light = 14,
interval = 60,
chance = 16000,
min_height = 10,
max_height = 31000,
day_toggle = true
})
end