microexpansion/modules/ores/init.lua

87 lines
2.0 KiB
Lua
Raw Normal View History

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
local incranium_cracky = 3
local quartz_cracky = 3
2023-12-20 16:50:05 +01:00
if mcl_core_modpath then
incranium_y_min = -55
incranium_y_max = -20
quartz_y_min = -50
quartz_y_max = 0
incranium_cracky = 3
quartz_cracky = 3
2023-12-20 16:50:05 +01:00
end
2017-02-27 02:52:36 +01:00
local quartz_nodedef = {
description = "Quartz Ore",
tiles = { "default_stone.png^microexpansion_ore_quartz.png" },
is_ground_content = true,
type = "ore",
groups = {cracky=quartz_cracky,material_stone=1, stone=1, pickaxey=3},
drop = "microexpansion:quartz_crystal",
oredef = {{
ore_type = "scatter",
wherein = stone_ingrediant,
clust_scarcity = 10*10*10,
clust_num_ores = 6,
clust_size = 5,
y_min = quartz_y_min,
y_max = quartz_y_max,
}},
}
incranium_nodedef = {
2017-07-25 19:47:25 +02:00
description = "Incranium Ore",
tiles = { "incranium" },
is_ground_content = true,
groups = {cracky=incranium_cracky, material_stone=1, stone=1,pickaxey=3 },
2017-07-25 19:47:25 +02:00
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,
}
if mcl_core_modpath then
quartz_nodedef._mcl_hardness = 3
quartz_nodedef._mcl_blast_resistance = 3
quartz_nodedef._mcl_hardness = 3
quartz_nodedef._mcl_silk_touch_drop = true
quartz_nodedef._mcl_fortune_drop = mcl_core.fortune_drop_ore
incranium_nodedef._mcl_hardness = 3
incranium_nodedef._mcl_blast_resistance = 3
incranium_nodedef._mcl_hardness = 3
incranium_nodedef._mcl_silk_touch_drop = true
incranium_nodedef._mcl_fortune_drop = mcl_core.fortune_drop_ore
end
-- [register] Incranium Ore
me.register_node("incranium", incranium_nodedef)
2017-02-26 18:13:30 +01:00
me.register_item("quartz_crystal", {
description = "Quartz Crystal",
})
me.register_node("quartz", quartz_nodedef)