mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 13:15:23 +01:00 
			
		
		
		
	better mesh/UV mapping for openframe bookshelf
This commit is contained in:
		| @@ -155,24 +155,26 @@ for i in ipairs(chaircolors) do | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
|  | local ob_cbox = { | ||||||
|  | 	type = "fixed", | ||||||
|  | 	fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } | ||||||
|  | } | ||||||
|  |  | ||||||
| minetest.register_node(":homedecor:openframe_bookshelf", { | minetest.register_node(":homedecor:openframe_bookshelf", { | ||||||
| 	description = "Bookshelf (open-frame)", | 	description = "Bookshelf (open-frame)", | ||||||
| 	drawtype = "mesh", | 	drawtype = "mesh", | ||||||
| 	mesh = "homedecor_openframe_bookshelf.obj", | 	mesh = "homedecor_openframe_bookshelf.obj", | ||||||
| 	tiles = { "homedecor_openframe_bookshelf.png" }, | 	tiles = { | ||||||
|  | 		"homedecor_openframe_bookshelf_books.png", | ||||||
|  | 		"default_wood.png" | ||||||
|  | 	}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	is_ground_content = false, | 	is_ground_content = false, | ||||||
| 	groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3}, | 	groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| 	selection_box = { | 	selection_box = ob_cbox, | ||||||
| 		type = "fixed", | 	collision_box = ob_cbox, | ||||||
| 		fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } |  | ||||||
| 	}, |  | ||||||
| 	collision_box = { |  | ||||||
| 		type = "fixed", |  | ||||||
| 		fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } |  | ||||||
| 	}, |  | ||||||
| }) | }) | ||||||
|  |  | ||||||
| local bedcolors = { | local bedcolors = { | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_openframe_bookshelf_books.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								homedecor/textures/homedecor_openframe_bookshelf_books.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.4 KiB | 
		Reference in New Issue
	
	Block a user