init.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ---- SKULL SWORD ------------------------------------------------------------------------------------------------------
  2. mobs:register_mob("frozenskulls:frozenskulls", {
  3. --nametag = "Frozen Skulls" ,
  4. type = "monster",
  5. --passive = false,
  6. armor = 80,
  7. hp_min = (minetest.PLAYER_MAX_HP_DEFAULT - 10),
  8. hp_max = (minetest.PLAYER_MAX_HP_DEFAULT + 10),
  9. walk_velocity = 4,
  10. run_velocity = 5.2,
  11. attack_type = 'dogfight',
  12. pathfinding = true,
  13. stand_chance = 50,
  14. walk_chance = 50,
  15. jump = true,
  16. jump_height = 1.1,
  17. stepheight = 1.1,
  18. pushable = true,
  19. view_range = 16,
  20. damage = 7,
  21. knock_back = true,
  22. fear_height = 6,
  23. fall_damage = true,
  24. lava_damage = 9999,
  25. suffocation = 0,
  26. floats = 0,
  27. reach = 4,
  28. attack_chance = 1,
  29. attack_animals = false,
  30. attack_npcs = true,
  31. attack_players = true,
  32. group_attack = true,
  33. blood_amount = 0,
  34. --[[
  35. hp_min = 10, --Padrão: 80
  36. hp_max = 10, --Padrão: 80
  37. walk_velocity = 1,
  38. run_velocity = 1.5, --padra: 5
  39. attack_type = "dogfight",
  40. pathfinding = true,
  41. jump_height = 2,
  42. stepheight = 1.1,
  43. floats = 0,
  44. view_range = 45,
  45. water_damage = 0,
  46. lava_damage = 1,
  47. light_damage = 0,
  48. damage = 15,
  49. --]]
  50. glow = 4, --Este mob invicado oor magia brulha no escuro como a rainha.
  51. --blood_texture = "bonex.png", --causa lag em servidor quando o mob ke atacado.
  52. makes_footstep_sound = true,
  53. sounds = {
  54. -- SOUNDS LINK :
  55. -- Bones : https://freesound.org/people/spookymodem/sounds/202091/
  56. -- sword : https://freesound.org/people/Merrick079/sounds/568169/
  57. attack = "sword",
  58. death = "falling_bones",
  59. },
  60. --[[
  61. drops = {
  62. --{name = "", chance = 2, min = 1, max = 1},
  63. --{name = "", chance = 5, min = 1, max = 1},
  64. --{name = "", chance = 3, min = 1, max = 1},
  65. },
  66. --]]
  67. visual = 'mesh',
  68. mesh = 'frozenskulls.b3d',
  69. visual_size = {x = 2.7, y = 2.7},
  70. collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
  71. selectionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
  72. textures = {
  73. 'default_tool_steelsword.png',
  74. 'frozenskulls.png^skull_sword_crystal.png',
  75. --'skull_sword_crystal.png',
  76. },
  77. animation = {
  78. stand_start = 0,
  79. stand_end = 40,
  80. stand_speed = 15,
  81. walk_start = 40,
  82. walk_end = 60,
  83. walk_speed = 15,
  84. run_start = 40,
  85. run_end = 60,
  86. run_speed = 30,
  87. shoot_start = 70,
  88. shoot_end = 90,
  89. punch_start = 110,
  90. punch_end = 130,
  91. punch_speed = 25,
  92. die_start = 160,
  93. die_end = 170,
  94. die_speed = 15,
  95. die_loop = false,
  96. },
  97. --[[
  98. visual = "mesh",
  99. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  100. mesh = "skull_sword.b3d",
  101. rotate = 180,
  102. textures = {
  103. {"skull_sword_crystal.png"},
  104. },
  105. animation = {
  106. speed_normal = 15,
  107. speed_run = 15,
  108. stand_start = 0,
  109. stand_end = 0,
  110. walk_start = 15,
  111. walk_end = 33,
  112. run_start = 35,
  113. run_end = 53,
  114. --punch_start = 40,
  115. --punch_end = 63,
  116. },
  117. --]]
  118. })
  119. --[[ ]]
  120. if not mobs.custom_spawn_monster then
  121. mobs:spawn({
  122. name = "frozenskulls:frozenskulls",
  123. nodes = {
  124. "ethereal:crystal",
  125. "ethereal:frost_leaves",
  126. "ethereal:gray_dirt",
  127. },
  128. --min_light = 0,
  129. max_light = 7, --Por brilhsr no escuro, so spawna a noite.
  130. interval = 60,
  131. chance = 600,
  132. min_height = 0,
  133. --max_height = 200,
  134. })
  135. end
  136. --]]
  137. mobs:register_egg("frozenskulls:frozenskulls", "Frozen Skulls", "eggsskullfrozen.png", 1)
  138. core.register_alias("frozenskulls:frozenskulls", "spawneggs:frozenskulls")
  139. mobs:alias_mob("frozenskulls:frozenskulls", "mobs:frozenskulls") -- compatibility