init.lua 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. luxore = luxore or {}
  2. luxore.modpath = minetest.get_modpath("luxore")
  3. minetest.register_craftitem("luxore:luxcrystal", {
  4. description = "Lux Crystal",
  5. inventory_image = "luxore_luxcrystal.png",
  6. })
  7. minetest.register_node("luxore:luxore", {
  8. description = "Lux Ore",
  9. tiles = {"luxore_luxore.png"},
  10. paramtype = "light",
  11. light_source = 14,
  12. groups = utility.dig_groups("cobble"),
  13. drop = "luxore:luxcrystal 4",
  14. silverpick_drop = true,
  15. sounds = default.node_sound_glass_defaults(),
  16. })
  17. minetest.register_craft({
  18. output = "luxore:luxore",
  19. recipe = {
  20. {"", "luxore:luxcrystal", "" },
  21. {"luxore:luxcrystal", "default:cobble", "luxore:luxcrystal" },
  22. {"", "luxore:luxcrystal", "" },
  23. },
  24. })
  25. oregen.register_ore({
  26. ore_type = "scatter",
  27. ore = "luxore:luxore",
  28. wherein = {"default:stone"},
  29. clust_scarcity = 16*16*16,
  30. clust_num_ores = 3,
  31. clust_size = 10,
  32. y_min = -30000,
  33. y_max = -512,
  34. })