mirror of
				https://github.com/mt-mods/basic_materials.git
				synced 2025-10-31 04:45:32 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			b9ac85790d
			...
			repixture
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 17662b3f38 | ||
|  | 55fae27d05 | ||
|  | d52bb607a0 | 
| @@ -1,5 +1,5 @@ | |||||||
| globals = { | globals = { | ||||||
|     "minetest", "basic_materials", |     "minetest", "basic_materials", "crafting", | ||||||
| } | } | ||||||
|  |  | ||||||
| read_globals = { | read_globals = { | ||||||
|   | |||||||
| @@ -91,6 +91,12 @@ minetest.register_craftitem("basic_materials:stainless_steel_wire", { | |||||||
| 	inventory_image = "basic_materials_stainless_steel_wire.png" | 	inventory_image = "basic_materials_stainless_steel_wire.png" | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:aluminum_wire", { | ||||||
|  | 	description = S("Spool of aluminum wire"), | ||||||
|  | 	groups = { wire = 1 }, | ||||||
|  | 	inventory_image = "basic_materials_aluminum_wire.png" | ||||||
|  | }) | ||||||
|  |  | ||||||
| minetest.register_craftitem("basic_materials:steel_strip", { | minetest.register_craftitem("basic_materials:steel_strip", { | ||||||
| 	description = S("Steel Strip"), | 	description = S("Steel Strip"), | ||||||
| 	groups = { strip = 1 }, | 	groups = { strip = 1 }, | ||||||
| @@ -109,6 +115,24 @@ minetest.register_craftitem("basic_materials:lead_strip", { | |||||||
| 	inventory_image = "basic_materials_lead_strip.png" | 	inventory_image = "basic_materials_lead_strip.png" | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:gold_strip", { | ||||||
|  | 	description = S("Gold Strip"), | ||||||
|  | 	groups = { strip = 1 }, | ||||||
|  | 	inventory_image = "basic_materials_gold_strip.png" | ||||||
|  | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:stainless_steel_strip", { | ||||||
|  | 	description = S("Stainless Steel Strip"), | ||||||
|  | 	groups = { strip = 1 }, | ||||||
|  | 	inventory_image = "basic_materials_stainless_steel_strip.png" | ||||||
|  | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:aluminum_strip", { | ||||||
|  | 	description = S("Aluminum Strip"), | ||||||
|  | 	groups = { strip = 1 }, | ||||||
|  | 	inventory_image = "basic_materials_aluminum_strip.png" | ||||||
|  | }) | ||||||
|  |  | ||||||
| minetest.register_craftitem("basic_materials:steel_bar", { | minetest.register_craftitem("basic_materials:steel_bar", { | ||||||
| 	description = S("Steel Bar"), | 	description = S("Steel Bar"), | ||||||
| 	inventory_image = "basic_materials_steel_bar.png", | 	inventory_image = "basic_materials_steel_bar.png", | ||||||
| @@ -119,6 +143,16 @@ minetest.register_craftitem("basic_materials:carbon_steel_bar", { | |||||||
| 	inventory_image = "basic_materials_carbon_steel_bar.png", | 	inventory_image = "basic_materials_carbon_steel_bar.png", | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:stainless_steel_bar", { | ||||||
|  | 	description = S("Stainless Steel Bar"), | ||||||
|  | 	inventory_image = "basic_materials_stainless_steel_bar.png", | ||||||
|  | }) | ||||||
|  |  | ||||||
|  | minetest.register_craftitem("basic_materials:aluminum_bar", { | ||||||
|  | 	description = S("Aluminum Bar"), | ||||||
|  | 	inventory_image = "basic_materials_aluminum_bar.png", | ||||||
|  | }) | ||||||
|  |  | ||||||
| minetest.register_craftitem("basic_materials:chainlink_brass", { | minetest.register_craftitem("basic_materials:chainlink_brass", { | ||||||
| 	description = S("Chainlinks (brass)"), | 	description = S("Chainlinks (brass)"), | ||||||
| 	groups = { chainlinks = 1 }, | 	groups = { chainlinks = 1 }, | ||||||
|   | |||||||
							
								
								
									
										184
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										184
									
								
								crafts.lua
									
									
									
									
									
								
							| @@ -26,6 +26,10 @@ if minetest.get_modpath("technic") then | |||||||
| 	materials.stainless_steel_ingot = "technic:stainless_steel_ingot" | 	materials.stainless_steel_ingot = "technic:stainless_steel_ingot" | ||||||
| end | end | ||||||
|  |  | ||||||
|  | if minetest.get_modpath("aloz") then | ||||||
|  | 	materials["aluminum_ingot"] = "aloz:aluminum_ingot" | ||||||
|  | end | ||||||
|  |  | ||||||
| if minetest.get_modpath("mcl_core") then | if minetest.get_modpath("mcl_core") then | ||||||
| 	materials = { | 	materials = { | ||||||
| 		dirt = "mcl_core:dirt", | 		dirt = "mcl_core:dirt", | ||||||
| @@ -65,6 +69,25 @@ 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", | ||||||
| @@ -96,6 +119,7 @@ elseif minetest.get_modpath("hades_core") then | |||||||
| 	end | 	end | ||||||
| 	if minetest.get_modpath("hades_extraores") then | 	if minetest.get_modpath("hades_extraores") then | ||||||
| 		materials["silver_ingot"] = "hades_extraores:silver_ingot" | 		materials["silver_ingot"] = "hades_extraores:silver_ingot" | ||||||
|  | 		materials["aluminum_ingot"] = "hades_extraores:aluminum_ingot" | ||||||
| 	end | 	end | ||||||
| 	if minetest.get_modpath("hades_technic") then | 	if minetest.get_modpath("hades_technic") then | ||||||
| 		materials.lead_ingot = "hades_technic:lead_ingot" | 		materials.lead_ingot = "hades_technic:lead_ingot" | ||||||
| @@ -106,8 +130,44 @@ 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 | ||||||
| minetest.register_craft({ | 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"}, | ||||||
| @@ -116,7 +176,7 @@ minetest.register_craft({ | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | register_craft({ | ||||||
| 	output = "basic_materials:chain_steel 2", | 	output = "basic_materials:chain_steel 2", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"basic_materials:chainlink_steel"}, | 		{"basic_materials:chainlink_steel"}, | ||||||
| @@ -125,7 +185,7 @@ minetest.register_craft({ | |||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | register_craft({ | ||||||
| 	output = "basic_materials:chain_brass 2", | 	output = "basic_materials:chain_brass 2", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"basic_materials:chainlink_brass"}, | 		{"basic_materials:chainlink_brass"}, | ||||||
| @@ -134,13 +194,13 @@ minetest.register_craft({ | |||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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"}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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"}, | ||||||
| @@ -149,14 +209,14 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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"} | ||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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"}, | ||||||
| @@ -172,7 +232,7 @@ if have_hades_materials then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
| minetest.register_craft({ | 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"} | ||||||
| @@ -219,7 +279,7 @@ minetest.register_craft({ | |||||||
| 	burntime = 30, | 	burntime = 30, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | 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}, | ||||||
| @@ -228,7 +288,7 @@ minetest.register_craft({ | |||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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"}, | ||||||
| @@ -241,14 +301,14 @@ minetest.register_craft( { | |||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | 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} | ||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | register_craft({ | ||||||
| 	--type = "shapeless", | 	--type = "shapeless", | ||||||
| 	output = "basic_materials:energy_crystal_simple 2", | 	output = "basic_materials:energy_crystal_simple 2", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -257,7 +317,7 @@ minetest.register_craft({ | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:copper_wire 2", | 	output = "basic_materials:copper_wire 2", | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -267,7 +327,7 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:gold_wire 2", | 	output = "basic_materials:gold_wire 2", | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -277,7 +337,7 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:steel_wire 2", | 	output = "basic_materials:steel_wire 2", | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -288,7 +348,7 @@ minetest.register_craft( { | |||||||
| }) | }) | ||||||
|  |  | ||||||
| if materials.stainless_steel_ingot then | if materials.stainless_steel_ingot then | ||||||
| 	minetest.register_craft( { | 	register_craft( { | ||||||
| 		output = "basic_materials:stainless_steel_wire 2", | 		output = "basic_materials:stainless_steel_wire 2", | ||||||
| 		type = "shapeless", | 		type = "shapeless", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| @@ -299,7 +359,19 @@ if materials.stainless_steel_ingot then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
| minetest.register_craft( { | if materials.aluminum_ingot then | ||||||
|  | 	register_craft( { | ||||||
|  | 		output = "basic_materials:aluminum_wire 2", | ||||||
|  | 		type = "shapeless", | ||||||
|  | 		recipe = { | ||||||
|  | 			materials.aluminum_ingot, | ||||||
|  | 			"basic_materials:empty_spool", | ||||||
|  | 			"basic_materials:empty_spool", | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | register_craft( { | ||||||
| 	output = "basic_materials:steel_strip 12", | 	output = "basic_materials:steel_strip 12", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"", materials.steel_ingot, ""}, | 		{"", materials.steel_ingot, ""}, | ||||||
| @@ -307,7 +379,7 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:copper_strip 12", | 	output = "basic_materials:copper_strip 12", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"", materials.copper_ingot, ""}, | 		{"", materials.copper_ingot, ""}, | ||||||
| @@ -315,8 +387,16 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | register_craft( { | ||||||
|  | 	output = "basic_materials:gold_strip 12", | ||||||
|  | 	recipe = { | ||||||
|  | 		{"", materials.gold_ingot, ""}, | ||||||
|  | 		{materials.gold_ingot, "", ""}, | ||||||
|  | 	}, | ||||||
|  | }) | ||||||
|  |  | ||||||
| if materials.lead_ingot then | if materials.lead_ingot then | ||||||
| 	minetest.register_craft( { | 	register_craft( { | ||||||
| 		output = "basic_materials:lead_strip 12", | 		output = "basic_materials:lead_strip 12", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| 			{"", materials.lead_ingot, ""}, | 			{"", materials.lead_ingot, ""}, | ||||||
| @@ -325,7 +405,27 @@ if materials.lead_ingot then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
| minetest.register_craft( { | if materials.stainless_steel_ingot then | ||||||
|  | 	register_craft( { | ||||||
|  | 		output = "basic_materials:stainless_steel_strip 12", | ||||||
|  | 		recipe = { | ||||||
|  | 			{"", materials.stainless_steel_ingot, ""}, | ||||||
|  | 			{materials.stainless_steel_ingot, "", ""}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | if materials.aluminum_ingot then | ||||||
|  | 	register_craft( { | ||||||
|  | 		output = "basic_materials:aluminum_strip 12", | ||||||
|  | 		recipe = { | ||||||
|  | 			{"", materials.aluminum_ingot, ""}, | ||||||
|  | 			{materials.aluminum_ingot, "", ""}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | register_craft( { | ||||||
| 	output = "basic_materials:steel_bar 6", | 	output = "basic_materials:steel_bar 6", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"", "", materials.steel_ingot}, | 		{"", "", materials.steel_ingot}, | ||||||
| @@ -335,7 +435,7 @@ minetest.register_craft( { | |||||||
| }) | }) | ||||||
|  |  | ||||||
| if materials.carbon_steel_ingot then | if materials.carbon_steel_ingot then | ||||||
| 	minetest.register_craft( { | 	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}, | ||||||
| @@ -345,7 +445,29 @@ if materials.carbon_steel_ingot then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
| minetest.register_craft( { | if materials.stainless_steel_ingot then | ||||||
|  | 	register_craft( { | ||||||
|  | 		output = "basic_materials:stainless_steel_bar 6", | ||||||
|  | 		recipe = { | ||||||
|  | 			{"", "", materials.stainless_steel_ingot}, | ||||||
|  | 			{"", materials.stainless_steel_ingot, ""}, | ||||||
|  | 			{materials.stainless_steel_ingot, "", ""}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | if materials.aluminum_ingot then | ||||||
|  | 	register_craft( { | ||||||
|  | 		output = "basic_materials:aluminum_bar 6", | ||||||
|  | 		recipe = { | ||||||
|  | 			{"", "", materials.aluminum_ingot}, | ||||||
|  | 			{"", materials.aluminum_ingot, ""}, | ||||||
|  | 			{materials.aluminum_ingot, "", ""}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | register_craft( { | ||||||
| 	output = "basic_materials:padlock 2", | 	output = "basic_materials:padlock 2", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"basic_materials:steel_bar"}, | 		{"basic_materials:steel_bar"}, | ||||||
| @@ -354,7 +476,7 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | 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}, | ||||||
| @@ -363,7 +485,7 @@ minetest.register_craft({ | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:gear_steel 6", | 	output = "basic_materials:gear_steel 6", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{"", materials.steel_ingot, ""}, | 		{"", materials.steel_ingot, ""}, | ||||||
| @@ -372,7 +494,7 @@ minetest.register_craft( { | |||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	output = "basic_materials:terracotta_base 8", | 	output = "basic_materials:terracotta_base 8", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -383,7 +505,7 @@ minetest.register_craft( { | |||||||
| 	replacements = {{materials.water_bucket, materials.empty_bucket}}, | 	replacements = {{materials.water_bucket, materials.empty_bucket}}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | register_craft({ | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	output = "basic_materials:wet_cement 3", | 	output = "basic_materials:wet_cement 3", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -397,7 +519,7 @@ minetest.register_craft({ | |||||||
| }) | }) | ||||||
|  |  | ||||||
| if not have_hades_materials then | if not have_hades_materials then | ||||||
| 	minetest.register_craft( { | 	register_craft( { | ||||||
| 		output = materials.silicon.." 4", | 		output = materials.silicon.." 4", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| 			{materials.sand, materials.sand}, | 			{materials.sand, materials.sand}, | ||||||
| @@ -406,7 +528,7 @@ if not have_hades_materials then | |||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
| minetest.register_craft( { | register_craft( { | ||||||
| 	output = "basic_materials:ic 4", | 	output = "basic_materials:ic 4", | ||||||
| 	recipe = { | 	recipe = { | ||||||
| 		{materials.silicon, materials.silicon}, | 		{materials.silicon, materials.silicon}, | ||||||
| @@ -415,7 +537,7 @@ minetest.register_craft( { | |||||||
| }) | }) | ||||||
|  |  | ||||||
| -- Without moreores, there still should be a way to create brass. | -- Without moreores, there still should be a way to create brass. | ||||||
| minetest.register_craft( { | 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}, | ||||||
| @@ -425,7 +547,7 @@ minetest.register_craft( { | |||||||
| }) | }) | ||||||
|  |  | ||||||
| if materials.silver_ingot then | if materials.silver_ingot then | ||||||
| 	minetest.register_craft( { | 	register_craft( { | ||||||
| 		output = "basic_materials:silver_wire 2", | 		output = "basic_materials:silver_wire 2", | ||||||
| 		type = "shapeless", | 		type = "shapeless", | ||||||
| 		recipe = { | 		recipe = { | ||||||
| @@ -435,7 +557,7 @@ if materials.silver_ingot then | |||||||
| 		}, | 		}, | ||||||
| 	}) | 	}) | ||||||
|  |  | ||||||
| 	minetest.register_craft( { | 	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 | 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 | ||||||
| min_minetest_version = 5.2.0 | min_minetest_version = 5.2.0 | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								nodes.lua
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								nodes.lua
									
									
									
									
									
								
							| @@ -6,14 +6,16 @@ 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}, | 	groups = {cracky=2, dig_stone = 1, pickaxey=5}, | ||||||
|  | 	_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}, | 	groups = {cracky=1, concrete=1, dig_stone = 1, pickaxey=5}, | ||||||
|  | 	_mcl_hardness=1.6, | ||||||
| 	sounds = sound_api.node_sound_stone_defaults(), | 	sounds = sound_api.node_sound_stone_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -27,7 +29,8 @@ 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}, | 	groups = {cracky=3, dig_stone = 1, pickaxey=5}, | ||||||
|  | 	_mcl_hardness=1.6, | ||||||
| 	selection_box = chains_sbox, | 	selection_box = chains_sbox, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -41,7 +44,8 @@ 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}, | 	groups = {cracky=3, dig_stone = 1, pickaxey=5}, | ||||||
|  | 	_mcl_hardness=1.6, | ||||||
| 	selection_box = chains_sbox, | 	selection_box = chains_sbox, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -49,6 +53,7 @@ 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}, | 	groups = {cracky=1, dig_stone = 1, pickaxey=5}, | ||||||
|  | 	_mcl_hardness=1.6, | ||||||
| 	sounds = sound_api.node_sound_metal_defaults() | 	sounds = sound_api.node_sound_metal_defaults() | ||||||
| }) | }) | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_bar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_bar.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 337 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_strip.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_strip.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 383 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_wire.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_aluminum_wire.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 258 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_gold_strip.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_gold_strip.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 358 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_stainless_steel_bar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_stainless_steel_bar.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 336 B | 
							
								
								
									
										
											BIN
										
									
								
								textures/basic_materials_stainless_steel_strip.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/basic_materials_stainless_steel_strip.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 382 B | 
		Reference in New Issue
	
	Block a user