forked from VoxeLibre/VoxeLibre
Amethyst migration
This commit is contained in:
parent
81f89cdd78
commit
cbed7e4f04
|
@ -5,17 +5,6 @@ local sounds = mcl_sounds.node_sound_glass_defaults({
|
|||
dug = {name = "mcl_amethyst_amethyst_break", gain = 0.44},
|
||||
})
|
||||
|
||||
-- Amethyst block
|
||||
minetest.register_node("mcl_amethyst:amethyst_block",{
|
||||
description = S("Block of Amethyst"),
|
||||
tiles = {"mcl_amethyst_amethyst_block.png"},
|
||||
groups = {pickaxey = 1, building_block = 1},
|
||||
sounds = sounds,
|
||||
is_ground_content = true,
|
||||
_mcl_hardness = 1.5,
|
||||
_mcl_blast_resistance = 1.5,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_amethyst:budding_amethyst_block",{
|
||||
description = S("Budding Amethyst"),
|
||||
tiles = {"mcl_amethyst_budding_amethyst.png"},
|
||||
|
|
|
@ -34,23 +34,23 @@ local function makegeode(pos,def,pr)
|
|||
--if not nn[1] then return end
|
||||
|
||||
for i=1,pr:next(1, math.max(2, #nn - math.ceil(#nn/5) )) do
|
||||
set_node_no_bedrock(nn[i],{name="mcl_amethyst:amethyst_block"})
|
||||
set_node_no_bedrock(nn[i],{name="blocks:amethyst_block"})
|
||||
end
|
||||
|
||||
for k,v in pairs(minetest.find_nodes_in_area(p1,p2,{"mcl_amethyst:amethyst_block"})) do
|
||||
for k,v in pairs(minetest.find_nodes_in_area(p1,p2,{"blocks:amethyst_block"})) do
|
||||
local all_amethyst = true
|
||||
for kk,vv in pairs(adjacents) do
|
||||
local pp = vector.add(v,vv)
|
||||
local an = minetest.get_node(pp)
|
||||
if an.name ~= "mcl_amethyst:amethyst_block" then
|
||||
if an.name ~= "blocks:amethyst_block" then
|
||||
if minetest.get_item_group(an.name,"material_stone") > 0 then
|
||||
set_node_no_bedrock(pp,{name="blocks:calcite"})
|
||||
table.insert(calcite,pp)
|
||||
if pr:next(1,5) == 1 then
|
||||
set_node_no_bedrock(v,{name="mcl_amethyst:budding_amethyst_block"})
|
||||
set_node_no_bedrock(v,{name="blocks:budding_amethyst"})
|
||||
end
|
||||
all_amethyst = false
|
||||
elseif an.name ~= "mcl_amethyst:amethyst_block" and an.name ~= "air" and an.name ~= "mcl_amethyst:budding_amethyst_block" then
|
||||
elseif an.name ~= "blocks:amethyst_block" and an.name ~= "air" and an.name ~= "blocks:budding_amethyst" then
|
||||
all_amethyst = false
|
||||
end
|
||||
end
|
||||
|
@ -60,11 +60,11 @@ local function makegeode(pos,def,pr)
|
|||
|
||||
for _,v in pairs(calcite) do
|
||||
for _,vv in pairs(minetest.find_nodes_in_area(vector.offset(v,-1,-1,-1),vector.offset(v,1,1,1),{"group:material_stone"})) do
|
||||
set_node_no_bedrock(vv,{name="mcl_blackstone:basalt_smooth"})
|
||||
set_node_no_bedrock(vv,{name="blocks:basalt"})
|
||||
end
|
||||
end
|
||||
|
||||
for k,v in pairs(minetest.find_nodes_in_area_under_air(p1,p2,{"mcl_amethyst:amethyst_block","mcl_amethyst:budding_amethyst_block"})) do
|
||||
for k,v in pairs(minetest.find_nodes_in_area_under_air(p1,p2,{"blocks:amethyst_block","blocks:budding_amethyst"})) do
|
||||
local r = pr:next(1,50)
|
||||
if r < 10 then
|
||||
set_node_no_bedrock(vector.offset(v,0,1,0),{name="mcl_amethyst:amethyst_cluster",param2=1})
|
||||
|
|
|
@ -15,6 +15,20 @@ local common_defs = {
|
|||
}
|
||||
}
|
||||
|
||||
local amethyst_blocks = {
|
||||
["budding_amethyst"] = {
|
||||
_mcl_blast_resistance = 1.5,
|
||||
_mcl_hardness = 1.5,
|
||||
drop = "",
|
||||
groups = {natural_blocks = 1},
|
||||
sounds = mcl_sounds.node_sound_glass_defaults()
|
||||
}
|
||||
}
|
||||
|
||||
for identifier, definitions in pairs(amethyst_blocks) do
|
||||
voxelibre.register_block(identifier, definitions)
|
||||
end
|
||||
|
||||
local overworld_ores = {
|
||||
["coal"] = {
|
||||
drop = "items:coal",
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 200 B |
Binary file not shown.
Before Width: | Height: | Size: 162 B |
Loading…
Reference in New Issue