forkattu lähteestä mtcontrib/homedecor_modpack
		
	add brass and steel chainlinks, recipe changes...
if glooptest is not installed, an alias is added to equate homedecor steel chainlinks to glooptest's, for compatibility. The six-steel-ingot wall chain recipe is no longer to make wall chains. Instead, if glooptest is not installed, this recipe is used to make chain *links*. Whether glooptest is installed or not, the steel chainlinks are still used along with steel ingots, to make wall chains as before.
This commit is contained in:
		| @@ -108,6 +108,16 @@ minetest.register_craftitem("homedecor:steel_strip", { | ||||
| 	inventory_image = "homedecor_steel_strip.png" | ||||
| }) | ||||
|  | ||||
| minetest.register_craftitem("homedecor:chainlink_steel", { | ||||
| 	description = "Steel chainlink", | ||||
| 	inventory_image = "homedecor_chainlink_steel.png" | ||||
| }) | ||||
|  | ||||
| minetest.register_craftitem("homedecor:chainlink_brass", { | ||||
| 	description = "Brass chainlink", | ||||
| 	inventory_image = "homedecor_chainlink_brass.png" | ||||
| }) | ||||
|  | ||||
| -- alternate crafting if mesecons is/isn't installed | ||||
|  | ||||
| if not minetest.get_modpath("mesecons") then | ||||
| @@ -2549,3 +2559,37 @@ minetest.register_craft( { | ||||
| 			{ "vessels:glass_bottle", "dye:brown" } | ||||
|         }, | ||||
| }) | ||||
|  | ||||
| if not minetest.get_modpath("glooptest") then | ||||
|  | ||||
| 	minetest.register_alias("glooptest:chainlink", "homedecor:chainlink_steel") | ||||
|  | ||||
| 	minetest.register_craft({ | ||||
| 		output = "glooptest:chainlink 12", | ||||
| 		recipe = { | ||||
| 		    {"", "default:steel_ingot", "default:steel_ingot"}, | ||||
| 		    { "default:steel_ingot", "", "default:steel_ingot" }, | ||||
| 		    { "default:steel_ingot", "default:steel_ingot", "" }, | ||||
| 		}, | ||||
| 	}) | ||||
|  | ||||
| end | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = "homedecor:chains 4", | ||||
| 	recipe = { | ||||
| 	    { "default:steel_ingot", "", "default:steel_ingot"}, | ||||
| 	    { "homedecor:chainlink_steel", "", "homedecor:chainlink_steel" }, | ||||
| 	    { "homedecor:chainlink_steel", "", "homedecor:chainlink_steel" }, | ||||
| 	}, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = "homedecor:chainlink_brass 12", | ||||
| 	recipe = { | ||||
| 	    {"", "technic:brass_ingot", "technic:brass_ingot"}, | ||||
| 	    { "technic:brass_ingot", "", "technic:brass_ingot" }, | ||||
| 	    { "technic:brass_ingot", "technic:brass_ingot", "" }, | ||||
| 	}, | ||||
| }) | ||||
|  | ||||
|   | ||||
| @@ -219,24 +219,6 @@ minetest.register_craft({ | ||||
|     }, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
|     output = "homedecor:chains 4", | ||||
|     recipe = { | ||||
|         {"","default:steel_ingot","default:steel_ingot"}, | ||||
|         { "default:steel_ingot","", "default:steel_ingot" }, | ||||
|         { "default:steel_ingot", "default:steel_ingot", "" }, | ||||
|     }, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
|     output = "homedecor:chains 4", | ||||
|     recipe = { | ||||
|         { "default:steel_ingot", "", "default:steel_ingot"}, | ||||
|         { "glooptest:chainlink", "", "glooptest:chainlink" }, | ||||
|         { "glooptest:chainlink", "", "glooptest:chainlink" }, | ||||
|     }, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
|     output = "homedecor:torch_wall 10", | ||||
|     recipe = { | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_chainlink_brass.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_chainlink_brass.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Leveys: | Korkeus: | Koko: 302 B | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_chainlink_steel.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_chainlink_steel.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Leveys: | Korkeus: | Koko: 175 B | 
		Viittaa uudesa ongelmassa
	
	Block a user