init.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. if not minetest.global_exists("golem") then golem = {} end
  2. golem.modpath = minetest.get_modpath("golem")
  3. mobs.register_mob("golem:stone_golem", {
  4. type = "monster",
  5. description = "Giant Stone Golem",
  6. reach = 3,
  7. damage = 6*500,
  8. damage_group = "crush",
  9. attack_type = "dogfight",
  10. hp_min = 62*500,
  11. hp_max = 72*500,
  12. armor = 100,
  13. collisionbox = {-0.6, 0, -0.6, 0.6, 2.5, 0.6},
  14. visual = "mesh",
  15. mesh = "golem_golem.b3d",
  16. textures = {
  17. {"golem_stone_golem.png"},
  18. },
  19. blood_texture = "default_stone.png",
  20. visual_size = {x=0.9, y=0.9},
  21. makes_footstep_sound = true,
  22. walk_velocity = 0.5,
  23. run_velocity = 1,
  24. jump = true,
  25. jump_chance = 100,
  26. walk_chance = 10,
  27. drops = {
  28. {name = "whitestone:stone", chance = 10, min = 5, max = 15},
  29. },
  30. water_damage = 0,
  31. lava_damage = 2*500,
  32. makes_bones_in_lava = false,
  33. light_damage = 1*500,
  34. fall_damage = 0,
  35. fear_height = 3,
  36. view_range = 14,
  37. animation = {
  38. speed_normal = 10,
  39. speed_run = 14,
  40. walk_start = 46,
  41. walk_end = 66,
  42. stand_start = 1,
  43. stand_end = 20,
  44. run_start = 46,
  45. run_end = 66,
  46. punch_start = 20,
  47. punch_end = 45,
  48. },
  49. })
  50. mobs.register_egg("golem:stone_golem", "Stone Golem", "default_stone.png", 1)