2017-02-27 02:52:36 +01:00
|
|
|
-- ores/init.lua
|
|
|
|
|
|
|
|
local me = microexpansion
|
2023-12-20 16:50:05 +01:00
|
|
|
local mcl_core_modpath = minetest.get_modpath("mcl_core")
|
|
|
|
stone_ingrediant = mcl_core_modpath and "mcl_core:stone" or "default:stone"
|
|
|
|
|
|
|
|
|
|
|
|
local incranium_y_min = -300
|
|
|
|
local incranium_y_max = -90
|
|
|
|
|
|
|
|
local quartz_y_min = -31000
|
|
|
|
local quartz_y_max = -5
|
|
|
|
|
|
|
|
if mcl_core_modpath then
|
|
|
|
incranium_y_min = -55
|
|
|
|
incranium_y_max = -20
|
|
|
|
quartz_y_min = -50
|
|
|
|
quartz_y_max = 0
|
|
|
|
end
|
2017-02-27 02:52:36 +01:00
|
|
|
|
2017-02-26 19:54:15 +01:00
|
|
|
-- [register] Incranium Ore
|
2017-02-27 02:52:36 +01:00
|
|
|
me.register_node("incranium", {
|
2017-07-25 19:47:25 +02:00
|
|
|
description = "Incranium Ore",
|
|
|
|
tiles = { "incranium" },
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = { cracky=3, stone=1 },
|
|
|
|
type = "ore",
|
|
|
|
oredef = {
|
|
|
|
{
|
|
|
|
ore_type = "blob",
|
2023-12-20 16:50:05 +01:00
|
|
|
wherein = stone_ingrediant,
|
2017-07-25 19:47:25 +02:00
|
|
|
clust_scarcity = 4*4*4,
|
|
|
|
clust_num_ores = 4,
|
|
|
|
clust_size = 3,
|
2023-12-20 16:50:05 +01:00
|
|
|
y_min = incranium_y_min,
|
|
|
|
y_max = incranium_y_max,
|
2017-07-25 19:47:25 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
disabled = true,
|
2017-02-26 18:13:30 +01:00
|
|
|
})
|
|
|
|
|
2023-10-20 18:31:56 +02:00
|
|
|
me.register_item("quartz_crystal", {
|
|
|
|
description = "Quartz Crystal",
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
me.register_node("quartz", {
|
|
|
|
description = "Quartz Ore",
|
|
|
|
tiles = { "default_stone.png^microexpansion_ore_quartz.png" },
|
2017-07-25 19:47:25 +02:00
|
|
|
is_ground_content = true,
|
|
|
|
type = "ore",
|
|
|
|
groups = { cracky=3, stone=1 },
|
2023-10-20 18:31:56 +02:00
|
|
|
drop = "microexpansion:quartz_crystal",
|
2023-11-04 18:00:17 +01:00
|
|
|
oredef = {{
|
|
|
|
ore_type = "scatter",
|
2023-12-20 16:50:05 +01:00
|
|
|
wherein = stone_ingrediant,
|
2023-11-04 18:00:17 +01:00
|
|
|
clust_scarcity = 10*10*10,
|
|
|
|
clust_num_ores = 6,
|
|
|
|
clust_size = 5,
|
2023-12-20 16:50:05 +01:00
|
|
|
y_min = quartz_y_min,
|
|
|
|
y_max = quartz_y_max,
|
2023-11-04 18:00:17 +01:00
|
|
|
}}
|
2017-02-26 18:23:06 +01:00
|
|
|
})
|