init.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. minetest.register_craftitem("gems_sapphire:sapphire", {
  2. description = "Sapphire",
  3. inventory_image = "sapphire_crystal.png",
  4. })
  5. minetest.register_node("gems_sapphire:sapphire_ore", {
  6. description = "Sapphire Ore",
  7. tiles = {"default_stone.png^sapphire_ore.png"},
  8. groups = {cracky = 2},
  9. drop = {
  10. items = {
  11. {
  12. rarity = 1,
  13. items = {"gems_sapphire:sapphire 2"},
  14. },
  15. {
  16. rarity = 2,
  17. items = {"gems_sapphire:sapphire"},
  18. },
  19. {
  20. rarity = 4,
  21. items = {"gems_sapphire:sapphire 3"},
  22. }
  23. }
  24. },
  25. sounds = default.node_sound_stone_defaults(),
  26. })
  27. minetest.register_ore({
  28. ore_type = "scatter",
  29. ore = "gems_sapphire:sapphire_ore",
  30. wherein = "default:stone",
  31. clust_scarcity = 40*40*40,
  32. clust_num_ores = 27,
  33. clust_size = 6,
  34. y_min = -31000,
  35. y_max = -64,
  36. })
  37. minetest.register_node("gems_sapphire:block", {
  38. description = "Sapphire Block",
  39. tiles = {"sapphire_block.png"},
  40. groups = {cracky=3},
  41. sounds = default.node_sound_glass_defaults(),
  42. })
  43. minetest.register_craft({
  44. output = "gems_sapphire:block",
  45. recipe = {
  46. {"gems_sapphire:sapphire", "gems_sapphire:sapphire"},
  47. {"gems_sapphire:sapphire", "gems_sapphire:sapphire"}
  48. }
  49. })
  50. stairs.register_stair_and_slab("sapphireblock", "gems_sapphire:block",
  51. {cracky=3},
  52. {"sapphire_block.png"},
  53. "Sapphire Stair",
  54. "Sapphire Slab",
  55. default.node_sound_glass_defaults()
  56. )