mirror of
				https://github.com/minetest-mods/moreblocks.git
				synced 2025-11-04 07:25:29 +01:00 
			
		
		
		
	add node copper patina (#37)
Good for building things like the statue of liberty.
This commit is contained in:
		
							
								
								
									
										16
									
								
								crafting.lua
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								crafting.lua
									
									
									
									
									
								
							@@ -457,6 +457,22 @@ minetest.register_craft({
 | 
			
		||||
	type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "moreblocks:copperpatina",
 | 
			
		||||
	recipe = {"bucket:bucket_water", "default:copperblock"},
 | 
			
		||||
	replacements = {
 | 
			
		||||
		{"bucket:bucket_water", "bucket:bucket_empty"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "default:copper_ingot 9",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"moreblocks:copperpatina"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		output = "moreblocks:circular_saw", 
 | 
			
		||||
 
 | 
			
		||||
@@ -331,6 +331,11 @@ local nodes = {
 | 
			
		||||
		sounds = sound_leaves,
 | 
			
		||||
		no_stairs = true,
 | 
			
		||||
	},
 | 
			
		||||
	["copperpatina"] = {
 | 
			
		||||
		description = S("Copper Patina Block"),
 | 
			
		||||
		groups = {cracky = 1, level = 2},
 | 
			
		||||
		sounds = sound_stone,
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
for name, def in pairs(nodes) do
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								textures/moreblocks_copperpatina.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/moreblocks_copperpatina.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 325 B  | 
		Reference in New Issue
	
	Block a user