oerkki.lua 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. -- Oerkki by PilzAdam
  2. mobs:register_mob("mobs_flat:oerkki", {
  3. type = "monster",
  4. passive = false,
  5. attack_type = "dogfight",
  6. pathfinding = true,
  7. reach = 2,
  8. damage = 2,
  9. hp_min = 8,
  10. hp_max = 32,
  11. armor = 100,
  12. collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
  13. visual = "upright_sprite",
  14. visual_size = {x=2, y=2},
  15. textures = {
  16. "mobs_flat_oerkki_front.png",
  17. "mobs_flat_oerkki_back.png",
  18. },
  19. makes_footstep_sound = false,
  20. sounds = {
  21. random = "mobs_oerkki",
  22. },
  23. walk_velocity = 0.5,
  24. run_velocity = 2,
  25. view_range = 5,
  26. jump = true,
  27. drops = {},
  28. water_damage = 2,
  29. lava_damage = 4,
  30. light_damage = 0,
  31. fear_height = 4,
  32. replace_rate = 5,
  33. replace_what = {"default:torch"},
  34. replace_with = "air",
  35. replace_offset = -1,
  36. floats = 1,
  37. })
  38. mobs:spawn({
  39. name = "mobs_flat:oerkki",
  40. nodes = {"default:stone", "default:cobble"},
  41. neighbors = {"default:stone_with_copper"},
  42. chance = 7,
  43. active_object_count = 8,
  44. })
  45. mobs:register_egg("mobs_flat:oerkki", "Oerkki", "default_coal_block.png", 1)