magic_cube.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. -------------------------------------------------------------------------------
  2. --Magic Cube
  3. mobs:register_mob(
  4. "mobs_dungeon:magic_cube",
  5. {
  6. type="monster",
  7. passive=false,
  8. attack_type="dogfight",
  9. pathfinding=true,
  10. reach=2,
  11. damage=3,
  12. hp_min=20,
  13. hp_max=30,
  14. armor=80,
  15. collisionbox={-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
  16. visual_size={x=0.5,y=0.5,z=0.5},
  17. visual="cube",
  18. textures={
  19. "mobs_dungeon_magic_cube_top.png",
  20. "mobs_dungeon_magic_cube_bottom.png",
  21. "mobs_dungeon_magic_cube_right.png",
  22. "mobs_dungeon_magic_cube_left.png",
  23. "mobs_dungeon_magic_cube_front.png",
  24. "mobs_dungeon_magic_cube_back.png",
  25. },
  26. makes_footstep_sound=true,
  27. sounds={
  28. attack="mobs_dungeon_rubiks_attack",
  29. death="mobs_dungeon_rubiks_death",
  30. random="mobs_dungeon_rubiks_random",
  31. },
  32. walk_velocity=1,
  33. run_velocity=2,
  34. jump=true,
  35. jump_height=1,
  36. view_range=10,
  37. drops={},
  38. water_damage=0,
  39. lava_damage=1,
  40. light_damage=0,
  41. }
  42. )
  43. mobs:spawn(
  44. {
  45. name="mobs_dungeon:magic_cube",
  46. nodes={"group:wood"},
  47. chance=6000,
  48. active_object_count=2,
  49. }
  50. )
  51. mobs:register_egg(
  52. "mobs_dungeon:magic_cube", "Magic Cube",
  53. "mobs_dungeon_magic_cube_front.png", 1
  54. )