mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 12:35:33 +01:00 
			
		
		
		
	Compare commits
	
		
			10 Commits
		
	
	
		
			2019-05-30
			...
			2019-06-02
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					84c3933fd4 | ||
| 
						 | 
					968cdfd549 | ||
| 
						 | 
					c457874d03 | ||
| 
						 | 
					67acbd6d59 | ||
| 
						 | 
					fdb37bdaf5 | ||
| 
						 | 
					ab8bf5586f | ||
| 
						 | 
					2f3c12eb2a | ||
| 
						 | 
					4174737a1a | ||
| 
						 | 
					11771e12cb | ||
| 
						 | 
					b3337921a1 | 
@@ -2,9 +2,10 @@
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
	if minetest.is_protected(pos, clicker:get_player_name()) then
 | 
			
		||||
		minetest.record_protection_violation(pos,
 | 
			
		||||
		sender:get_player_name())
 | 
			
		||||
	if not clicker then return false end
 | 
			
		||||
	local playername = clicker:get_player_name()
 | 
			
		||||
	if minetest.is_protected(pos, playername) then
 | 
			
		||||
		minetest.record_protection_violation(pos, playername)
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
	local sep = string.find(node.name, "_o", -5)
 | 
			
		||||
 
 | 
			
		||||
@@ -58,61 +58,10 @@ homedecor.register("chains", {
 | 
			
		||||
	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:L_binding_bars", "homedecor:L_binding_bars")
 | 
			
		||||
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('binding_bars', 'homedecor:L_binding_bars')
 | 
			
		||||
minetest.register_alias('chains', 'homedecor:chains')
 | 
			
		||||
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
		 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  | 
		Reference in New Issue
	
	Block a user