1 --this is where mobs are defined
3 --this is going to be used to set an active mob limit
7 local path = minetest.get_modpath(minetest.get_current_modname())
9 dofile(path.."/spawning.lua")
10 dofile(path.."/api/api_hook.lua")
11 dofile(path.."/items.lua")
12 dofile(path.."/chatcommands.lua")
19 collide_with_objects = false,
20 collisionbox = {-0.37, 0, -0.37, 0.37, 0.85, 0.37},
22 visual_size = {x = 3, y = 3},
25 --blank out the first two to create adult pig
29 --these are used to anchor a point to the head position
34 debug_head_pos = false,
35 head_directional_offset = 0.5, --used in vector.multiply(minetest.yaw_to_dir(body_yaw),head_offset)
36 head_height_offset = 0.8, --added to the base y position
37 --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
38 head_position_correction = vector.new(0,3,-0.5),
39 --this is used to tell the game the orientation of the bone (swaps x to and y, then z and y)
40 head_coord = "horizontal",
45 automatic_face_movement_dir = 0,
46 automatic_face_movement_max_rotation_per_sec = 300,
47 makes_footstep_sound = false,
49 gravity = {x = 0, y = -9.81, z = 0},
50 movement_type = "walk",
55 item_drop = "mob:raw_porkchop",
56 standing_frame = {x=0,y=0},
57 moving_frame = {x=0,y=40},
58 animation_multiplier = 20,
64 die_sound = "pig_die",
68 attacked_hostile = false,
69 attack_type = "punch",
71 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
72 --explosion_power = 7, -- how big the explosion has to be
73 --explosion_time = 3, -- how long it takes for a mob to explode
81 collide_with_objects = false,
82 collisionbox = {-0.37, 0, -0.37, 0.37, 0.85, 0.37},
84 visual_size = {x = 3, y = 3},
87 --blank out the first two to create adult pig
88 "phyg.png","wings.png"
91 --these are used to anchor a point to the head position
96 debug_head_pos = false,
97 head_directional_offset = 0.5, --used in vector.multiply(minetest.yaw_to_dir(body_yaw),head_offset)
98 head_height_offset = 0.8, --added to the base y position
99 --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
100 head_position_correction = vector.new(0,3,-0.5),
101 --this is used to tell the game the orientation of the bone (swaps x to and y, then z and y)
102 head_coord = "horizontal",
107 automatic_face_movement_dir = 0,
108 automatic_face_movement_max_rotation_per_sec = 300,
109 makes_footstep_sound = false,
110 takes_fall_damage = false,
111 make_jump_noise = false,
113 gravity = {x = 0, y = -1, z = 0},
114 movement_type = "walk",
119 item_drop = "main:gold",
123 standing_frame = {x=0,y=0},
124 moving_frame = {x=0,y=40},
125 animation_multiplier = 20,
128 death_rotation = "x",
131 die_sound = "pig_die",
135 attacked_hostile = false,
136 attack_type = "punch",
138 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
139 --explosion_power = 7, -- how big the explosion has to be
140 --explosion_time = 3, -- how long it takes for a mob to explode
150 collide_with_objects = false,
151 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
153 visual_size = {x = 3, y = 3},
154 mesh = "chicken.b3d",
156 --if you're wondering what mob this is, it's a chicken
157 "chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png","chicken.png"
161 automatic_face_movement_dir = -90.0,
162 automatic_face_movement_max_rotation_per_sec = 300,
163 makes_footstep_sound = false,
165 gravity = {x = 0, y = -9.81, z = 0},
166 movement_type = "walk",
172 item_drop = "mob:raw_porkchop",
173 standing_frame = {x=0,y=0},
174 moving_frame = {x=5,y=15},
175 animation_multiplier = 5,
178 has_head = true, --remove this when mesh based head rotation is implemented
179 head_visual = "mesh",
180 head_visual_size = {x = 1.1, y = 1.1},
181 head_mesh = "pig_head.x",
182 head_textures ={"head.png","nose.png"},
183 head_mount = vector.new(0,1.2,1.9),
185 death_rotation = "z",
188 die_sound = "pig_die",
190 attack_type = "punch",
191 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
192 --explosion_power = 7, -- how big the explosion has to be
193 --explosion_time = 3, -- how long it takes for a mob to explode
202 collide_with_objects = false,
203 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
205 visual_size = {x = 3, y = 3},
208 "slimecore.png","slimeeye.png","slimeeye.png","slimeeye.png","slimeoutside.png"
212 automatic_face_movement_dir = 180,
213 automatic_face_movement_max_rotation_per_sec = 300,
214 makes_footstep_sound = false,
216 gravity = {x = 0, y = -9.81, z = 0},
217 movement_type = "jump",
222 item_drop = "mob:slimeball",
224 standing_frame = {x=0,y=0},
225 moving_frame = {x=0,y=0},
226 animation_multiplier = 5,
228 has_head = false, --remove this when mesh based head rotation is implemented
230 death_rotation = "x",
232 hurt_sound = "slime_die",
233 die_sound = "slime_die",
235 attack_type = "punch",
237 die_in_light_level = 12,
244 mobname = "flying_pig",
246 collide_with_objects = false,
247 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
249 visual_size = {x = 3, y = 3},
252 "flying_pig_body.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png"
256 automatic_face_movement_dir = -90.0,
257 automatic_face_movement_max_rotation_per_sec = 300,
258 makes_footstep_sound = false,
260 gravity = {x = 0, y = -1, z = 0},
261 movement_type = "jump",
266 item_drop = "main:gold",
270 standing_frame = {x=0,y=0},
271 moving_frame = {x=5,y=15},
272 animation_multiplier = 5,
275 has_head = true, --remove this when mesh based head rotation is implemented
276 head_visual = "mesh",
277 head_visual_size = {x = 1.1, y = 1.1},
278 head_mesh = "pig_head.x",
279 head_textures ={"flying_pig_head.png","flying_pig_nose.png"},
280 head_mount = vector.new(0,1.2,1.9),
282 death_rotation = "z",
285 die_sound = "pig_die",
287 attack_type = "projectile",
288 projectile_timer_cooldown = 5,
289 projectile_type = "tnt:tnt",
291 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
292 --explosion_power = 7, -- how big the explosion has to be
293 --explosion_time = 3, -- how long it takes for a mob to explode
303 collide_with_objects = false,
304 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
306 visual_size = {x = 3, y = 3},
309 "creepig_body.png","creepig_leg.png","creepig_leg.png","creepig_leg.png","creepig_leg.png"
313 automatic_face_movement_dir = -90.0,
314 automatic_face_movement_max_rotation_per_sec = 300,
315 makes_footstep_sound = false,
317 gravity = {x = 0, y = -9.81, z = 0},
318 movement_type = "walk",
323 item_drop = "mob:cooked_porkchop",
325 standing_frame = {x=0,y=0},
326 moving_frame = {x=5,y=15},
327 animation_multiplier = 5,
330 has_head = true, --remove this when mesh based head rotation is implemented
331 head_visual = "mesh",
332 head_visual_size = {x = 1.1, y = 1.1},
333 head_mesh = "pig_head.x",
334 head_textures ={"creepig_head.png","creepig_nose.png"},
335 head_mount = vector.new(0,1.2,1.9),
337 death_rotation = "z",
340 die_sound = "pig_die",
342 attack_type = "explode",
343 --projectile_timer_cooldown = 5,
344 --projectile_type = "tnt:tnt",
346 explosion_radius = 2, -- how far away the mob has to be to initialize the explosion
347 explosion_power = 7, -- how big the explosion has to be
348 explosion_time = 5, -- how long it takes for a mob to explode
351 die_in_light_level = 12,
361 collide_with_objects = false,
362 collisionbox = {-0.37,0, -0.37, 0.37, 1.5, 0.37},
364 visual_size = {x = 3.2, y = 3.2},
365 mesh = "creeper.b3d",
371 automatic_face_movement_max_rotation_per_sec = 300,
372 makes_footstep_sound = false,
374 gravity = {x = 0, y = -9.81, z = 0},
375 movement_type = "walk",
378 hostile_cooldown = false,
381 item_drop = "mob:cooked_porkchop",
383 standing_frame = {x=0,y=0},
384 moving_frame = {x=0,y=40},
385 animation_multiplier = 20,
389 --these are used to anchor a point to the head position
391 automatic_face_movement_dir = 0,
393 debug_head_pos = false,
394 --this always has to be slightly positive
395 head_directional_offset = 0.01,
396 head_height_offset = 1.45, --added to the base y position
397 --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
398 head_position_correction = vector.new(0,2.4,0),
399 head_coord = "vertical",
403 death_rotation = "x",
405 hurt_sound = "creeper_hurt",
406 die_sound = "creeper_hurt",
408 attack_type = "explode",
409 --projectile_timer_cooldown = 5,
410 --projectile_type = "tnt:tnt",
412 explosion_radius = 3, -- how far away the mob has to be to initialize the explosion
413 explosion_power = 7, -- how big the explosion has to be
414 explosion_time = 3, -- how long it takes for a mob to explode
416 die_in_light = false,
417 --die_in_light_level = 12,
425 mobname = "nitro_creeper",
427 collide_with_objects = false,
428 collisionbox = {-0.37,0, -0.37, 0.37, 1.5, 0.37},
430 visual_size = {x = 3.2, y = 3.2},
431 mesh = "creeper.b3d",
437 automatic_face_movement_max_rotation_per_sec = 300,
438 makes_footstep_sound = false,
440 gravity = {x = 0, y = -9.81, z = 0},
441 movement_type = "walk",
444 hostile_cooldown = false,
447 item_drop = "mob:cooked_porkchop",
449 damage_color = "blue",
451 standing_frame = {x=0,y=0},
452 moving_frame = {x=0,y=40},
453 animation_multiplier = 20,
457 --these are used to anchor a point to the head position
459 automatic_face_movement_dir = 0,
461 debug_head_pos = false,
462 --this always has to be slightly positive
463 head_directional_offset = 0.01,
464 head_height_offset = 1.45, --added to the base y position
465 --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
466 head_position_correction = vector.new(0,2.4,0),
467 head_coord = "vertical",
471 death_rotation = "x",
473 hurt_sound = "creeper_hurt",
474 die_sound = "creeper_hurt",
476 attack_type = "explode",
477 --projectile_timer_cooldown = 5,
478 --projectile_type = "tnt:tnt",
480 explosion_radius = 6, -- how far away the mob has to be to initialize the explosion
481 explosion_power = 14, -- how big the explosion is (radius)
482 explosion_time = 3, -- how long it takes for a mob to explode
484 die_in_light = false,
485 --die_in_light_level = 12,