Merge pull request 'Added raw ores to iron and gold ore drops' (#2490) from raw_ore_drops into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2490
Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-25 22:24:59 +00:00
commit 3a09405a1c
2 changed files with 48 additions and 39 deletions

View File

@ -63,11 +63,12 @@ minetest.register_node("mcl_core:stone_with_iron", {
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=3, building_block=1, material_stone=1, blast_furnace_smeltable=1},
drop = "mcl_core:stone_with_iron",
drop = "mcl_raw_ores:raw_iron",
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 3,
_mcl_hardness = 3,
_mcl_silk_touch_drop = true,
_mcl_fortune_drop = mcl_core.fortune_drop_ore,
})
@ -78,11 +79,12 @@ minetest.register_node("mcl_core:stone_with_gold", {
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=4, building_block=1, material_stone=1, blast_furnace_smeltable=1},
drop = "mcl_core:stone_with_gold",
drop = "mcl_raw_ores:raw_gold",
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 3,
_mcl_hardness = 3,
_mcl_silk_touch_drop = true,
_mcl_fortune_drop = mcl_core.fortune_drop_ore,
})
local redstone_timer = 68.28

View File

@ -8,7 +8,7 @@ local function register_raw_ore(description, n)
description = ("Raw "..description),
_doc_items_longdesc = ("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."),
inventory_image = texture..".png",
groups = { craftitem = 1 },
groups = { craftitem = 1, blast_furnace_smeltable = 1 },
})
minetest.register_node(raw_ingot.."_block", {
@ -16,7 +16,7 @@ local function register_raw_ore(description, n)
_doc_items_longdesc = ("A block of raw "..ore.." is mostly a decorative block but also useful as a compact storage of raw "..ore.."."),
tiles = { texture.."_block.png" },
is_ground_content = false,
groups = { pickaxey = 2, building_block = 1 },
groups = { pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1 },
sounds = mcl_sounds.node_sound_metal_defaults(),
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
@ -38,6 +38,13 @@ local function register_raw_ore(description, n)
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "mcl_core:"..ore.."block",
recipe = raw_ingot.."_block",
cooktime = 90,
})
minetest.register_craft({
output = raw_ingot.." 9",
recipe = {