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")
23 collide_with_objects = false,
24 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
26 visual_size = {x = 3, y = 3},
29 "body.png","leg.png","leg.png","leg.png","leg.png"
33 automatic_face_movement_dir = -90.0,
34 automatic_face_movement_max_rotation_per_sec = 300,
35 makes_footstep_sound = false,
37 gravity = {x = 0, y = -9.81, z = 0},
38 movement_type = "walk",
44 item_drop = "mob:raw_porkchop",
45 standing_frame = {x=0,y=0},
46 moving_frame = {x=5,y=15},
47 animation_multiplier = 5,
50 has_head = true, --remove this when mesh based head rotation is implemented
52 head_visual_size = {x = 1.1, y = 1.1},
53 head_mesh = "pig_head.x",
54 head_textures ={"head.png","nose.png"},
55 head_mount = vector.new(0,1.2,1.9),
60 die_sound = "pig_die",
62 attack_type = "punch",
63 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
64 --explosion_power = 7, -- how big the explosion has to be
65 --explosion_time = 3, -- how long it takes for a mob to explode
74 collide_with_objects = false,
75 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
77 visual_size = {x = 3, y = 3},
80 "slimecore.png","slimeeye.png","slimeeye.png","slimeeye.png","slimeoutside.png"
84 automatic_face_movement_dir = 180,
85 automatic_face_movement_max_rotation_per_sec = 300,
86 makes_footstep_sound = false,
88 gravity = {x = 0, y = -9.81, z = 0},
89 movement_type = "jump",
94 item_drop = "mob:slimeball",
96 standing_frame = {x=0,y=0},
97 moving_frame = {x=0,y=0},
98 animation_multiplier = 5,
100 has_head = false, --remove this when mesh based head rotation is implemented
102 death_rotation = "x",
104 hurt_sound = "slime_die",
105 die_sound = "slime_die",
107 attack_type = "punch",
109 die_in_light_level = 12,
116 mobname = "flying_pig",
118 collide_with_objects = false,
119 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
121 visual_size = {x = 3, y = 3},
124 "flying_pig_body.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png","flying_pig_leg.png"
128 automatic_face_movement_dir = -90.0,
129 automatic_face_movement_max_rotation_per_sec = 300,
130 makes_footstep_sound = false,
132 gravity = {x = 0, y = -1, z = 0},
133 movement_type = "jump",
138 item_drop = "main:gold",
142 standing_frame = {x=0,y=0},
143 moving_frame = {x=5,y=15},
144 animation_multiplier = 5,
147 has_head = true, --remove this when mesh based head rotation is implemented
148 head_visual = "mesh",
149 head_visual_size = {x = 1.1, y = 1.1},
150 head_mesh = "pig_head.x",
151 head_textures ={"flying_pig_head.png","flying_pig_nose.png"},
152 head_mount = vector.new(0,1.2,1.9),
154 death_rotation = "z",
157 die_sound = "pig_die",
159 attack_type = "projectile",
160 projectile_timer_cooldown = 5,
161 projectile_type = "tnt:tnt",
163 --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
164 --explosion_power = 7, -- how big the explosion has to be
165 --explosion_time = 3, -- how long it takes for a mob to explode
175 collide_with_objects = false,
176 collisionbox = {-0.37, -0.4, -0.37, 0.37, 0.5, 0.37},
178 visual_size = {x = 3, y = 3},
181 "creepig_body.png","creepig_leg.png","creepig_leg.png","creepig_leg.png","creepig_leg.png"
185 automatic_face_movement_dir = -90.0,
186 automatic_face_movement_max_rotation_per_sec = 300,
187 makes_footstep_sound = false,
189 gravity = {x = 0, y = -9.81, z = 0},
190 movement_type = "walk",
195 item_drop = "mob:cooked_porkchop",
197 standing_frame = {x=0,y=0},
198 moving_frame = {x=5,y=15},
199 animation_multiplier = 5,
202 has_head = true, --remove this when mesh based head rotation is implemented
203 head_visual = "mesh",
204 head_visual_size = {x = 1.1, y = 1.1},
205 head_mesh = "pig_head.x",
206 head_textures ={"creepig_head.png","creepig_nose.png"},
207 head_mount = vector.new(0,1.2,1.9),
209 death_rotation = "z",
212 die_sound = "pig_die",
214 attack_type = "explode",
215 --projectile_timer_cooldown = 5,
216 --projectile_type = "tnt:tnt",
218 explosion_radius = 2, -- how far away the mob has to be to initialize the explosion
219 explosion_power = 7, -- how big the explosion has to be
220 explosion_time = 5, -- how long it takes for a mob to explode
223 die_in_light_level = 12,