Rename mod: walls → hades_walls
[minetest_hades/hades_revisited.git] / mods / mobs_hades / stone_monster.lua
blobbb8a0d69b6daf962d6083fa47cfc231dd57986eb
1 local S = minetest.get_translator("mobs_hades")
3 -- Stone monster and deep stone monster
5 local stone_monster = {
6 type = "monster",
7 hp_min = 15,
8 hp_max = 25,
9 collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
10 visual = "mesh",
11 mesh = "mobs_stone_monster.x",
12 textures = {"mobs_stone_monster.png"},
13 visual_size = {x=3, y=2.6},
14 makes_footstep_sound = true,
15 sounds = {
16 random = "mobs_stonemonster",
17 attack = "mobs_stonemonster",
18 hurt = "default_node_dig",
19 die = "default_node_dug",
21 view_range = 10,
22 walk_velocity = 0.5,
23 run_velocity = 2,
24 damage = 3,
25 drops = {
26 {name = "hades_core:stone",
27 chance = 2,
28 min = 3,
29 max = 5,},
30 {name = "hades_core:chondrite",
31 chance=3,
32 min=1,
33 max=2,},
34 {name = "hades_core:coal_lump",
35 chance=5,
36 min=1,
37 max=3,},
39 armor = 80,
40 drawtype = "front",
41 water_damage = 0,
42 lava_damage = 0,
43 light_damage = 0,
44 attack_type = "dogfight",
45 animation = {
46 speed_normal = 15,
47 speed_run = 15,
48 stand_start = 0,
49 stand_end = 14,
50 walk_start = 15,
51 walk_end = 38,
52 run_start = 40,
53 run_end = 63,
54 punch_start = 40,
55 punch_end = 63,
57 jump = true,
58 step = 0.5,
59 blood_amount = 0,
60 pathfinding = 1,
62 mobs:register_mob("mobs_hades:stone_monster", stone_monster)
63 mobs:spawn_specific("mobs_hades:stone_monster", {"hades_core:stone", "hades_core:mossystone"}, "air", 0, 3, 90, 7000, 1, -5000, -50)
65 -- Deep stone monster
66 local deep_stone_monster = table.copy(stone_monster)
68 deep_stone_monster.hp_min = 25
69 deep_stone_monster.hp_max = 35
70 deep_stone_monster.damage = 5
71 deep_stone_monster.walk_velocity = 0.4
72 deep_stone_monster.textures = {"mobs_stone_monster2.png"}
73 deep_stone_monster.view_range = 20
75 mobs:register_mob("mobs_hades:deep_stone_monster", deep_stone_monster)
77 mobs:spawn_specific("mobs_hades:deep_stone_monster", {"hades_core:stone", "hades_core:mossystone", "hades_core:chondrite", "hades_core:essexite"}, "air", 0, 3, 90, 7000, 1, -5000, -2500)
78 mobs:spawn_specific("mobs_hades:deep_stone_monster", {"hades_core:stone", "hades_core:mossystone", "hades_core:chondrite", "hades_core:essexite"}, "air", 0, 3, 90, 7000, 1, -30000, -5000)
80 mobs:register_egg("mobs_hades:stone_monster", S("Stone Monster Spawn Egg"), "default_stone.png", 1, false)
81 mobs:register_egg("mobs_hades:deep_stone_monster", S("Deep Stone Monster Spawn Egg"), "default_stone.png^[colorize:#000000:127", 1, false)