init.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. mobs:register_mob("heated:heated", {
  2. nametag = "Heated Boss" ,
  3. type = "monster",
  4. passive = true, --So ataca se fir atacado.
  5. attack_chance = 5, --05% de chance do jogador ser atacado sem provocar o mob.
  6. attack_animals = false,
  7. attack_npcs = false,
  8. attack_players = true,
  9. attack_type = "dogfight",
  10. pathfinding = true,
  11. reach = 8, --Padrão: 3 (alcance do golpe.)
  12. damage = 20, --20 é morte instatanea sem armadura.
  13. hp_min = 1400,
  14. hp_max = 1400,
  15. armor = 80,
  16. pushable = true,
  17. collisionbox = {-1.0, -1.5, -1.0, 1.0, 2.0, 1.0},
  18. visual = "mesh",
  19. mesh = "heated.b3d",
  20. rotate = 180,
  21. textures = {
  22. {"heated.png"},
  23. },
  24. glow = 4,
  25. --blood_amount = 3,
  26. --blood_texture = "default_obsidian_shard.png", --causa lag em servidor quando o mob ke atacado.
  27. makes_footstep_sound = true,
  28. sounds = {
  29. -- SOUND :
  30. -- https://freesound.org/people/NicknameLarry/sounds/489901/
  31. random = "monsterhot",
  32. --attack = "monster",
  33. --death = "",
  34. },
  35. fly = true ,
  36. fly_in = "air",
  37. walk_velocity = 2,
  38. run_velocity = 4,
  39. jump_height = 2,
  40. stepheight = 3.0,
  41. floats = 0,
  42. view_range = 35,
  43. drops = {
  44. {name = "ebitems:sword_obsidian", chance = 1, min = 1, max = 1},
  45. {name = "ebitems:heated_trophy", chance = 1, min = 1, max = 1},
  46. --{name = "", chance = 2, min = 1, max = 2},
  47. },
  48. water_damage = 1,
  49. lava_damage = 0,
  50. light_damage = 0,
  51. animation = {
  52. speed_normal = 15,
  53. speed_run = 30,
  54. speed_punch = 50,
  55. stand_start = 1,
  56. stand_end = 20,
  57. walk_start = 30,
  58. walk_end = 70,
  59. run_start = 80,
  60. run_end = 100,
  61. punch_start = 110,
  62. punch_end = 130,
  63. },
  64. })
  65. if not mobs.custom_spawn_monster then
  66. mobs:spawn({
  67. name = "heated:heated",
  68. nodes = {"ethereal:fiery_dirt"},
  69. min_light = 7,
  70. --max_light = 14,
  71. interval = 60,
  72. chance = 12000,
  73. --max_height = 200,
  74. min_height = 0,
  75. })
  76. end
  77. mobs:register_egg("heated:heated", "heated", "eggsheated.png", 1)
  78. core.register_alias("heated:heated", "spawneggs:heated")
  79. mobs:alias_mob("heated:heated", "mobs:heated") -- compatibility