init.lua 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. place_param2 = 10,
  17. })
  18. minetest.register_craft({
  19. output = "luxore:luxore",
  20. recipe = {
  21. {"", "luxore:luxcrystal", "" },
  22. {"luxore:luxcrystal", "default:cobble", "luxore:luxcrystal" },
  23. {"", "luxore:luxcrystal", "" },
  24. },
  25. })
  26. oregen.register_ore({
  27. ore_type = "scatter",
  28. ore = "luxore:luxore",
  29. wherein = {"default:stone"},
  30. clust_scarcity = 16*16*16,
  31. clust_num_ores = 3,
  32. clust_size = 10,
  33. y_min = -30000,
  34. y_max = -512,
  35. })