forked from nalc/homedecor_modpack
		
	Added ceiling-mounted glow cube. The regular and ceiling ones can be exchanged
by placing either into the crafting glid. Works for both colors.
This commit is contained in:
		
							
								
								
									
										32
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								crafts.lua
									
									
									
									
									
								
							@@ -1109,6 +1109,22 @@ minetest.register_craft({
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:glowlight_small_cube_yellow_ceiling",
 | 
			
		||||
        recipe = {
 | 
			
		||||
		"homedecor:glowlight_small_cube_yellow",
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:glowlight_small_cube_yellow",
 | 
			
		||||
        recipe = {
 | 
			
		||||
		"homedecor:glowlight_small_cube_yellow_ceiling",
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- white
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
@@ -1144,6 +1160,22 @@ minetest.register_craft({
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:glowlight_small_cube_white_ceiling",
 | 
			
		||||
        recipe = {
 | 
			
		||||
		"homedecor:glowlight_small_cube_white",
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:glowlight_small_cube_white",
 | 
			
		||||
        recipe = {
 | 
			
		||||
		"homedecor:glowlight_small_cube_white_ceiling",
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Fences and gates
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										56
									
								
								lighting.lua
									
									
									
									
									
								
							
							
						
						
									
										56
									
								
								lighting.lua
									
									
									
									
									
								
							@@ -87,6 +87,34 @@ minetest.register_node('homedecor:glowlight_small_cube_yellow', {
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node('homedecor:glowlight_small_cube_yellow_ceiling', {
 | 
			
		||||
	description = "Yellow Glowlight (small cube, on ceiling)",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_tb.png',
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_tb.png',
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_yellow_sides_ceiling.png'
 | 
			
		||||
	},
 | 
			
		||||
        selection_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
                fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
 | 
			
		||||
        },
 | 
			
		||||
        node_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
                fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
	sunlight_propagates = false,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	groups = { snappy = 3 },
 | 
			
		||||
	light_source = LIGHT_MAX-1,
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- White
 | 
			
		||||
 | 
			
		||||
minetest.register_node('homedecor:glowlight_thick_white', {
 | 
			
		||||
@@ -172,3 +200,31 @@ minetest.register_node('homedecor:glowlight_small_cube_white', {
 | 
			
		||||
	light_source = LIGHT_MAX-1,
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node('homedecor:glowlight_small_cube_white_ceiling', {
 | 
			
		||||
	description = "White Glowlight (small cube, on ceiling)",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		'homedecor_glowlight_cube_white_tb.png',
 | 
			
		||||
		'homedecor_glowlight_cube_white_tb.png',
 | 
			
		||||
		'homedecor_glowlight_cube_white_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_white_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_white_sides_ceiling.png',
 | 
			
		||||
		'homedecor_glowlight_cube_white_sides_ceiling.png'
 | 
			
		||||
	},
 | 
			
		||||
        selection_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
                fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
 | 
			
		||||
        },
 | 
			
		||||
        node_box = {
 | 
			
		||||
                type = "fixed",
 | 
			
		||||
                fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
	sunlight_propagates = false,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	groups = { snappy = 3 },
 | 
			
		||||
	light_source = LIGHT_MAX-1,
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_glowlight_cube_white_sides_ceiling.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_glowlight_cube_white_sides_ceiling.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 240 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/homedecor_glowlight_cube_yellow_sides_ceiling.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/homedecor_glowlight_cube_yellow_sides_ceiling.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 251 B  | 
		Reference in New Issue
	
	Block a user