2022-04-26 23:13:11 +03:00
|
|
|
local S = minetest.get_translator("mcl_blackstone")
|
|
|
|
|
|
|
|
|
|
|
|
local on_rotate
|
2022-05-03 23:18:07 +03:00
|
|
|
if minetest.get_modpath("screwdriver") then
|
2022-04-26 23:13:11 +03:00
|
|
|
on_rotate = screwdriver.rotate_3way
|
|
|
|
end
|
|
|
|
|
|
|
|
--Blocks
|
|
|
|
minetest.register_node("mcl_blackstone:blackstone", {
|
|
|
|
description = S("Blackstone"),
|
2022-12-14 17:36:36 +03:00
|
|
|
tiles = {"mcl_blackstone_top.png", "mcl_blackstone_top.png", "mcl_blackstone_side.png"},
|
2022-04-26 23:13:11 +03:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1, cobble=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:blackstone_gilded", {
|
|
|
|
description = S("Gilded Blackstone"),
|
2022-12-14 17:36:36 +03:00
|
|
|
tiles = {"mcl_blackstone_gilded.png"},
|
2022-04-26 23:13:11 +03:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1, xp=1},
|
2022-04-26 23:13:11 +03:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2022-09-24 07:12:25 +03:00
|
|
|
{items = {"mcl_core:gold_nugget 2"},rarity = 40},
|
|
|
|
{items = {"mcl_core:gold_nugget 3"},rarity = 40},
|
|
|
|
{items = {"mcl_core:gold_nugget 4"},rarity = 40},
|
|
|
|
{items = {"mcl_core:gold_nugget 5"},rarity = 40},
|
|
|
|
-- 4x 1 in 40 chance adds up to a 10% chance
|
|
|
|
{items = {"mcl_blackstone:blackstone_gilded"}, rarity = 1},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
_mcl_blast_resistance = 2,
|
|
|
|
_mcl_hardness = 2,
|
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
_mcl_fortune_drop = mcl_core.fortune_drop_ore,
|
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:nether_gold", {
|
|
|
|
description = S("Nether Gold Ore"),
|
2022-12-14 17:36:36 +03:00
|
|
|
tiles = {"mcl_nether_gold_ore.png"},
|
2022-04-26 23:13:11 +03:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1, xp=1},
|
2022-04-26 23:13:11 +03:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2022-09-24 07:12:25 +03:00
|
|
|
{items = {"mcl_core:gold_nugget 6"},rarity = 5},
|
2022-05-03 23:18:25 +03:00
|
|
|
{items = {"mcl_core:gold_nugget 5"},rarity = 5},
|
2022-09-24 07:12:25 +03:00
|
|
|
{items = {"mcl_core:gold_nugget 4"},rarity = 5},
|
|
|
|
{items = {"mcl_core:gold_nugget 3"},rarity = 5},
|
|
|
|
{items = {"mcl_core:gold_nugget 2"},rarity = 1},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 3,
|
|
|
|
_mcl_hardness = 3,
|
2022-04-26 23:13:11 +03:00
|
|
|
_mcl_silk_touch_drop = true,
|
|
|
|
_mcl_fortune_drop = mcl_core.fortune_drop_ore,
|
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:basalt_polished", {
|
|
|
|
description = S("Polished Basalt"),
|
|
|
|
tiles = {"mcl_blackstone_basalt_top_polished.png", "mcl_blackstone_basalt_top_polished.png", "mcl_blackstone_basalt_side_polished.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = mcl_util.rotate_axis,
|
|
|
|
on_rotate = on_rotate,
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 4.2,
|
|
|
|
_mcl_hardness = 1.25,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:basalt", {
|
|
|
|
description = S("Basalt"),
|
|
|
|
tiles = {"mcl_blackstone_basalt_top.png", "mcl_blackstone_basalt_top.png", "mcl_blackstone_basalt_side.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_place = mcl_util.rotate_axis,
|
|
|
|
on_rotate = on_rotate,
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 4.2,
|
|
|
|
_mcl_hardness = 1.25,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
2022-06-11 12:59:12 +03:00
|
|
|
minetest.register_node("mcl_blackstone:basalt_smooth", {
|
|
|
|
description = S("Smooth Basalt"),
|
|
|
|
tiles = {"mcl_blackstone_basalt_smooth.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 4.2,
|
|
|
|
_mcl_hardness = 1.25,
|
2022-06-11 12:59:12 +03:00
|
|
|
})
|
2022-04-26 23:13:11 +03:00
|
|
|
minetest.register_node("mcl_blackstone:blackstone_polished", {
|
|
|
|
description = S("Polished Blackstone"),
|
|
|
|
tiles = {"mcl_blackstone_polished.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 6,
|
2022-04-26 23:13:11 +03:00
|
|
|
_mcl_hardness = 2,
|
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:blackstone_chiseled_polished", {
|
|
|
|
description = S("Chiseled Polished Blackstone"),
|
|
|
|
tiles = {"mcl_blackstone_chiseled_polished.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:blackstone_brick_polished", {
|
|
|
|
description = S("Polished Blackstone Bricks"),
|
|
|
|
tiles = {"mcl_blackstone_polished_bricks.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 6,
|
|
|
|
_mcl_hardness = 1.5,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:quartz_brick", {
|
|
|
|
description = S("Quartz Bricks"),
|
|
|
|
tiles = {"mcl_backstone_quartz_bricks.png"},
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2023-01-24 01:17:12 +03:00
|
|
|
groups = {cracky = 3, pickaxey=1, material_stone=1},
|
2022-06-11 13:07:07 +03:00
|
|
|
_mcl_blast_resistance = 0.8,
|
|
|
|
_mcl_hardness = 0.8,
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:soul_soil", {
|
|
|
|
description = S("Soul Soil"),
|
|
|
|
tiles = {"mcl_blackstone_soul_soil.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = mcl_sounds.node_sound_sand_defaults(),
|
2022-05-24 14:24:22 +03:00
|
|
|
groups = { cracky = 3, handy = 1, shovely = 1, soul_block = 1 },
|
2022-04-26 23:13:11 +03:00
|
|
|
_mcl_blast_resistance = 0.5,
|
|
|
|
_mcl_hardness = 0.5,
|
|
|
|
})
|
|
|
|
minetest.register_node("mcl_blackstone:soul_fire", {
|
|
|
|
description = S("Eternal Soul Fire"),
|
2022-04-27 12:48:59 +03:00
|
|
|
_doc_items_longdesc = minetest.registered_nodes["mcl_fire:eternal_fire"]._doc_items_longdesc ,
|
2022-04-26 23:13:11 +03:00
|
|
|
drawtype = "firelike",
|
|
|
|
tiles = {
|
|
|
|
{
|
|
|
|
name = "soul_fire_basic_flame_animated.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inventory_image = "soul_fire_basic_flame.png",
|
|
|
|
paramtype = "light",
|
|
|
|
light_source = 10,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
damage_per_second = 2,
|
2022-04-27 12:48:59 +03:00
|
|
|
_mcl_node_death_message = minetest.registered_nodes["mcl_fire:fire"]._mcl_node_death_message,
|
2022-04-26 23:13:11 +03:00
|
|
|
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1, set_on_fire=8},
|
|
|
|
floodable = true,
|
2022-05-25 06:27:52 +03:00
|
|
|
drop = "",
|
2022-04-26 23:13:11 +03:00
|
|
|
on_flood = function(pos, oldnode, newnode)
|
2022-05-24 14:24:22 +03:00
|
|
|
if minetest.get_item_group(newnode.name, "water") > 0 then
|
2022-04-26 23:13:11 +03:00
|
|
|
minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true)
|
|
|
|
end
|
|
|
|
end,
|
2022-04-27 12:48:59 +03:00
|
|
|
on_construct=function(pos)
|
|
|
|
local under = minetest.get_node(vector.offset(pos,0,-1,0)).name
|
2022-05-24 14:24:22 +03:00
|
|
|
if minetest.get_item_group(under,"soul_block") > 0 then
|
2022-04-27 12:48:59 +03:00
|
|
|
minetest.swap_node(pos, {name = "air"})
|
|
|
|
end
|
|
|
|
end
|
2022-04-26 23:13:11 +03:00
|
|
|
})
|
|
|
|
|
2022-04-27 12:48:59 +03:00
|
|
|
local old_onconstruct=minetest.registered_nodes["mcl_fire:fire"].on_construct
|
|
|
|
minetest.registered_nodes["mcl_fire:fire"].on_construct=function(pos)
|
|
|
|
local under = minetest.get_node(vector.offset(pos,0,-1,0)).name
|
2022-05-24 14:24:22 +03:00
|
|
|
if minetest.get_item_group(under,"soul_block") > 0 then
|
2022-04-27 12:48:59 +03:00
|
|
|
minetest.swap_node(pos, {name = "mcl_blackstone:soul_fire"})
|
|
|
|
end
|
|
|
|
old_onconstruct(pos)
|
|
|
|
end
|
|
|
|
|
2022-04-26 23:13:11 +03:00
|
|
|
--slabs/stairs
|
2022-08-24 08:19:54 +03:00
|
|
|
mcl_stairs.register_stair_and_slab_simple("blackstone", "mcl_blackstone:blackstone", S("Blackstone Stair"), S("Blackstone Slab"), S("Double Blackstone Slab"))
|
|
|
|
mcl_stairs.register_stair_and_slab_simple("blackstone_polished", "mcl_blackstone:blackstone_polished", S("Polished Blackstone Stair"), S("Polished Blackstone Slab"), S("Polished Double Blackstone Slab"))
|
|
|
|
mcl_stairs.register_stair_and_slab_simple("blackstone_chiseled_polished", "mcl_blackstone:blackstone_chiseled_polished", S("Chiseled Polished Blackstone Stair"), S("Chiseled Polished Blackstone Slab"), S("Double Chiseled Polished Blackstone Slab"))
|
|
|
|
mcl_stairs.register_stair_and_slab_simple("blackstone_brick_polished", "mcl_blackstone:blackstone_brick_polished", S("Polished Blackstone Brick Stair"), S("Polished Blackstone Brick Slab"), S("Double Polished Blackstone Brick Slab"))
|
2022-04-26 23:13:11 +03:00
|
|
|
|
|
|
|
--Wall
|
|
|
|
mcl_walls.register_wall("mcl_blackstone:wall", S("Blackstone Wall"), "mcl_blackstone:blackstone")
|
|
|
|
|
|
|
|
--lavacooling
|
2022-11-02 15:03:29 +03:00
|
|
|
|
2022-04-26 23:13:11 +03:00
|
|
|
minetest.register_abm({
|
|
|
|
label = "Lava cooling (basalt)",
|
|
|
|
nodenames = {"group:lava"},
|
|
|
|
neighbors = {"mcl_core:ice"},
|
|
|
|
interval = 1,
|
|
|
|
chance = 1,
|
2022-11-02 15:03:29 +03:00
|
|
|
min_y = mcl_vars.mg_end_min,
|
2022-04-26 23:13:11 +03:00
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
local water = minetest.find_nodes_in_area({x=pos.x-1, y=pos.y-1, z=pos.z-1}, {x=pos.x+1, y=pos.y+1, z=pos.z+1}, "mcl_core:ice")
|
|
|
|
local lavatype = minetest.registered_nodes[node.name].liquidtype
|
|
|
|
for w=1, #water do
|
|
|
|
local waternode = minetest.get_node(water[w])
|
|
|
|
local watertype = minetest.registered_nodes[waternode.name].liquidtype
|
|
|
|
if water[w].y < pos.y and water[w].x == pos.x and water[w].z == pos.z then
|
|
|
|
minetest.set_node(water[w], {name="mcl_blackstone:basalt"})
|
|
|
|
elseif lavatype == "flowing" and water[w].y == pos.y and (water[w].x == pos.x or water[w].z == pos.z) then
|
|
|
|
minetest.set_node(pos, {name="mcl_blackstone:basalt"})
|
|
|
|
elseif lavatype == "flowing" and water[w].y > pos.y and water[w].x == pos.x and water[w].z == pos.z then
|
|
|
|
minetest.set_node(pos, {name="mcl_blackstone:basalt"})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_abm({
|
|
|
|
label = "Lava cooling (blackstone)",
|
|
|
|
nodenames = {"group:lava"},
|
|
|
|
neighbors = {"mcl_core:packed_ice"},
|
|
|
|
interval = 1,
|
|
|
|
chance = 1,
|
2022-11-02 15:03:29 +03:00
|
|
|
min_y = mcl_vars.mg_end_min,
|
2022-04-26 23:13:11 +03:00
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
local water = minetest.find_nodes_in_area({x=pos.x-1, y=pos.y-1, z=pos.z-1}, {x=pos.x+1, y=pos.y+1, z=pos.z+1}, "mcl_core:packed_ice")
|
|
|
|
local lavatype = minetest.registered_nodes[node.name].liquidtype
|
|
|
|
for w=1, #water do
|
|
|
|
local waternode = minetest.get_node(water[w])
|
|
|
|
local watertype = minetest.registered_nodes[waternode.name].liquidtype
|
|
|
|
if water[w].y < pos.y and water[w].x == pos.x and water[w].z == pos.z then
|
|
|
|
minetest.set_node(water[w], {name="mcl_blackstone:blackstone"})
|
|
|
|
elseif lavatype == "flowing" and water[w].y == pos.y and (water[w].x == pos.x or water[w].z == pos.z) then
|
|
|
|
minetest.set_node(pos, {name="mcl_blackstone:blackstone"})
|
|
|
|
elseif lavatype == "flowing" and water[w].y > pos.y and water[w].x == pos.x and water[w].z == pos.z then
|
|
|
|
minetest.set_node(pos, {name="mcl_blackstone:blackstone"})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
--crafting
|
|
|
|
minetest.register_craft({
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_blackstone:blackstone_polished 4",
|
2022-04-26 23:13:11 +03:00
|
|
|
recipe = {
|
2022-05-03 23:18:25 +03:00
|
|
|
{"mcl_blackstone:blackstone","mcl_blackstone:blackstone"},
|
|
|
|
{"mcl_blackstone:blackstone","mcl_blackstone:blackstone"},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_blackstone:basalt_polished 4",
|
2022-04-26 23:13:11 +03:00
|
|
|
recipe = {
|
2022-05-03 23:18:25 +03:00
|
|
|
{"mcl_blackstone:basalt","mcl_blackstone:basalt"},
|
|
|
|
{"mcl_blackstone:basalt","mcl_blackstone:basalt"},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_blackstone:blackstone_chiseled_polished 2",
|
2022-04-26 23:13:11 +03:00
|
|
|
recipe = {
|
2022-05-03 23:18:25 +03:00
|
|
|
{"mcl_blackstone:blackstone_polished"},
|
|
|
|
{"mcl_blackstone:blackstone_polished"},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_blackstone:blackstone_brick_polished 4",
|
2022-04-26 23:13:11 +03:00
|
|
|
recipe = {
|
2022-05-03 23:18:25 +03:00
|
|
|
{"mcl_blackstone:blackstone_polished","mcl_blackstone:blackstone_polished"},
|
|
|
|
{"mcl_blackstone:blackstone_polished","mcl_blackstone:blackstone_polished"},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_blackstone:quartz_brick 4",
|
2022-04-26 23:13:11 +03:00
|
|
|
recipe = {
|
2022-05-03 23:18:25 +03:00
|
|
|
{"mcl_nether:quartz_block","mcl_nether:quartz_block"},
|
|
|
|
{"mcl_nether:quartz_block","mcl_nether:quartz_block"},
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_core:gold_ingot",
|
|
|
|
recipe = "mcl_blackstone:nether_gold",
|
2022-04-26 23:13:11 +03:00
|
|
|
cooktime = 10,
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_core:gold_ingot",
|
|
|
|
recipe = "mcl_blackstone:blackstone_gilded",
|
2022-04-26 23:13:11 +03:00
|
|
|
cooktime = 10,
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2022-05-03 23:18:25 +03:00
|
|
|
output = "mcl_nether:quartz_smooth",
|
|
|
|
recipe = "mcl_nether:quartz_block",
|
2022-04-26 23:13:11 +03:00
|
|
|
cooktime = 10,
|
|
|
|
})
|
2022-04-28 02:00:52 +03:00
|
|
|
--[[ Commented out for now because there the discussion how to handle this is ongoing]
|
2022-04-26 23:13:11 +03:00
|
|
|
--Generating
|
|
|
|
local specialstones = { "mcl_blackstone:blackstone", "mcl_blackstone:basalt", "mcl_blackstone:soul_soil" }
|
|
|
|
for s=1, #specialstones do
|
|
|
|
local node = specialstones[s]
|
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = node,
|
|
|
|
wherein = {"mcl_nether:netherrack"},
|
|
|
|
clust_scarcity = 830,
|
|
|
|
clust_num_ores = 28,
|
|
|
|
clust_size = 3,
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
|
|
|
})
|
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = node,
|
|
|
|
wherein = {"mcl_nether:netherrack"},
|
|
|
|
clust_scarcity = 8*8*8,
|
|
|
|
clust_num_ores = 40,
|
|
|
|
clust_size = 5,
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2022-04-27 01:42:01 +03:00
|
|
|
if minetest.settings:get_bool("mcl_generate_ores", true) then
|
2022-06-17 16:54:36 +03:00
|
|
|
|
2022-04-27 01:42:01 +03:00
|
|
|
end
|
2022-04-28 02:00:52 +03:00
|
|
|
--]]
|
2022-04-27 02:09:24 +03:00
|
|
|
--soul torch
|
|
|
|
mcl_torches.register_torch({
|
|
|
|
name="soul_torch",
|
|
|
|
description=S("Soul Torch"),
|
|
|
|
doc_items_longdesc = S("Torches are light sources which can be placed at the side or on the top of most blocks."),
|
|
|
|
doc_items_hidden = false,
|
|
|
|
icon="soul_torch_on_floor.png",
|
|
|
|
tiles = {{
|
2022-04-26 23:13:11 +03:00
|
|
|
name = "soul_torch_on_floor_animated.png",
|
|
|
|
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
|
|
|
}},
|
2022-04-27 02:09:24 +03:00
|
|
|
light = 12, --soul torches are a bit dimmer than normal torches
|
|
|
|
groups = {dig_immediate = 3, deco_block = 1},
|
|
|
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
|
|
particles = true,
|
2022-10-10 22:50:11 +03:00
|
|
|
flame_type = 2,
|
2022-04-27 02:09:24 +03:00
|
|
|
})
|
2022-04-26 23:13:11 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mcl_blackstone:soul_torch 4",
|
|
|
|
recipe = {
|
2022-04-25 14:55:39 +03:00
|
|
|
{"group:coal"},
|
2022-04-26 23:13:11 +03:00
|
|
|
{ "mcl_core:stick" },
|
2022-05-24 14:24:22 +03:00
|
|
|
{ "group:soul_block" },
|
2022-04-26 23:13:11 +03:00
|
|
|
}
|
|
|
|
})
|