Compare commits
	
		
			12 Commits
		
	
	
		
			2019-05-28
			...
			2019-06-02
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c98ec41ba7 | ||
| 
						 | 
					84c3933fd4 | ||
| 
						 | 
					968cdfd549 | ||
| 
						 | 
					c457874d03 | ||
| 
						 | 
					67acbd6d59 | ||
| 
						 | 
					fdb37bdaf5 | ||
| 
						 | 
					ab8bf5586f | ||
| 
						 | 
					2f3c12eb2a | ||
| 
						 | 
					4174737a1a | ||
| 
						 | 
					11771e12cb | ||
| 
						 | 
					b3337921a1 | ||
| 
						 | 
					301ae2ee1d | 
@@ -2,9 +2,10 @@
 | 
				
			|||||||
local S = homedecor.gettext
 | 
					local S = homedecor.gettext
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
					function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
				
			||||||
	if minetest.is_protected(pos, clicker:get_player_name()) then
 | 
						if not clicker then return false end
 | 
				
			||||||
		minetest.record_protection_violation(pos,
 | 
						local playername = clicker:get_player_name()
 | 
				
			||||||
		sender:get_player_name())
 | 
						if minetest.is_protected(pos, playername) then
 | 
				
			||||||
 | 
							minetest.record_protection_violation(pos, playername)
 | 
				
			||||||
		return false
 | 
							return false
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
	local sep = string.find(node.name, "_o", -5)
 | 
						local sep = string.find(node.name, "_o", -5)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,61 +58,10 @@ homedecor.register("chains", {
 | 
				
			|||||||
	sounds = default.node_sound_stone_defaults(),
 | 
						sounds = default.node_sound_stone_defaults(),
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
homedecor.register("torch_wall", {
 | 
					 | 
				
			||||||
	description = S("Wall Torch"),
 | 
					 | 
				
			||||||
	mesh = "forniture_torch.obj",
 | 
					 | 
				
			||||||
	tiles = {
 | 
					 | 
				
			||||||
		{
 | 
					 | 
				
			||||||
			name="forniture_torch_flame.png",
 | 
					 | 
				
			||||||
			animation={
 | 
					 | 
				
			||||||
				type="vertical_frames",
 | 
					 | 
				
			||||||
				aspect_w=40,
 | 
					 | 
				
			||||||
				aspect_h=40,
 | 
					 | 
				
			||||||
				length=1.0,
 | 
					 | 
				
			||||||
			},
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_black },
 | 
					 | 
				
			||||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
 | 
					 | 
				
			||||||
		"forniture_coal.png",
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	inventory_image="forniture_torch_inv.png",
 | 
					 | 
				
			||||||
	walkable = false,
 | 
					 | 
				
			||||||
	light_source = 14,
 | 
					 | 
				
			||||||
	selection_box = {
 | 
					 | 
				
			||||||
		type = "fixed",
 | 
					 | 
				
			||||||
		fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	groups = {cracky=3},
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
local wl_cbox = {
 | 
					 | 
				
			||||||
	type = "fixed",
 | 
					 | 
				
			||||||
	fixed = { -0.2, -0.5, 0, 0.2, 0.5, 0.5 },
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
homedecor.register("wall_lamp", {
 | 
					 | 
				
			||||||
	description = S("Wall Lamp"),
 | 
					 | 
				
			||||||
	mesh = "homedecor_wall_lamp.obj",
 | 
					 | 
				
			||||||
	tiles = {
 | 
					 | 
				
			||||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
 | 
					 | 
				
			||||||
		homedecor.lux_wood,
 | 
					 | 
				
			||||||
		"homedecor_light.png",
 | 
					 | 
				
			||||||
		"homedecor_generic_metal_wrought_iron.png"
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	use_texture_alpha = true,
 | 
					 | 
				
			||||||
	inventory_image = "homedecor_wall_lamp_inv.png",
 | 
					 | 
				
			||||||
	groups = {snappy=3},
 | 
					 | 
				
			||||||
	light_source = 11,
 | 
					 | 
				
			||||||
	selection_box = wl_cbox,
 | 
					 | 
				
			||||||
	walkable = false
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_alias("3dforniture:bars", "homedecor:bars")
 | 
					minetest.register_alias("3dforniture:bars", "homedecor:bars")
 | 
				
			||||||
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
 | 
					minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
 | 
				
			||||||
minetest.register_alias("3dforniture:chains", "homedecor:chains")
 | 
					minetest.register_alias("3dforniture:chains", "homedecor:chains")
 | 
				
			||||||
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_alias('bars', 'homedecor:bars')
 | 
					minetest.register_alias('bars', 'homedecor:bars')
 | 
				
			||||||
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
 | 
					minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
 | 
				
			||||||
minetest.register_alias('chains', 'homedecor:chains')
 | 
					minetest.register_alias('chains', 'homedecor:chains')
 | 
				
			||||||
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,3 +7,4 @@ moreblocks?
 | 
				
			|||||||
building_blocks?
 | 
					building_blocks?
 | 
				
			||||||
darkage?
 | 
					darkage?
 | 
				
			||||||
mesecons?
 | 
					mesecons?
 | 
				
			||||||
 | 
					digilines?
 | 
				
			||||||
 
 | 
				
			|||||||
| 
		 Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB  | 
| 
		 Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB  | 
| 
		 Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 450 B  | 
| 
		 Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B  | 
| 
		 Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B  | 
| 
		 Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB  |