40 lines
1.1 KiB
Lua
40 lines
1.1 KiB
Lua
cores={"green","blue","yellow","purple"}
|
|
for n,cor in ipairs(cores) do
|
|
minetest.register_node("starsnodes:stone_with_kyber_"..cor, {
|
|
description = "Kyber Crystal in Stone",
|
|
tiles = {"default_stone.png^starsnodes_kyber"..cor..".png"},
|
|
is_ground_content = true,
|
|
groups = {cracky=18},
|
|
drop = "starsnodes:kyber"..cor,
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
minetest.register_craftitem("starsnodes:kyber"..cor, {
|
|
description = "Kyber Crystal",
|
|
inventory_image = "starsnodes_kyber"..cor.."crystal.png",
|
|
})
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "starsnodes:stone_with_kyber_"..cor,
|
|
wherein = "default:stone",
|
|
clust_scarcity = 5000,
|
|
clust_num_ores = 4,
|
|
clust_size = 3,
|
|
height_min = -59,
|
|
height_max = -52,
|
|
})
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "starsnodes:stone_with_kyber_"..cor,
|
|
wherein = "default:stone",
|
|
clust_scarcity = 10000,
|
|
clust_num_ores = 3,
|
|
clust_size = 2,
|
|
height_min = -55,
|
|
height_max = -53,
|
|
})
|
|
end
|
|
minetest.register_craftitem("starsnodes:kyberred", {
|
|
description = "Bleeding Kyber Crystal",
|
|
inventory_image = "starsnodes_kyberredcrystal.png",
|
|
})
|