init.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. golem = golem or {}
  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 = 2,
  8. attack_type = "dogfight",
  9. hp_min = 62,
  10. hp_max = 72,
  11. armor = 100,
  12. collisionbox = {-0.6, 0, -0.6, 0.6, 2.5, 0.6},
  13. visual = "mesh",
  14. mesh = "golem_golem.b3d",
  15. textures = {
  16. {"golem_stone_golem.png"},
  17. },
  18. blood_texture = "default_stone.png",
  19. visual_size = {x=0.9, y=0.9},
  20. makes_footstep_sound = true,
  21. walk_velocity = 0.5,
  22. run_velocity = 1,
  23. jump = true,
  24. jump_chance = 100,
  25. walk_chance = 10,
  26. drops = {
  27. {name = "whitestone:stone", chance = 10, min = 5, max = 15},
  28. },
  29. water_damage = 0,
  30. lava_damage = 2,
  31. makes_bones_in_lava = false,
  32. light_damage = 1,
  33. fall_damage = 0,
  34. fear_height = 3,
  35. view_range = 14,
  36. animation = {
  37. speed_normal = 10,
  38. speed_run = 14,
  39. walk_start = 46,
  40. walk_end = 66,
  41. stand_start = 1,
  42. stand_end = 20,
  43. run_start = 46,
  44. run_end = 66,
  45. punch_start = 20,
  46. punch_end = 45,
  47. },
  48. })
  49. mobs.register_egg("golem:stone_golem", "Stone Golem", "default_stone.png", 1)