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,
111 gravity = {x = 0, y = -9.81, z = 0},
112 movement_type = "walk",
117 item_drop = "mob:raw_porkchop",
118 standing_frame = {x=0,y=0},
119 moving_frame = {x=0,y=40},
120 animation_multiplier = 20,
123 death_rotation = "x",
126 die_sound = "pig_die",
130 attacked_hostile = false,
131 attack_type = "punch",
133 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
134 --explosion_power = 7, -- how big the explosion has to be
135 --explosion_time = 3, -- how long it takes for a mob to explode
145 collide_with_objects = false,
146 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
148 visual_size = {x = 3, y = 3},
149 mesh = "chicken.b3d",
151 --if you're wondering what mob this is, it's a chicken
152 "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"
156 automatic_face_movement_dir = -90.0,
157 automatic_face_movement_max_rotation_per_sec = 300,
158 makes_footstep_sound = false,
160 gravity = {x = 0, y = -9.81, z = 0},
161 movement_type = "walk",
167 item_drop = "mob:raw_porkchop",
168 standing_frame = {x=0,y=0},
169 moving_frame = {x=5,y=15},
170 animation_multiplier = 5,
173 has_head = true, --remove this when mesh based head rotation is implemented
174 head_visual = "mesh",
175 head_visual_size = {x = 1.1, y = 1.1},
176 head_mesh = "pig_head.x",
177 head_textures ={"head.png","nose.png"},
178 head_mount = vector.new(0,1.2,1.9),
180 death_rotation = "z",
183 die_sound = "pig_die",
185 attack_type = "punch",
186 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
187 --explosion_power = 7, -- how big the explosion has to be
188 --explosion_time = 3, -- how long it takes for a mob to explode
197 collide_with_objects = false,
198 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
200 visual_size = {x = 3, y = 3},
203 "slimecore.png","slimeeye.png","slimeeye.png","slimeeye.png","slimeoutside.png"
207 automatic_face_movement_dir = 180,
208 automatic_face_movement_max_rotation_per_sec = 300,
209 makes_footstep_sound = false,
211 gravity = {x = 0, y = -9.81, z = 0},
212 movement_type = "jump",
217 item_drop = "mob:slimeball",
219 standing_frame = {x=0,y=0},
220 moving_frame = {x=0,y=0},
221 animation_multiplier = 5,
223 has_head = false, --remove this when mesh based head rotation is implemented
225 death_rotation = "x",
227 hurt_sound = "slime_die",
228 die_sound = "slime_die",
230 attack_type = "punch",
232 die_in_light_level = 12,
239 mobname = "flying_pig",
241 collide_with_objects = false,
242 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
244 visual_size = {x = 3, y = 3},
247 "flying_pig_body.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png"
251 automatic_face_movement_dir = -90.0,
252 automatic_face_movement_max_rotation_per_sec = 300,
253 makes_footstep_sound = false,
255 gravity = {x = 0, y = -1, z = 0},
256 movement_type = "jump",
261 item_drop = "main:gold",
265 standing_frame = {x=0,y=0},
266 moving_frame = {x=5,y=15},
267 animation_multiplier = 5,
270 has_head = true, --remove this when mesh based head rotation is implemented
271 head_visual = "mesh",
272 head_visual_size = {x = 1.1, y = 1.1},
273 head_mesh = "pig_head.x",
274 head_textures ={"flying_pig_head.png","flying_pig_nose.png"},
275 head_mount = vector.new(0,1.2,1.9),
277 death_rotation = "z",
280 die_sound = "pig_die",
282 attack_type = "projectile",
283 projectile_timer_cooldown = 5,
284 projectile_type = "tnt:tnt",
286 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
287 --explosion_power = 7, -- how big the explosion has to be
288 --explosion_time = 3, -- how long it takes for a mob to explode
298 collide_with_objects = false,
299 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
301 visual_size = {x = 3, y = 3},
304 "creepig_body.png","creepig_leg.png","creepig_leg.png","creepig_leg.png","creepig_leg.png"
308 automatic_face_movement_dir = -90.0,
309 automatic_face_movement_max_rotation_per_sec = 300,
310 makes_footstep_sound = false,
312 gravity = {x = 0, y = -9.81, z = 0},
313 movement_type = "walk",
318 item_drop = "mob:cooked_porkchop",
320 standing_frame = {x=0,y=0},
321 moving_frame = {x=5,y=15},
322 animation_multiplier = 5,
325 has_head = true, --remove this when mesh based head rotation is implemented
326 head_visual = "mesh",
327 head_visual_size = {x = 1.1, y = 1.1},
328 head_mesh = "pig_head.x",
329 head_textures ={"creepig_head.png","creepig_nose.png"},
330 head_mount = vector.new(0,1.2,1.9),
332 death_rotation = "z",
335 die_sound = "pig_die",
337 attack_type = "explode",
338 --projectile_timer_cooldown = 5,
339 --projectile_type = "tnt:tnt",
341 explosion_radius = 2, -- how far away the mob has to be to initialize the explosion
342 explosion_power = 7, -- how big the explosion has to be
343 explosion_time = 5, -- how long it takes for a mob to explode
346 die_in_light_level = 12,
356 collide_with_objects = false,
357 collisionbox = {-0.37,0, -0.37, 0.37, 1.5, 0.37},
359 visual_size = {x = 3.2, y = 3.2},
360 mesh = "creeper.b3d",
366 automatic_face_movement_max_rotation_per_sec = 300,
367 makes_footstep_sound = false,
369 gravity = {x = 0, y = -9.81, z = 0},
370 movement_type = "walk",
375 item_drop = "mob:cooked_porkchop",
377 standing_frame = {x=0,y=0},
378 moving_frame = {x=0,y=40},
379 animation_multiplier = 20,
383 --these are used to anchor a point to the head position
385 automatic_face_movement_dir = 0,
387 debug_head_pos = false,
388 --this always has to be slightly positive
389 head_directional_offset = 0.01,
390 head_height_offset = 1.45, --added to the base y position
391 --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
392 head_position_correction = vector.new(0,2.4,0),
393 head_coord = "vertical",
397 death_rotation = "x",
399 hurt_sound = "creeper_hurt",
400 die_sound = "creeper_hurt",
402 attack_type = "explode",
403 --projectile_timer_cooldown = 5,
404 --projectile_type = "tnt:tnt",
406 explosion_radius = 2, -- how far away the mob has to be to initialize the explosion
407 explosion_power = 7, -- how big the explosion has to be
408 explosion_time = 5, -- how long it takes for a mob to explode
410 die_in_light = false,
411 --die_in_light_level = 12,