forked from mtcontrib/homedecor_modpack
		
	add inventory images to chains mod
also some basic code style fixes: spaces/tabs, tiles/tile_images, etc.
This commit is contained in:
		| @@ -1,29 +1,33 @@ | |||||||
| print("[Chains] v1.1") | print("[Chains] v1.1") | ||||||
|  |  | ||||||
| minetest.register_node("chains:chain", { | minetest.register_node("chains:chain", { | ||||||
|     description = "Chain", | 	description = "Hanging chain", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	climbable = true, | 	climbable = true, | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	drops = "", | 	drops = "", | ||||||
|     tile_images = { "Chain.png" }, | 	tiles = { "Chain.png" }, | ||||||
|  | 	inventory_image = "Chain.png", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	sounds =  default.node_sound_stone_defaults(), | 	sounds =  default.node_sound_stone_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_node("chains:chain_top", { | minetest.register_node("chains:chain_top", { | ||||||
|     description = "Chain Top", | 	description = "Hanging chain (ceiling mount)", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	climbable = true, | 	climbable = true, | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	drops = "", | 	drops = "", | ||||||
|     tile_images = { "Chain_top.png" }, | 	tiles = { "Chain_top.png" }, | ||||||
|  | 	inventory_image = "Chain_top_inv.png", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	sounds =  default.node_sound_stone_defaults(), | 	sounds =  default.node_sound_stone_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_node("chains:chandelier", { | minetest.register_node("chains:chandelier", { | ||||||
| 	description = "Chandelier", | 	description = "Chandelier", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -33,11 +37,13 @@ minetest.register_node("chains:chandelier", { | |||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	drops = "", | 	drops = "", | ||||||
|     tile_images = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}}, | 	tiles = { {name="Chandelier.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}}, | ||||||
|  | 	inventory_image = "Chandelier_inv.png", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	sounds =  default.node_sound_stone_defaults(), | 	sounds =  default.node_sound_stone_defaults(), | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	output = 'chains:chain 2', | 	output = 'chains:chain 2', | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -46,6 +52,7 @@ minetest.register_craft({ | |||||||
| 		{'homedecor:chainlink_steel'}, | 		{'homedecor:chainlink_steel'}, | ||||||
| 	} | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	output = 'chains:chain_top', | 	output = 'chains:chain_top', | ||||||
| 	recipe = { | 	recipe = { | ||||||
| @@ -53,6 +60,7 @@ minetest.register_craft({ | |||||||
| 		{'homedecor:chainlink_steel'},	 | 		{'homedecor:chainlink_steel'},	 | ||||||
| 	}, | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	output = 'chains:chandelier', | 	output = 'chains:chandelier', | ||||||
| 	recipe = { | 	recipe = { | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								chains/textures/Chain_top_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								chains/textures/Chain_top_inv.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 319 B | 
							
								
								
									
										
											BIN
										
									
								
								chains/textures/Chandelier_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								chains/textures/Chandelier_inv.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 576 B | 
		Reference in New Issue
	
	Block a user