init.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. --SOUNDS :
  2. -- NORMAL : ??
  3. mobs:register_mob("frog:frog", {
  4. --nametag = "frog" ,
  5. type = "animal",
  6. passive = false,
  7. attack_type = "dogfight",
  8. attack_animals = true,
  9. specific_attack = { "mobs_animal:bee" },
  10. pathfinding = true,
  11. reach = 2,
  12. damage = 5,
  13. hp_min = 2,
  14. hp_max = 5,
  15. armor = 150,
  16. collisionbox = {-0.3, -1.0, -0.2, 0.2, 0.05, 0.2},
  17. visual = "mesh",
  18. mesh = "frog.b3d",
  19. rotate = 180,
  20. textures = {
  21. {"frog.png"},
  22. {"frog_brown.png"},
  23. {"frog_red.png"},
  24. },
  25. --blood_texture = "",
  26. makes_footstep_sound = true,
  27. sounds = {
  28. --attack = "",
  29. random = "frog",
  30. --death = "",
  31. },
  32. walk_velocity = 2,
  33. run_velocity = 3,
  34. jump = true,
  35. jump_height = 6,
  36. fly_in = {"default:water_source", "default:water_flowing"},
  37. floats = 0,
  38. stepheight = 1.1,
  39. fall_damage = 1,
  40. view_range = 20,
  41. drops = {
  42. --{name = "skulls:bone", chance = 2, min = 1, max = 1},
  43. },
  44. water_damage = 0,
  45. lava_damage = 5,
  46. light_damage = 0,
  47. follow = {"mobs_animal:bee"},
  48. animation = {
  49. speed_normal = 15,
  50. stand_start = 0,
  51. stand_end = 15,
  52. walk_start = 20,
  53. walk_end = 100,
  54. fly_start = 20,
  55. fly_end = 100,
  56. --run_start = 50,
  57. --run_end = 59,
  58. punch_start = 120,
  59. punch_end = 140,
  60. punch_speed = 30,
  61. },
  62. on_rightclick = function(self, clicker) -- No momento pode somente , repodruzir ou Curar...
  63. if mobs:feed_tame(self, clicker, 8, true, true) then
  64. return
  65. end
  66. if mobs:protect(self, clicker) then return end
  67. if mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) then return end
  68. end,
  69. })
  70. mobs:spawn({
  71. name = "frog:frog",
  72. nodes = {"default:dirt_with_rainforest_litter"},
  73. min_light = 8,
  74. --max_light = 14,
  75. chance = 10000,
  76. min_height = 0,
  77. max_height = 200,
  78. })
  79. mobs:register_egg("frog:frog", "Frog", "frogegg.png", 1)