tree_monster_acacia.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. local S = mobs.intllib
  2. -- Tree Monster (or Tree Gollum) by PilzAdam
  3. mobs:register_mob("mobs_monster:tree_monster_acacia", {
  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_acacia.png"},
  19. },
  20. blood_texture = "default_acacia_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:acacia_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_acacia",
  51. nodes = {"default:acacia_leaves"},
  52. max_light = 7,
  53. chance = 7000,
  54. min_height = 0,
  55. day_toggle = false,
  56. })
  57. mobs:register_egg("mobs_monster:tree_monster_acacia", S("Acacia Tree Monster"), "default_tree_top.png", 1)