init.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. minetest.register_craftitem("gems_amethyst:amethyst", {
  2. description = "Amethyst",
  3. inventory_image = "amethyst_crystal.png",
  4. })
  5. minetest.register_node("gems_amethyst:amethyst_ore", {
  6. description = "Amethyst Ore",
  7. tiles = {"default_stone.png^amethyst_ore.png"},
  8. groups = {cracky = 2},
  9. drop = {
  10. items = {
  11. {
  12. rarity = 1,
  13. items = {"gems_amethyst:amethyst 2"},
  14. },
  15. {
  16. rarity = 2,
  17. items = {"gems_amethyst:amethyst"},
  18. },
  19. {
  20. rarity = 4,
  21. items = {"gems_amethyst:amethyst 3"},
  22. }
  23. }
  24. },
  25. sounds = default.node_sound_stone_defaults(),
  26. })
  27. minetest.register_ore({
  28. ore_type = "scatter",
  29. ore = "gems_amethyst:amethyst_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_amethyst:block", {
  38. description = "Amethyst Block",
  39. tiles = {"amethyst_block.png"},
  40. use_texture_alpha = false,
  41. groups = {cracky=3},
  42. sounds = default.node_sound_glass_defaults(),
  43. })
  44. minetest.register_craft({
  45. output = "gems_amethyst:block",
  46. recipe = {
  47. {"amethyst:amethyst", "amethyst:amethyst"},
  48. {"amethyst:amethyst", "amethyst:amethyst"}
  49. }
  50. })
  51. stairs.register_stair_and_slab("amethystblock", "gems_amethyst:block",
  52. {cracky=3},
  53. {"amethyst_block.png"},
  54. "Amethyst Stair",
  55. "Amethyst Slab",
  56. default.node_sound_glass_defaults()
  57. )