forked from mtcontrib/homedecor_modpack
		
	Added crafting recipe using silicon from Mesecons to create regular IC's,
updated crafting recipes for TV and stereo to use it.
This commit is contained in:
		
							
								
								
									
										35
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								crafts.lua
									
									
									
									
									
								
							@@ -611,21 +611,34 @@ end
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if ( minetest.get_modpath("mesecons") ) ~= nil then
 | 
					if ( minetest.get_modpath("mesecons") ) ~= nil then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						minetest.register_craftitem("homedecor:ic", {
 | 
				
			||||||
 | 
							description = "Simple Integrated Circuit",
 | 
				
			||||||
 | 
							inventory_image = "homedecor_ic.png",
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minetest.register_craft( {
 | 
						minetest.register_craft( {
 | 
				
			||||||
	        output = 'homedecor:television',
 | 
							output = "homedecor:ic 4",
 | 
				
			||||||
        	recipe = {
 | 
							recipe = {
 | 
				
			||||||
        	        { 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting' },
 | 
								{ "mesecons_materials:silicon", "mesecons_materials:silicon" },
 | 
				
			||||||
        	        { 'homedecor:plastic_sheeting', 'default:glass', 'homedecor:plastic_sheeting' },
 | 
								{ "mesecons_materials:silicon", "default:steel_ingot" },
 | 
				
			||||||
        	        { 'mesecons_materials:ic', 'mesecons_materials:ic', 'mesecons_materials:ic' },
 | 
					 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minetest.register_craft( {
 | 
						minetest.register_craft( {
 | 
				
			||||||
	        output = 'homedecor:stereo',
 | 
							output = 'homedecor:television',
 | 
				
			||||||
        	recipe = {
 | 
							recipe = {
 | 
				
			||||||
                        { 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting' },
 | 
								{ 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting' },
 | 
				
			||||||
                        { 'homedecor:plastic_sheeting', 'mesecons_materials:ic', 'homedecor:plastic_sheeting' },
 | 
								{ 'homedecor:plastic_sheeting', 'default:glass', 'homedecor:plastic_sheeting' },
 | 
				
			||||||
        	        { 'default:steel_ingot', 'mesecons_materials:ic', 'default:steel_ingot' },
 | 
								{ 'homedecor:ic', 'homedecor:ic', 'homedecor:ic' },
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						minetest.register_craft( {
 | 
				
			||||||
 | 
							output = 'homedecor:stereo',
 | 
				
			||||||
 | 
							recipe = {
 | 
				
			||||||
 | 
								{ 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting', 'homedecor:plastic_sheeting' },
 | 
				
			||||||
 | 
								{ 'homedecor:plastic_sheeting', 'homedecor:ic', 'homedecor:plastic_sheeting' },
 | 
				
			||||||
 | 
								{ 'default:steel_ingot', 'homedecor:ic', 'default:steel_ingot' },
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -761,7 +774,7 @@ minetest.register_craft({
 | 
				
			|||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- =====================================================================
 | 
					-- =====================================================================
 | 
				
			||||||
-- Speakers require both Jeija's mesecons mod abnd either wool or cotton
 | 
					-- Speakers require both Jeija's mesecons mod and either wool or cotton
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craft( {
 | 
					minetest.register_craft( {
 | 
				
			||||||
        output = 'homedecor:speaker',
 | 
					        output = 'homedecor:speaker',
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_ic.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_ic.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 302 B  | 
		Reference in New Issue
	
	Block a user