init.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. skeleton = skeleton or {}
  2. skeleton.modpath = minetest.get_modpath("skeleton")
  3. mobs.register_mob("skeleton:skeleton", {
  4. type = "monster",
  5. description = "Fleshless Skeleton",
  6. reach = 3,
  7. damage = 2,
  8. attack_type = "dogfight",
  9. hp_min = 62,
  10. hp_max = 72,
  11. armor = 100,
  12. armor_level = 3,
  13. collisionbox = {-0.4, 0, -0.4, 0.4, 2.5, 0.4},
  14. visual = "mesh",
  15. mesh = "skeleton_skeleton.b3d",
  16. textures = {
  17. {"skeleton_skeleton.png"},
  18. },
  19. blood_texture = "default_stone.png",
  20. visual_size = {x=0.7, y=0.7},
  21. makes_footstep_sound = true,
  22. walk_velocity = 1,
  23. run_velocity = 2.5,
  24. jump = true,
  25. jump_chance = 100,
  26. walk_chance = 10,
  27. drops = {
  28. {name = "bones:bones_type2", chance = 5, min = 3, max = 6},
  29. {name = "bonemeal:bone", chance = 1, min = 3, max = 6},
  30. },
  31. water_damage = 0,
  32. lava_damage = 2,
  33. light_damage = 1,
  34. fall_damage = 0,
  35. fear_height = 3,
  36. view_range = 14,
  37. animation = {
  38. speed_normal = 15,
  39. speed_run = 20,
  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("skeleton:skeleton", "Skeleton", "default_dirt.png", 1)