tree_monster_pine.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. local S = mobs.intllib
  2. -- Tree Monster (or Tree Gollum) by PilzAdam
  3. mobs:register_mob("mobs_monster:tree_monster_pine", {
  4. type = "monster",
  5. passive = false,
  6. attack_type = "dogfight",
  7. attack_animals = true,
  8. --specific_attack = {"player", "mobs_animal:chicken"},
  9. reach = 2,
  10. damage = 2,
  11. hp_min = 7,
  12. hp_max = 33,
  13. armor = 100,
  14. collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
  15. visual = "mesh",
  16. mesh = "mobs_tree_monster.b3d",
  17. textures = {
  18. {"mobs_tree_monster_pine.png"},
  19. },
  20. blood_texture = "default_pine_wood.png",
  21. makes_footstep_sound = true,
  22. sounds = {
  23. random = "mobs_treemonster",
  24. },
  25. walk_velocity = 1,
  26. run_velocity = 3,
  27. jump = true,
  28. view_range = 15,
  29. drops = {
  30. {name = "default:pine_sapling", chance = 3, min = 1, max = 2},
  31. },
  32. water_damage = 0,
  33. lava_damage = 0,
  34. light_damage = 2,
  35. fall_damage = 0,
  36. animation = {
  37. speed_normal = 15,
  38. speed_run = 15,
  39. stand_start = 0,
  40. stand_end = 24,
  41. walk_start = 25,
  42. walk_end = 47,
  43. run_start = 48,
  44. run_end = 62,
  45. punch_start = 48,
  46. punch_end = 62,
  47. },
  48. })
  49. mobs:spawn({
  50. name = "mobs_monster:tree_monster_pine",
  51. nodes = {"default:pine_needles"},
  52. max_light = 7,
  53. chance = 7000,
  54. min_height = 0,
  55. day_toggle = false,
  56. })
  57. mobs:register_egg("mobs_monster:tree_monster_pine", S("Pine Tree Monster"), "default_tree_top.png", 1)
  58. --mobs:alias_mob("mobs_monster:tree_monster_pine") -- compatibility