1
0
Fork 0
TheDarkProject/mods/mobs/slime.lua

41 lines
899 B
Lua
Raw Normal View History

2015-06-29 19:55:56 +02:00
SLIME_SIZE = 1
SLIME_BOX = math.sqrt(2*math.pow(SLIME_SIZE, 2))/2
GRAVITY = 9.8
mobs:register_mob("mobs:slime", {
type = "monster",
hp_max = 8,
--collisionbox = {-0.4, -1.0, -0.4, 0.4, 0.8, 0.4},
collisionbox = {-SLIME_BOX, -SLIME_SIZE/2, -SLIME_BOX, SLIME_BOX, SLIME_SIZE/2, SLIME_BOX},
visual = "cube",
textures = {
"slime_top.png",
"slime_bottom.png",
"slime_front.png",
"slime_sides.png",
"slime_sides.png",
"slime_sides.png",
},
--visual_size = {x = 1.1, y = 1.1},
makes_footstep_sound = true,
view_range = 20,
walk_velocity = 0.2,
randomsound= "slime_random",
run_velocity = 0.2,
on_rightclick = nil,
jump = 1,
damage = 1,
drops = {
{name = "mesecons_materials:glue",
chance = 1,
2017-01-12 03:04:58 +01:00
min = 0,
max = 2,},
2015-06-29 19:55:56 +02:00
},
armor = 100,
drawtype = "front",
lava_damage = 15,
light_damage = 0,
attack_type = "dogfight",
})