mirror of
https://github.com/mt-mods/basic_materials.git
synced 2025-06-30 07:00:36 +02:00
Compare commits
1 Commits
repixture
...
add_items2
Author | SHA1 | Date | |
---|---|---|---|
b6a28e288c |
@ -1,5 +1,5 @@
|
|||||||
globals = {
|
globals = {
|
||||||
"minetest", "basic_materials", "crafting",
|
"minetest", "basic_materials",
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
|
129
crafts.lua
129
crafts.lua
@ -69,25 +69,6 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
|||||||
silver_ingot = "fl_ores:iron_ingot",
|
silver_ingot = "fl_ores:iron_ingot",
|
||||||
silicon = "mesecons_materials:silicon",
|
silicon = "mesecons_materials:silicon",
|
||||||
}
|
}
|
||||||
elseif minetest.get_modpath("rp_default") then
|
|
||||||
materials = {
|
|
||||||
dirt = "rp_default:dirt",
|
|
||||||
sand = "rp_default:sand",
|
|
||||||
gravel = "rp_default:gravel",
|
|
||||||
steel_ingot = "rp_default:ingot_steel",
|
|
||||||
gold_ingot = "rp_default:ingot_gold",
|
|
||||||
mese_crystal_fragment = "rp_default:ingot_steel",
|
|
||||||
torch = "rp_default:torch",
|
|
||||||
diamond = "rp_default:pearl",
|
|
||||||
clay_lump = "rp_default:ingot_steel",
|
|
||||||
water_bucket = "rp_default:swamp_dirt",
|
|
||||||
empty_bucket = "rp_default:dirt",
|
|
||||||
dye_dark_grey = "rp_default:ingot_steel",
|
|
||||||
copper_ingot = "rp_default:ingot_copper",
|
|
||||||
tin_ingot = "rp_default:ingot_tin",
|
|
||||||
silver_ingot = "rp_default:ingot_steel",
|
|
||||||
silicon = "rp_default:ingot_steel",
|
|
||||||
}
|
|
||||||
elseif minetest.get_modpath("hades_core") then
|
elseif minetest.get_modpath("hades_core") then
|
||||||
materials = {
|
materials = {
|
||||||
dirt = "hades_core:dirt",
|
dirt = "hades_core:dirt",
|
||||||
@ -130,44 +111,8 @@ end
|
|||||||
|
|
||||||
local have_hades_materials = minetest.get_modpath("hades_materials")
|
local have_hades_materials = minetest.get_modpath("hades_materials")
|
||||||
|
|
||||||
local function compress_craft(input)
|
|
||||||
local buffer = {}
|
|
||||||
for _, item in pairs(input) do
|
|
||||||
if type(item)=="table" then
|
|
||||||
for _, inneritem in pairs(item) do
|
|
||||||
buffer[inneritem] = (buffer[inneritem] or 0) + 1
|
|
||||||
end
|
|
||||||
elseif item ~= "" then
|
|
||||||
buffer[item] = (buffer[item] or 0) + 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local output = {}
|
|
||||||
for item, count in pairs(buffer) do
|
|
||||||
output[#output + 1] = item .. " " .. count
|
|
||||||
end
|
|
||||||
return output
|
|
||||||
end
|
|
||||||
|
|
||||||
local function register_craft(input)
|
|
||||||
if minetest.get_modpath("rp_crafting") then
|
|
||||||
local rp_craft = compress_craft(input.recipe)
|
|
||||||
if #rp_craft > crafting.MAX_INPUTS then
|
|
||||||
minetest.log("error", "[basic_materials] unable to register craft for " .. input.output)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
crafting.register_craft({
|
|
||||||
output = input.output,
|
|
||||||
items = rp_craft
|
|
||||||
})
|
|
||||||
else
|
|
||||||
minetest.register_craft(input)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Craft recipes
|
-- Craft recipes
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
output = "basic_materials:chainlink_brass 12",
|
output = "basic_materials:chainlink_brass 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "basic_materials:brass_ingot", "basic_materials:brass_ingot"},
|
{"", "basic_materials:brass_ingot", "basic_materials:brass_ingot"},
|
||||||
@ -176,7 +121,7 @@ register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
output = "basic_materials:chain_steel 2",
|
output = "basic_materials:chain_steel 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:chainlink_steel"},
|
{"basic_materials:chainlink_steel"},
|
||||||
@ -185,7 +130,7 @@ register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
output = "basic_materials:chain_brass 2",
|
output = "basic_materials:chain_brass 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:chainlink_brass"},
|
{"basic_materials:chainlink_brass"},
|
||||||
@ -194,13 +139,13 @@ register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:brass_ingot 9",
|
output = "basic_materials:brass_ingot 9",
|
||||||
recipe = {"basic_materials:brass_block"},
|
recipe = {"basic_materials:brass_block"},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:brass_block",
|
output = "basic_materials:brass_block",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:brass_ingot", "basic_materials:brass_ingot", "basic_materials:brass_ingot"},
|
{"basic_materials:brass_ingot", "basic_materials:brass_ingot", "basic_materials:brass_ingot"},
|
||||||
@ -209,14 +154,14 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:plastic_strip 9",
|
output = "basic_materials:plastic_strip 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:empty_spool 3",
|
output = "basic_materials:empty_spool 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
||||||
@ -232,7 +177,7 @@ if have_hades_materials then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:oil_extract 2",
|
output = "basic_materials:oil_extract 2",
|
||||||
recipe = {"group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves"}
|
recipe = {"group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves", "group:leaves"}
|
||||||
@ -279,7 +224,7 @@ minetest.register_craft({
|
|||||||
burntime = 30,
|
burntime = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
output = "basic_materials:concrete_block 6",
|
output = "basic_materials:concrete_block 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:sand", "basic_materials:wet_cement", materials.gravel},
|
{"group:sand", "basic_materials:wet_cement", materials.gravel},
|
||||||
@ -288,7 +233,7 @@ register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:motor 2",
|
output = "basic_materials:motor 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{materials.mese_crystal_fragment, "basic_materials:copper_wire", "basic_materials:plastic_sheet"},
|
{materials.mese_crystal_fragment, "basic_materials:copper_wire", "basic_materials:plastic_sheet"},
|
||||||
@ -301,14 +246,14 @@ register_craft( {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:heating_element 2",
|
output = "basic_materials:heating_element 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{materials.copper_ingot, materials.mese_crystal_fragment, materials.copper_ingot}
|
{materials.copper_ingot, materials.mese_crystal_fragment, materials.copper_ingot}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
--type = "shapeless",
|
--type = "shapeless",
|
||||||
output = "basic_materials:energy_crystal_simple 2",
|
output = "basic_materials:energy_crystal_simple 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -317,7 +262,7 @@ register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:copper_wire 2",
|
output = "basic_materials:copper_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -327,7 +272,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:gold_wire 2",
|
output = "basic_materials:gold_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -337,7 +282,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:steel_wire 2",
|
output = "basic_materials:steel_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -348,7 +293,7 @@ register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if materials.stainless_steel_ingot then
|
if materials.stainless_steel_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:stainless_steel_wire 2",
|
output = "basic_materials:stainless_steel_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -360,7 +305,7 @@ if materials.stainless_steel_ingot then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if materials.aluminum_ingot then
|
if materials.aluminum_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:aluminum_wire 2",
|
output = "basic_materials:aluminum_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -371,7 +316,7 @@ if materials.aluminum_ingot then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:steel_strip 12",
|
output = "basic_materials:steel_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.steel_ingot, ""},
|
{"", materials.steel_ingot, ""},
|
||||||
@ -379,7 +324,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:copper_strip 12",
|
output = "basic_materials:copper_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.copper_ingot, ""},
|
{"", materials.copper_ingot, ""},
|
||||||
@ -387,7 +332,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:gold_strip 12",
|
output = "basic_materials:gold_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.gold_ingot, ""},
|
{"", materials.gold_ingot, ""},
|
||||||
@ -396,7 +341,7 @@ register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if materials.lead_ingot then
|
if materials.lead_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:lead_strip 12",
|
output = "basic_materials:lead_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.lead_ingot, ""},
|
{"", materials.lead_ingot, ""},
|
||||||
@ -406,7 +351,7 @@ if materials.lead_ingot then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if materials.stainless_steel_ingot then
|
if materials.stainless_steel_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:stainless_steel_strip 12",
|
output = "basic_materials:stainless_steel_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.stainless_steel_ingot, ""},
|
{"", materials.stainless_steel_ingot, ""},
|
||||||
@ -416,7 +361,7 @@ if materials.stainless_steel_ingot then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if materials.aluminum_ingot then
|
if materials.aluminum_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:aluminum_strip 12",
|
output = "basic_materials:aluminum_strip 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.aluminum_ingot, ""},
|
{"", materials.aluminum_ingot, ""},
|
||||||
@ -425,7 +370,7 @@ if materials.aluminum_ingot then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:steel_bar 6",
|
output = "basic_materials:steel_bar 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", materials.steel_ingot},
|
{"", "", materials.steel_ingot},
|
||||||
@ -435,7 +380,7 @@ register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if materials.carbon_steel_ingot then
|
if materials.carbon_steel_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:carbon_steel_bar 6",
|
output = "basic_materials:carbon_steel_bar 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", materials.carbon_steel_ingot},
|
{"", "", materials.carbon_steel_ingot},
|
||||||
@ -446,7 +391,7 @@ if materials.carbon_steel_ingot then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if materials.stainless_steel_ingot then
|
if materials.stainless_steel_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:stainless_steel_bar 6",
|
output = "basic_materials:stainless_steel_bar 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", materials.stainless_steel_ingot},
|
{"", "", materials.stainless_steel_ingot},
|
||||||
@ -457,7 +402,7 @@ if materials.stainless_steel_ingot then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if materials.aluminum_ingot then
|
if materials.aluminum_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:aluminum_bar 6",
|
output = "basic_materials:aluminum_bar 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", materials.aluminum_ingot},
|
{"", "", materials.aluminum_ingot},
|
||||||
@ -467,7 +412,7 @@ if materials.aluminum_ingot then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:padlock 2",
|
output = "basic_materials:padlock 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:steel_bar"},
|
{"basic_materials:steel_bar"},
|
||||||
@ -476,7 +421,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
output = "basic_materials:chainlink_steel 12",
|
output = "basic_materials:chainlink_steel 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.steel_ingot, materials.steel_ingot},
|
{"", materials.steel_ingot, materials.steel_ingot},
|
||||||
@ -485,7 +430,7 @@ register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:gear_steel 6",
|
output = "basic_materials:gear_steel 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", materials.steel_ingot, ""},
|
{"", materials.steel_ingot, ""},
|
||||||
@ -494,7 +439,7 @@ register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:terracotta_base 8",
|
output = "basic_materials:terracotta_base 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -505,7 +450,7 @@ register_craft( {
|
|||||||
replacements = {{materials.water_bucket, materials.empty_bucket}},
|
replacements = {{materials.water_bucket, materials.empty_bucket}},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:wet_cement 3",
|
output = "basic_materials:wet_cement 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -519,7 +464,7 @@ register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not have_hades_materials then
|
if not have_hades_materials then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = materials.silicon.." 4",
|
output = materials.silicon.." 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{materials.sand, materials.sand},
|
{materials.sand, materials.sand},
|
||||||
@ -528,7 +473,7 @@ if not have_hades_materials then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:ic 4",
|
output = "basic_materials:ic 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{materials.silicon, materials.silicon},
|
{materials.silicon, materials.silicon},
|
||||||
@ -537,7 +482,7 @@ register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Without moreores, there still should be a way to create brass.
|
-- Without moreores, there still should be a way to create brass.
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:brass_ingot 9",
|
output = "basic_materials:brass_ingot 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{materials.copper_ingot, materials.tin_ingot, materials.copper_ingot},
|
{materials.copper_ingot, materials.tin_ingot, materials.copper_ingot},
|
||||||
@ -547,7 +492,7 @@ register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if materials.silver_ingot then
|
if materials.silver_ingot then
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
output = "basic_materials:silver_wire 2",
|
output = "basic_materials:silver_wire 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -557,7 +502,7 @@ if materials.silver_ingot then
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "basic_materials:brass_ingot 3",
|
output = "basic_materials:brass_ingot 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,3 +1,3 @@
|
|||||||
name = basic_materials
|
name = basic_materials
|
||||||
optional_depends = moreores, default, mesecons_materials, dye, bucket, fl_stone, fl_trees, mcl_sounds, hades_core, hades_sounds, hades_materials, hades_dye, hades_bucket, hades_extraores, hades_mesecons_materials, aloz, rp_crafting
|
optional_depends = moreores, default, mesecons_materials, dye, bucket, fl_stone, fl_trees, mcl_sounds, hades_core, hades_sounds, hades_materials, hades_dye, hades_bucket, hades_extraores, hades_mesecons_materials, aloz
|
||||||
min_minetest_version = 5.2.0
|
min_minetest_version = 5.2.0
|
||||||
|
15
nodes.lua
15
nodes.lua
@ -6,16 +6,14 @@ minetest.register_node("basic_materials:cement_block", {
|
|||||||
description = S("Cement"),
|
description = S("Cement"),
|
||||||
tiles = {"basic_materials_cement_block.png"},
|
tiles = {"basic_materials_cement_block.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=2, dig_stone = 1, pickaxey=5},
|
groups = {cracky=2, dig_stone = 1},
|
||||||
_mcl_hardness=1.6,
|
|
||||||
sounds = sound_api.node_sound_stone_defaults(),
|
sounds = sound_api.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("basic_materials:concrete_block", {
|
minetest.register_node("basic_materials:concrete_block", {
|
||||||
description = S("Concrete Block"),
|
description = S("Concrete Block"),
|
||||||
tiles = {"basic_materials_concrete_block.png",},
|
tiles = {"basic_materials_concrete_block.png",},
|
||||||
groups = {cracky=1, concrete=1, dig_stone = 1, pickaxey=5},
|
groups = {cracky=1, concrete=1, dig_stone = 1},
|
||||||
_mcl_hardness=1.6,
|
|
||||||
sounds = sound_api.node_sound_stone_defaults(),
|
sounds = sound_api.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -29,8 +27,7 @@ minetest.register_node("basic_materials:chain_steel", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
inventory_image = "basic_materials_chain_steel_inv.png",
|
inventory_image = "basic_materials_chain_steel_inv.png",
|
||||||
groups = {cracky=3, dig_stone = 1, pickaxey=5},
|
groups = {cracky=3, dig_stone = 1},
|
||||||
_mcl_hardness=1.6,
|
|
||||||
selection_box = chains_sbox,
|
selection_box = chains_sbox,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -44,8 +41,7 @@ minetest.register_node("basic_materials:chain_brass", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
inventory_image = "basic_materials_chain_brass_inv.png",
|
inventory_image = "basic_materials_chain_brass_inv.png",
|
||||||
groups = {cracky=3, dig_stone = 1, pickaxey=5},
|
groups = {cracky=3, dig_stone = 1},
|
||||||
_mcl_hardness=1.6,
|
|
||||||
selection_box = chains_sbox,
|
selection_box = chains_sbox,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -53,7 +49,6 @@ minetest.register_node("basic_materials:brass_block", {
|
|||||||
description = S("Brass Block"),
|
description = S("Brass Block"),
|
||||||
tiles = { "basic_materials_brass_block.png" },
|
tiles = { "basic_materials_brass_block.png" },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=1, dig_stone = 1, pickaxey=5},
|
groups = {cracky=1, dig_stone = 1},
|
||||||
_mcl_hardness=1.6,
|
|
||||||
sounds = sound_api.node_sound_metal_defaults()
|
sounds = sound_api.node_sound_metal_defaults()
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user