forked from nalc/homedecor_modpack
		
	Add corner privacy fence and craft recipes for it.
This commit is contained in:
		
							
								
								
									
										17
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								crafts.lua
									
									
									
									
									
								
							@@ -1376,6 +1376,23 @@ minetest.register_craft( {
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "homedecor:fence_privacy_corner",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"homedecor:fence_privacy",
 | 
			
		||||
		"homedecor:fence_privacy"
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "homedecor:fence_privacy 2",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"homedecor:fence_privacy_corner"
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:fence_barbed_wire 6",
 | 
			
		||||
        recipe = {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										40
									
								
								fences.lua
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								fences.lua
									
									
									
									
									
								
							@@ -287,6 +287,46 @@ minetest.register_node("homedecor:fence_privacy", {
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:fence_privacy_corner", {
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
        description = S("Wooden Privacy Fence"),
 | 
			
		||||
        tiles = {
 | 
			
		||||
		"homedecor_fence_privacy_corner_top.png",
 | 
			
		||||
		"homedecor_fence_privacy_corner_bottom.png",
 | 
			
		||||
		"homedecor_fence_privacy_corner_right.png",
 | 
			
		||||
		"homedecor_fence_privacy_backside.png",
 | 
			
		||||
		"homedecor_fence_privacy_backside.png",
 | 
			
		||||
		"homedecor_fence_privacy_corner_front.png"
 | 
			
		||||
	},
 | 
			
		||||
        paramtype = "light",
 | 
			
		||||
        is_ground_content = true,
 | 
			
		||||
        groups = {snappy=3},
 | 
			
		||||
        sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
        selection_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
                fixed = {
 | 
			
		||||
			{ -0.5, -0.5, 5/16,   0.5, 0.5,  0.5 },
 | 
			
		||||
			{ -0.5, -0.5, -0.5, -5/16, 0.5, 5/16 },
 | 
			
		||||
		}			
 | 
			
		||||
        },
 | 
			
		||||
        node_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{ -7/16, -8/16, 5/16, -5/16, 8/16, 7/16 },	-- left part
 | 
			
		||||
			{ -4/16, -8/16, 5/16,  3/16, 8/16, 7/16 },	-- middle part
 | 
			
		||||
			{  4/16, -8/16, 5/16,  8/16, 8/16, 7/16 },	-- right part
 | 
			
		||||
			{ -8/16, -2/16, 7/16,  8/16, 2/16, 8/16 },	-- back-side connecting rung
 | 
			
		||||
 | 
			
		||||
			{ -7/16, -8/16,  4/16, -5/16, 8/16,  7/16 },	-- back-most part
 | 
			
		||||
			{ -7/16, -8/16, -4/16, -5/16, 8/16,  3/16 },	-- middle part
 | 
			
		||||
			{ -7/16, -8/16, -8/16, -5/16, 8/16, -5/16 },	-- front-most part
 | 
			
		||||
			{ -8/16, -2/16, -8/16, -7/16, 2/16,  7/16 },	-- left-side connecting rung
 | 
			
		||||
		}
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("homedecor:fence_barbed_wire", {
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
        description = S("Barbed Wire Fence"),
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_bottom.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_bottom.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 317 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_front.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_front.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 573 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_right.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_right.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 584 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_top.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_fence_privacy_corner_top.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 319 B  | 
		Reference in New Issue
	
	Block a user